X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fstorage.h;h=5b86f87c369a5b6ec0ed0e57b12720317cc35ef1;hp=9612a5945ff62ebc0949bba9664aae4a180a37ef;hb=674ad8ee4369cbc9516eb6d6629a616e9310c71f;hpb=2eae29a94017197946f0c216e03367247c6e36be diff --git a/src/core/storage.h b/src/core/storage.h index 9612a594..5b86f87c 100644 --- a/src/core/storage.h +++ b/src/core/storage.h @@ -230,9 +230,10 @@ public slots: * \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) + * \param create Whether or not the buffer should be created if it doesnt exist * \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; + virtual BufferInfo bufferInfo(UserId user, const NetworkId &networkId, BufferInfo::Type type, const QString &buffer = "", bool create = true) = 0; //! Get the unique BufferInfo for a bufferId /** \param user The core user who owns this buffername