X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fglobal.cpp;h=ce71aeb0fbf26cf47e2e7124d54cd42866f40b86;hb=0d53027b95e4bd9ca369bd909c17cf13612f7dd5;hp=5298d17a7fd17bb2a24700b16c49863c35dc7dbb;hpb=8699dd758516d0ded076811e8ea656adc95e69d0;p=quassel.git diff --git a/src/common/global.cpp b/src/common/global.cpp index 5298d17a..ce71aeb0 100644 --- a/src/common/global.cpp +++ b/src/common/global.cpp @@ -26,6 +26,7 @@ #include "identity.h" #include "bufferinfo.h" #include "types.h" +#include "syncableobject.h" extern void messageHandler(QtMsgType type, const char *msg); @@ -63,6 +64,7 @@ void Global::initIconMap() { //! Register our custom types with Qt's Meta Object System. /** This makes them available for QVariant and in signals/slots, among other things. + * */ void Global::registerMetaTypes() { // Complex types @@ -81,13 +83,24 @@ void Global::registerMetaTypes() { qRegisterMetaType("IdentityId"); qRegisterMetaType("BufferId"); qRegisterMetaType("NetworkId"); + qRegisterMetaType("UserId"); qRegisterMetaTypeStreamOperators("IdentityId"); qRegisterMetaTypeStreamOperators("BufferId"); qRegisterMetaTypeStreamOperators("NetworkId"); + qRegisterMetaTypeStreamOperators("UserId"); } +// Static variables + +QString Global::quasselVersion; +QString Global::quasselDate; +uint Global::quasselBuild; +uint Global::clientBuildNeeded; +QString Global::clientVersionNeeded; +uint Global::coreBuildNeeded; +QString Global::coreVersionNeeded; + Global::RunMode Global::runMode; uint Global::defaultPort; -