X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fglobal.cpp;h=26abdf957d697adf763a9b2dbf374d20a4cfa314;hb=6623fd2d46dadd0168e4e28d1db6944c26c2a773;hp=ce71aeb0fbf26cf47e2e7124d54cd42866f40b86;hpb=c7fd86ed385a38210b9dc7356a7e2ac40efe5951;p=quassel.git diff --git a/src/common/global.cpp b/src/common/global.cpp index ce71aeb0..26abdf95 100644 --- a/src/common/global.cpp +++ b/src/common/global.cpp @@ -24,6 +24,7 @@ #include "logger.h" #include "message.h" #include "identity.h" +#include "network.h" #include "bufferinfo.h" #include "types.h" #include "syncableobject.h" @@ -71,15 +72,17 @@ void Global::registerMetaTypes() { qRegisterMetaType("QVariant"); qRegisterMetaType("Message"); qRegisterMetaType("BufferInfo"); + qRegisterMetaType("NetworkInfo"); qRegisterMetaType("Identity"); + qRegisterMetaType("Network::ConnectionState"); qRegisterMetaTypeStreamOperators("QVariant"); qRegisterMetaTypeStreamOperators("Message"); qRegisterMetaTypeStreamOperators("BufferInfo"); + qRegisterMetaTypeStreamOperators("NetworkInfo"); qRegisterMetaTypeStreamOperators("Identity"); + qRegisterMetaTypeStreamOperators("Network::ConnectionState"); - // Basic types (typedefs) - // These use the standard stream operators qRegisterMetaType("IdentityId"); qRegisterMetaType("BufferId"); qRegisterMetaType("NetworkId");