X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fclient.h;h=3dc261a460723991718e70bf7bfb512ac4481828;hp=225caab82841c855a8c27156ec5e3ddf2f3c3600;hb=bd5414d8bfe2be18ba051d4bbf936e9ead0cdf66;hpb=095d3006b60d64ef3a705ee204afe5e555ca8729 diff --git a/src/client/client.h b/src/client/client.h index 225caab8..3dc261a4 100644 --- a/src/client/client.h +++ b/src/client/client.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2016 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -24,6 +24,7 @@ #include #include "bufferinfo.h" +#include "coreinfo.h" #include "coreaccount.h" #include "coreconnection.h" #include "highlightrulemanager.h" @@ -115,6 +116,7 @@ public: static inline ClientAliasManager *aliasManager() { return instance()->_aliasManager; } static inline ClientBacklogManager *backlogManager() { return instance()->_backlogManager; } + static inline CoreInfo *coreInfo() { return instance()->_coreInfo; } static inline DccConfig *dccConfig() { return instance()->_dccConfig; } static inline ClientIrcListHelper *ircListHelper() { return instance()->_ircListHelper; } static inline ClientBufferViewManager *bufferViewManager() { return instance()->_bufferViewManager; } @@ -131,9 +133,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 void setCoreFeatures(Quassel::Features features); + static bool isCoreFeatureEnabled(Quassel::Feature feature); static bool isConnected(); static bool internalCore(); @@ -163,10 +163,15 @@ public: #endif static inline const QString &debugLog() { return instance()->_debugLogBuffer; } + void displayChannelList(NetworkId networkId) { + emit showChannelList(networkId); + } + signals: void requestNetworkStates(); void showConfigWizard(const QVariantMap &coredata); + void showChannelList(NetworkId networkId); void showIgnoreList(QString ignoreRule); void connected(); @@ -261,6 +266,7 @@ private: ClientBacklogManager *_backlogManager; ClientBufferViewManager *_bufferViewManager; BufferViewOverlay *_bufferViewOverlay; + CoreInfo *_coreInfo; DccConfig *_dccConfig; ClientIrcListHelper *_ircListHelper; ClientUserInputHandler *_inputHandler; @@ -282,7 +288,6 @@ private: QHash _identities; bool _connected; - static Quassel::Features _coreFeatures; QString _debugLogBuffer; QTextStream _debugLog;