X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fchatviewsettings.h;h=06fb54777325aa7c6279db49b189ca9e8501556e;hb=092e6b212637ffbf68800584b7c1f32d1931b602;hp=cb57b68aa38cd953f21a13b0a140da3d5e4728bd;hpb=b7cf37ec77eccfde8e515c6638ef8d996c71019f;p=quassel.git diff --git a/src/qtui/chatviewsettings.h b/src/qtui/chatviewsettings.h index cb57b68a..06fb5477 100644 --- a/src/qtui/chatviewsettings.h +++ b/src/qtui/chatviewsettings.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2016 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -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 *