File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 4
4
#include < qcontainerfwd.h>
5
5
#include < qdebug.h>
6
6
#include < qlogging.h>
7
+ #include < qloggingcategory.h>
7
8
#include < qmetaobject.h>
8
9
#include < qobject.h>
9
10
#include < qobjectdefs.h>
14
15
#include < qtypes.h>
15
16
16
17
#include " ../core/generation.hpp"
18
+ #include " ../core/logcat.hpp"
17
19
#include " ipc.hpp"
18
20
19
21
namespace qs ::io::ipc {
20
22
23
+ namespace {
24
+ QS_LOGGING_CATEGORY (logIpcHandler, " quickshell.ipchandler" , QtWarningMsg)
25
+ }
26
+
21
27
bool IpcFunction::resolve (QString& error) {
22
28
if (this ->method .parameterCount () > 10 ) {
23
29
error = " Due to technical limitations, IPC functions can only have 10 arguments." ;
@@ -210,6 +216,7 @@ IpcHandlerRegistry* IpcHandlerRegistry::forGeneration(EngineGeneration* generati
210
216
if (!ext) {
211
217
ext = new IpcHandlerRegistry ();
212
218
generation->registerExtension (&key, ext);
219
+ qCDebug (logIpcHandler) << " Created new IPC handler registry" << ext << " for" << generation;
213
220
}
214
221
215
222
return dynamic_cast <IpcHandlerRegistry*>(ext);
@@ -232,10 +239,12 @@ void IpcHandler::updateRegistration(bool destroying) {
232
239
233
240
if (this ->registeredState .enabled ) {
234
241
registry->deregisterHandler (this );
242
+ qCDebug (logIpcHandler) << " Deregistered" << this << " from registry" << registry;
235
243
}
236
244
237
245
if (this ->targetState .enabled && !this ->targetState .target .isEmpty ()) {
238
246
registry->registerHandler (this );
247
+ qCDebug (logIpcHandler) << " Registered" << this << " to registry" << registry;
239
248
}
240
249
}
241
250
You can’t perform that action at this time.
0 commit comments