X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fstorage.h;h=49f2df8414254888096bf1aa3c8e75281a268de6;hp=b915d0479c1abe1b3e95f50643c2be457f788333;hb=c382e0c11f80fb37307ecc42c487aa433c97ad8c;hpb=899709300734acc2bac01b1d57a1fd8fe2a6d923 diff --git a/src/core/storage.h b/src/core/storage.h index b915d047..49f2df84 100644 --- a/src/core/storage.h +++ b/src/core/storage.h @@ -411,6 +411,25 @@ public slots: */ virtual Message::Types bufferActivity(BufferId bufferId, MsgId lastSeenMsgId) = 0; + //! Get a hash of buffers with their ciphers for a given network + /** The keys are channel names and values are ciphers (possibly empty) + * \note This method is threadsafe + * + * \param user The id of the networks owner + * \param networkId The Id of the network + */ + virtual QHash bufferCiphers(UserId user, const NetworkId &networkId) = 0; + + //! Update the cipher of a buffer + /** \note This method is threadsafe + * + * \param user The Id of the networks owner + * \param networkId The Id of the network + * \param bufferName The Cname of the buffer + * \param cipher The cipher for the buffer + */ + virtual void setBufferCipher(UserId user, const NetworkId &networkId, const QString &bufferName, const QByteArray &cipher) = 0; + /* Message handling */ //! Store a Message in the storage backend and set its unique Id.