X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fbuffersettings.h;h=81667d2bbbb4146141509aa21fd9d1e0a95e2048;hp=a86b12a1ad3529e52e22c7bd4798a10af0bc102b;hb=aa5df1497a6fca61d6f59be49572799b5c9d93fe;hpb=ed9a0a3e6d1af81cc07a54d4feebb8a01c451fb8 diff --git a/src/client/buffersettings.h b/src/client/buffersettings.h index a86b12a1..81667d2b 100644 --- a/src/client/buffersettings.h +++ b/src/client/buffersettings.h @@ -27,20 +27,37 @@ class BufferSettings : public ClientSettings { public: + enum RedirectTarget { + DefaultBuffer = 0x01, + StatusBuffer = 0x02, + CurrentBuffer = 0x04 + }; + BufferSettings(const QString &idString = "__default__"); BufferSettings(BufferId bufferId); inline void setValue(const QString &key, const QVariant &data) { setLocalValue(key, data); } inline QVariant value(const QString &key, const QVariant &def = QVariant()) { return localValue(key, def); } + // Message Filter (default and per view) inline bool hasFilter() { return localValue("hasMessageTypeFilter", false).toBool(); } inline int messageFilter() { return localValue("MessageTypeFilter", 0).toInt(); } void setMessageFilter(int filter); void filterMessage(Message::Type msgType, bool filter); void removeFilter(); + // user state icons for query buffers (default) inline bool showUserStateIcons() { return localValue("ShowUserStateIcons", true).toBool(); } inline void enableUserStateIcons(bool enabled) { setLocalValue("ShowUserStateIcons", enabled); } + + + // redirection settings (default) + inline int userNoticesTarget() { return localValue("UserNoticesTarget", DefaultBuffer).toInt(); } + inline void setUserNoticesTarget(int target) { setLocalValue("UserNoticesTarget", target); } + inline int serverNoticesTarget() { return localValue("ServerNoticesTarget", StatusBuffer).toInt(); } + inline void setServerNoticesTarget(int target) { setLocalValue("ServerNoticesTarget", target); } + inline int errorMsgsTarget() { return localValue("ErrorMsgsTarget", DefaultBuffer).toInt(); } + inline void setErrorMsgsTarget(int target) { setLocalValue("ErrorMsgsTarget", target); } };