X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fclient.h;h=225caab82841c855a8c27156ec5e3ddf2f3c3600;hp=23f7d32798dcca9dc38f5ea8a09787a943317726;hb=095d3006b60d64ef3a705ee204afe5e555ca8729;hpb=78decd5f8d1a149fc0e62e01bd6b2886e0feadfe diff --git a/src/client/client.h b/src/client/client.h index 23f7d327..225caab8 100644 --- a/src/client/client.h +++ b/src/client/client.h @@ -18,8 +18,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef CLIENT_H_ -#define CLIENT_H_ +#pragma once #include #include @@ -27,6 +26,7 @@ #include "bufferinfo.h" #include "coreaccount.h" #include "coreconnection.h" +#include "highlightrulemanager.h" #include "quassel.h" #include "types.h" @@ -122,6 +122,7 @@ public: static inline ClientUserInputHandler *inputHandler() { return instance()->_inputHandler; } static inline NetworkConfig *networkConfig() { return instance()->_networkConfig; } static inline ClientIgnoreListManager *ignoreListManager() { return instance()->_ignoreListManager; } + static inline HighlightRuleManager *highlightRuleManager() { return instance()->_highlightRuleManager; } static inline ClientTransferManager *transferManager() { return instance()->_transferManager; } static inline TransferModel *transferModel() { return instance()->_transferModel; } @@ -149,6 +150,11 @@ public: static void purgeKnownBufferIds(); 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); @@ -161,6 +167,7 @@ signals: void requestNetworkStates(); void showConfigWizard(const QVariantMap &coredata); + void showIgnoreList(QString ignoreRule); void connected(); void disconnected(); @@ -201,6 +208,8 @@ signals: //! Requests a password change (user name must match the currently logged in user) void requestPasswordChange(PeerPtr peer, const QString &userName, const QString &oldPassword, const QString &newPassword); + + void requestKickClient(int peerId); void passwordChanged(bool success); public slots: @@ -257,6 +266,7 @@ private: ClientUserInputHandler *_inputHandler; NetworkConfig *_networkConfig; ClientIgnoreListManager *_ignoreListManager; + HighlightRuleManager *_highlightRuleManager; ClientTransferManager *_transferManager; TransferModel *_transferModel; @@ -281,6 +291,3 @@ private: friend class CoreConnection; }; - - -#endif