Implement UI and serialization logic for sender modes
[quassel.git] / src / qtui / chatviewsettings.h
index 286de7c..a0f70f9 100644 (file)
@@ -46,7 +46,20 @@ public:
     inline void enableWebPreview(bool enabled) { setLocalValue("ShowWebPreview", enabled); }
 
     /**
-     * Gets the format string for chat log timestamps
+     * 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); }
+
+    /**
+     * Gets the format string for chat log timestamps.
      *
      * @returns String representing timestamp format, e.g. "[hh:mm:ss]" or " hh:mm:ss"
      */
@@ -60,12 +73,19 @@ public:
      */
     inline void setTimestampFormatString(const QString &format) { setLocalValue("TimestampFormat", format); }
 
+    /**
+     * Gets if prefixmodes are shown before sender names
+     *
+     * @returns True if sender prefixmodes enabled, otherwise false
+     */
+    inline bool showSenderPrefixes() { return localValue("ShowSenderPrefixes", false).toBool(); }
+
     /**
      * Gets if brackets are shown around sender names
      *
      * @returns True if sender brackets enabled, otherwise false
      */
-    inline bool showSenderBrackets() { return localValue("ShowSenderBrackets", true).toBool(); }
+    inline bool showSenderBrackets() { return localValue("ShowSenderBrackets", false).toBool(); }
     /**
      * Sets whether brackets are shown around around sender names.
      *