X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fclient.h;h=e401f463b4866a87e43833fa406b5903cadce86c;hb=8438c6f685ed43943d36996ada054941a30e3cb3;hp=56083a96ba7fa120f72db1410ff398fd66d31f55;hpb=4f2cf796763079da1079751bbdac9b905689ec11;p=quassel.git diff --git a/src/client/client.h b/src/client/client.h index 56083a96..e401f463 100644 --- a/src/client/client.h +++ b/src/client/client.h @@ -26,6 +26,7 @@ #include "bufferinfo.h" #include "coreconnection.h" +#include "quassel.h" #include "types.h" class Message; @@ -118,6 +119,7 @@ public: static inline CoreAccountModel *coreAccountModel() { return instance()->_coreAccountModel; } static inline CoreConnection *coreConnection() { return instance()->_coreConnection; } static inline CoreAccount currentCoreAccount() { return coreConnection()->currentAccount(); } + static inline Quassel::Features coreFeatures() { return _coreFeatures; } static bool isConnected(); static bool internalCore(); @@ -125,6 +127,7 @@ public: static void userInput(const BufferInfo &bufferInfo, const QString &message); static void setBufferLastSeenMsg(BufferId id, const MsgId &msgId); // this is synced to core and other clients + static void setBufferMarkerLine(BufferId id, const MsgId &msgId); // this is synced to core and other clients static void removeBuffer(BufferId id); static void renameBuffer(BufferId bufferId, const QString &newName); static void mergeBuffersPermanently(BufferId bufferId1, BufferId bufferId2); @@ -200,6 +203,7 @@ private: void init(); static void addNetwork(Network *); + static void setCoreFeatures(Quassel::Features); static inline BufferSyncer *bufferSyncer() { return instance()->_bufferSyncer; } static QPointer instanceptr; @@ -230,6 +234,7 @@ private: QHash _identities; bool _connected; + static Quassel::Features _coreFeatures; QString _debugLogBuffer; QTextStream _debugLog;