X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatviewsettings.h;h=a0f70f9d65b87826c3d2ca35e23ac03e2253388a;hp=cb57b68aa38cd953f21a13b0a140da3d5e4728bd;hb=53861faa5551606eea31588b65ba501b24fb2e1a;hpb=b7cf37ec77eccfde8e515c6638ef8d996c71019f diff --git a/src/qtui/chatviewsettings.h b/src/qtui/chatviewsettings.h index cb57b68a..a0f70f9d 100644 --- a/src/qtui/chatviewsettings.h +++ b/src/qtui/chatviewsettings.h @@ -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,6 +73,13 @@ 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 *