X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fclient.h;h=7afb8e44ce21f015eb952f8090f425c7adb6dd9b;hp=445648b23fed023a10b3728ccb0659cab7b45652;hb=35ca85f1c4371ee28d00d5ff0195a5b44aadb299;hpb=8379f6f725cf8ed2fdad1a19bd10743436c2d086 diff --git a/src/client/client.h b/src/client/client.h index 445648b2..7afb8e44 100644 --- a/src/client/client.h +++ b/src/client/client.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 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 * @@ -142,6 +142,8 @@ 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 @@ -191,7 +193,9 @@ signals: */ void bufferMarkedAsRead(BufferId id); - void clientChangePassword(QString password); + //! 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(); @@ -202,8 +206,6 @@ public slots: void markBufferAsRead(BufferId id); - void changePassword(QString newPassword); - private slots: void setSyncedToCore(); void setDisconnectedFromCore(); @@ -218,6 +220,8 @@ private slots: void coreNetworkCreated(NetworkId); void coreNetworkRemoved(NetworkId); + void corePasswordChanged(PeerPtr, bool success); + void requestInitialBacklog(); void sendBufferedUserInput();