X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcore.h;h=fb2602808b307f29c70be9eb8f3a358ed5670f3a;hp=97725ddcde46fbfd0b721d1bdb61c7dc7d747252;hb=04754cf669dd295205226b744bc769b94693866a;hpb=52a4b82e170fe88725de8381c842a5278c7d1e46 diff --git a/src/core/core.h b/src/core/core.h index 97725ddc..fb260280 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -108,6 +108,15 @@ class Core : public QObject { */ static BufferInfo bufferInfo(UserId user, const NetworkId &networkId, BufferInfo::Type, const QString &buffer = ""); + //! Get the unique BufferInfo for a bufferId + /** \note This method is threadsafe + * \param user The core user who owns this buffername + * \param bufferId The id of the buffer + * \return The BufferInfo corresponding to the given buffer id, or an invalid BufferInfo if not found. + */ + static BufferInfo getBufferInfo(UserId user, const BufferId &bufferId); + + //! Store a Message in the backlog. /** \note This method is threadsafe. *