X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fsettings.h;h=72dec758a512335a90ec10f91532d5f9e6213fc9;hb=8fe8accd73abf77ab21d2d1c1346d2bc5c4de2ff;hp=e9bf28d087da87869c83fc367682de98c00c878e;hpb=d2ac8f78a0e050d2efa397c434b249d6b3391576;p=quassel.git diff --git a/src/common/settings.h b/src/common/settings.h index e9bf28d0..72dec758 100644 --- a/src/common/settings.h +++ b/src/common/settings.h @@ -83,6 +83,20 @@ public: */ virtual void setVersionMinor(const uint versionMinor); + /** + * Persist unsaved changes to permanent storage + * + * @return true if succeeded, false otherwise + */ + bool sync(); + + /** + * Check if the configuration storage is writable. + * + * @return true if writable, false otherwise + */ + bool isWritable(); + protected: inline Settings(QString group_, QString appName_) : group(group_), appName(appName_) {} inline virtual ~Settings() {}