X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fclient.h;h=89ef829da0674e7e6ce677d644e99315d907b629;hp=23f7d32798dcca9dc38f5ea8a09787a943317726;hb=71d3d0d705a853fa8fea3729e13dbddf52363417;hpb=78decd5f8d1a149fc0e62e01bd6b2886e0feadfe diff --git a/src/client/client.h b/src/client/client.h index 23f7d327..89ef829d 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,7 @@ public: static void purgeKnownBufferIds(); static void changePassword(const QString &oldPassword, const QString &newPassword); + static void kickClient(int peerId); #if QT_VERSION < 0x050000 static void logMessage(QtMsgType type, const char *msg); @@ -201,6 +203,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 +261,7 @@ private: ClientUserInputHandler *_inputHandler; NetworkConfig *_networkConfig; ClientIgnoreListManager *_ignoreListManager; + HighlightRuleManager *_highlightRuleManager; ClientTransferManager *_transferManager; TransferModel *_transferModel; @@ -281,6 +286,3 @@ private: friend class CoreConnection; }; - - -#endif