+ Q_DECLARE_FLAGS(operationModes, OperationMode);
+
+ ChatViewSettings(const QString &id = "__default__");
+ ChatViewSettings(ChatScene *scene);
+ ChatViewSettings(ChatView *view);
+
+ inline bool showWebPreview() { return localValue("ShowWebPreview", true).toBool(); }
+ inline void enableWebPreview(bool enabled) { setLocalValue("ShowWebPreview", enabled); }
+
+ /**
+ * Gets if a custom timestamp format is used.
+ *
+ * @returns True if custom timestamp format used, otherwise false
+ */
+ inline bool useCustomTimestampFormat() { return localValue("UseCustomTimestampFormat", false).toBool(); }
+ /**
+ * Sets whether a custom timestamp format is used.
+ *
+ * @param[in] enabled True if custom timestamp format used, otherwise false
+ */
+ inline void setUseCustomTimestampFormat(bool enabled) { setLocalValue("UseCustomTimestampFormat", enabled); }