X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fclient.h;h=7afb8e44ce21f015eb952f8090f425c7adb6dd9b;hp=74ad8685ed0f18606c183c2b770dc965f414a1d7;hb=35ca85f1c4371ee28d00d5ff0195a5b44aadb299;hpb=64cf9f9b8a737dad5f29447805d4004cfd03c454 diff --git a/src/client/client.h b/src/client/client.h index 74ad8685..7afb8e44 100644 --- a/src/client/client.h +++ b/src/client/client.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2013 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 * @@ -49,6 +49,7 @@ class ClientBacklogManager; class ClientBufferViewManager; class ClientIgnoreListManager; class ClientIrcListHelper; +class ClientTransferManager; class ClientUserInputHandler; class CoreAccountModel; class CoreConnection; @@ -56,6 +57,7 @@ class IrcUser; class IrcChannel; class NetworkConfig; class SignalProxy; + struct NetworkInfo; class Client : public QObject @@ -117,6 +119,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 ClientTransferManager *transferManager() { return instance()->_transferManager; } static inline CoreAccountModel *coreAccountModel() { return instance()->_coreAccountModel; } static inline CoreConnection *coreConnection() { return instance()->_coreConnection; } @@ -139,7 +142,13 @@ public: static void mergeBuffersPermanently(BufferId bufferId1, BufferId bufferId2); static void purgeKnownBufferIds(); + static void changePassword(const QString &oldPassword, const QString &newPassword); + +#if QT_VERSION < 0x050000 static void logMessage(QtMsgType type, const char *msg); +#else + static void logMessage(QtMsgType, const QMessageLogContext&, const QString&); +#endif static inline const QString &debugLog() { return instance()->_debugLogBuffer; } signals: @@ -184,6 +193,10 @@ signals: */ void bufferMarkedAsRead(BufferId id); + //! 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 passwordChanged(bool success); + public slots: void disconnectFromCore(); @@ -207,6 +220,8 @@ private slots: void coreNetworkCreated(NetworkId); void coreNetworkRemoved(NetworkId); + void corePasswordChanged(PeerPtr, bool success); + void requestInitialBacklog(); void sendBufferedUserInput(); @@ -234,6 +249,7 @@ private: ClientUserInputHandler *_inputHandler; NetworkConfig *_networkConfig; ClientIgnoreListManager *_ignoreListManager; + ClientTransferManager *_transferManager; MessageModel *_messageModel; AbstractMessageProcessor *_messageProcessor;