X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fclient.h;fp=src%2Fclient%2Fclient.h;h=f8baa983820151f0f5b3a8637d7acc5c291242a6;hp=3676e29637cea0b74231fbd21422ed55d1fa3677;hb=e375f7a6a6de045735a897ef05bf6dcc82770ff5;hpb=dcc541413235e39cc505061950d4aafa89367f98 diff --git a/src/client/client.h b/src/client/client.h index 3676e296..f8baa983 100644 --- a/src/client/client.h +++ b/src/client/client.h @@ -149,6 +149,17 @@ public: static void mergeBuffersPermanently(BufferId bufferId1, BufferId bufferId2); static void purgeKnownBufferIds(); + /** + * Requests client to resynchronize the CoreInfo object for legacy (pre-0.13) cores + * + * This provides compatibility with updating core information for legacy cores, and can be + * removed after protocol break. + * + * NOTE: On legacy (pre-0.13) cores, any existing connected signals will be destroyed and must + * be re-added after calling this, in addition to checking for existing data in coreInfo(). + */ + static void refreshLegacyCoreInfo(); + static void changePassword(const QString &oldPassword, const QString &newPassword); static void kickClient(int peerId); @@ -178,6 +189,17 @@ signals: void disconnected(); void coreConnectionStateChanged(bool); + /** + * Signals that core information has been resynchronized, removing existing signal handlers + * + * Whenever this is emitted, one should re-add any handlers for CoreInfo::coreDataChanged() and + * apply any existing information in the coreInfo() object. + * + * Only emitted on legacy (pre-0.13) cores. Generally, one should use the + * CoreInfo::coreDataChanged() signal too. + */ + void coreInfoResynchronized(); + //! The identity with the given ID has been newly created in core and client. /** \param id The ID of the newly created identity. */ @@ -258,6 +280,17 @@ private: void requestInitialBacklog(); + /** + * Deletes and resynchronizes the CoreInfo object for legacy (pre-0.13) cores + * + * This provides compatibility with updating core information for legacy cores, and can be + * removed after protocol break. + * + * NOTE: On legacy (pre-0.13) cores, any existing connected signals will be destroyed and must + * be re-added after calling this, in addition to checking for existing data in coreInfo(). + */ + void requestLegacyCoreInfo(); + static void addNetwork(Network *); static QPointer instanceptr;