X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fsyncableobject.h;h=65f575e3734d7b8c0d9f9514ab20c5662017a463;hp=92746f870237165cff29683e94d6c6677e26ca50;hb=f6b9eeda207d42c99fc3e9085631722cf2ec83dc;hpb=2a00e8f57d66d9913a10c30408b89676a74010a1 diff --git a/src/common/syncableobject.h b/src/common/syncableobject.h index 92746f87..65f575e3 100644 --- a/src/common/syncableobject.h +++ b/src/common/syncableobject.h @@ -67,7 +67,7 @@ public slots: virtual void update(const QVariantMap &properties); protected: - void sync_call__(SignalProxy::ProxyMode modeType, const char *funcname, ...); + void sync_call__(SignalProxy::ProxyMode modeType, const char *funcname, ...) const; void renameObject(const QString &newName); SyncableObject &operator=(const SyncableObject &other); @@ -100,7 +100,9 @@ private: # define REQUEST(...) sync_call__(SignalProxy::Client, (__FUNCTION__ + _classNameOffset__) , __VA_ARGS__); #else # define SYNC(...) sync_call__(SignalProxy::Server, __func__, __VA_ARGS__); +# define SYNC_OTHER(x, ...) sync_call__(SignalProxy::Server, #x, __VA_ARGS__); # define REQUEST(...) sync_call__(SignalProxy::Client, __func__, __VA_ARGS__); +# define REQUEST_OTHER(x, ...) sync_call__(SignalProxy::Client, #x, __VA_ARGS__); #endif //Q_WS_WIN