X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fstorage.h;h=3915d09012f87269fba3ca11d2e27032b0ee760d;hp=8b264f446248f9e4d306f6a6442b16dade5f9e16;hb=04754cf669dd295205226b744bc769b94693866a;hpb=52a4b82e170fe88725de8381c842a5278c7d1e46 diff --git a/src/core/storage.h b/src/core/storage.h index 8b264f44..3915d090 100644 --- a/src/core/storage.h +++ b/src/core/storage.h @@ -155,10 +155,17 @@ class Storage : public QObject { * \param networkId The network id * \param type The type of the buffer (StatusBuffer, Channel, etc.) * \param buffer The buffer name (if empty, the net's status buffer is returned) - * \return The BufferInfo corresponding to the given network and buffer name, or 0 if not found + * \return The BufferInfo corresponding to the given network and buffer name, or an invalid BufferInfo if not found */ virtual BufferInfo getBufferInfo(UserId user, const NetworkId &networkId, BufferInfo::Type type, const QString &buffer = "") = 0; + //! Get the unique BufferInfo for a bufferId + /** \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. + */ + virtual BufferInfo getBufferInfo(UserId user, const BufferId &bufferId) = 0; + //! Request a list of all buffers known to a user since a certain point in time. /** This method is used to get a list of all buffers we have stored a backlog from. * Optionally, a QDateTime can be given, so that only buffers are listed that where active