X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fstorage.h;h=6470b40506bb71200233d378c0f95fe4f8f4868e;hp=30c1c0bd376267c29ca1f615b876a4cb850099aa;hb=59579d82e3a16a815a197a4300c8ef279275ccfc;hpb=23ebdc0a422294764ff3be3f8d7e56cc2b323185 diff --git a/src/core/storage.h b/src/core/storage.h index 30c1c0bd..6470b405 100644 --- a/src/core/storage.h +++ b/src/core/storage.h @@ -60,7 +60,14 @@ class Storage : public QObject { * \return True if and only if the storage provider was initialized successfully. */ virtual bool init(const QVariantMap &settings = QVariantMap()) = 0; - + + //! Makes temp data persistent + /** This Method is periodically called by the Quassel Core to make temporary + * data persistant. This reduces the data loss drastically in the + * unlikely case of a Core crash. + */ + virtual void sync() = 0; + // TODO: Add functions for configuring the backlog handling, i.e. defining auto-cleanup settings etc /* User handling */