X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fclient.h;h=6732d595aa290728d842d85e91957e82fdf4e317;hb=9f91e0dd3c4eb5c2e2dedfc8d36a068d433d51b1;hp=6f261f57a7e19cd7c7dc04cc37a551a486837bb1;hpb=af39ec163d703852a8fa49dbf79c0ef694aa2e76;p=quassel.git diff --git a/src/client/client.h b/src/client/client.h index 6f261f57..6732d595 100644 --- a/src/client/client.h +++ b/src/client/client.h @@ -18,16 +18,15 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef CLIENT_H_ -#define CLIENT_H_ +#pragma once #include #include -#include #include "bufferinfo.h" #include "coreaccount.h" #include "coreconnection.h" +#include "highlightrulemanager.h" #include "quassel.h" #include "types.h" @@ -132,9 +131,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(); @@ -153,6 +150,10 @@ public: static void changePassword(const QString &oldPassword, const QString &newPassword); static void kickClient(int peerId); + void displayIgnoreList(QString ignoreRule) { + emit showIgnoreList(ignoreRule); + } + #if QT_VERSION < 0x050000 static void logMessage(QtMsgType type, const char *msg); #else @@ -164,6 +165,7 @@ signals: void requestNetworkStates(); void showConfigWizard(const QVariantMap &coredata); + void showIgnoreList(QString ignoreRule); void connected(); void disconnected(); @@ -278,7 +280,6 @@ private: QHash _identities; bool _connected; - static Quassel::Features _coreFeatures; QString _debugLogBuffer; QTextStream _debugLog; @@ -287,6 +288,3 @@ private: friend class CoreConnection; }; - - -#endif