X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcore.h;h=bb1adf01ab6ed76c379d9edfc3227f24f86ad364;hp=fb2602808b307f29c70be9eb8f3a358ed5670f3a;hb=dcba0652ac1275877b98b06d6482924ee6df0cd1;hpb=04754cf669dd295205226b744bc769b94693866a diff --git a/src/core/core.h b/src/core/core.h index fb260280..bb1adf01 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -177,6 +177,16 @@ class Core : public QObject { */ static bool removeBuffer(const UserId &user, const BufferId &bufferId); + //! Rename a Buffer + /** \note This method is threadsafe. + * \param user The id of the buffer owner + * \param networkId The id of the network the buffer belongs to + * \param newName The new name of the buffer + * \param oldName The previous name of the buffer + * \return the BufferId of the affected buffer or an invalid BufferId if not successfull + */ + static BufferId renameBuffer(const UserId &user, const NetworkId &networkId, const QString &newName, const QString &oldName); + //! Update the LastSeenDate for a Buffer /** This Method is used to make the LastSeenDate of a Buffer persistent * \note This method is threadsafe.