X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fclient.h;h=3676e29637cea0b74231fbd21422ed55d1fa3677;hb=09e964ea3cd4995374dd7adb33256f3cefd47032;hp=89ef829da0674e7e6ce677d644e99315d907b629;hpb=71d3d0d705a853fa8fea3729e13dbddf52363417;p=quassel.git diff --git a/src/client/client.h b/src/client/client.h index 89ef829d..3676e296 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(); @@ -152,6 +152,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 @@ -159,10 +163,16 @@ 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(); void disconnected(); @@ -207,6 +217,9 @@ signals: void requestKickClient(int peerId); void passwordChanged(bool success); + //! Emitted when database schema upgrade starts or ends (only mono client) + void dbUpgradeInProgress(bool inProgress); + public slots: void disconnectFromCore(); @@ -216,6 +229,8 @@ public slots: void markBufferAsRead(BufferId id); + void onDbUpgradeInProgress(bool inProgress); + private slots: void setSyncedToCore(); void setDisconnectedFromCore(); @@ -256,6 +271,7 @@ private: ClientBacklogManager *_backlogManager; ClientBufferViewManager *_bufferViewManager; BufferViewOverlay *_bufferViewOverlay; + CoreInfo *_coreInfo; DccConfig *_dccConfig; ClientIrcListHelper *_ircListHelper; ClientUserInputHandler *_inputHandler; @@ -277,7 +293,6 @@ private: QHash _identities; bool _connected; - static Quassel::Features _coreFeatures; QString _debugLogBuffer; QTextStream _debugLog;