- void setValue(const QString &key, const QVariant &data);
- QVariant value(const QString &key, const QVariant &def = QVariant());
+ virtual inline void setValue(const QString &key, const QVariant &data) { setLocalValue(key, data); }
+ virtual inline QVariant value(const QString &key, const QVariant &def = QVariant()) { return localValue(key, def); }
+
+ /**
+ * Gets if a value exists in settings
+ *
+ * @param[in] key ID of local settings key
+ * @returns True if key exists in settings, otherwise false
+ */
+ virtual inline bool valueExists(const QString &key) { return localKeyExists(key); }
+
+ inline void remove(const QString &key) { removeLocalKey(key); }
+};
+
+
+class UiStyleSettings : public UiSettings
+{
+public:
+ UiStyleSettings();
+ UiStyleSettings(const QString &subGroup);
+
+ void setCustomFormat(UiStyle::FormatType, QTextCharFormat);
+ QTextCharFormat customFormat(UiStyle::FormatType);
+
+ void removeCustomFormat(UiStyle::FormatType);
+ QList<UiStyle::FormatType> availableFormats();
+};
+
+
+class SessionSettings : public UiSettings
+{
+public:
+ SessionSettings(const QString &sessionId, const QString &group = "Session");
+
+ virtual void setValue(const QString &key, const QVariant &data);
+ virtual QVariant value(const QString &key, const QVariant &def = QVariant());