X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatviewsettings.h;h=fe536cb38c8a4ef7591f17d148332139bd3c3bcc;hp=179049380b88d83c75ed449a2608ea84e1f118e6;hb=dcac65fc4beeb1167de8ebec5cc54608fc314fd3;hpb=9996d2489e5e5ca23b0750f39f64d8d4b5990029 diff --git a/src/qtui/chatviewsettings.h b/src/qtui/chatviewsettings.h index 17904938..fe536cb3 100644 --- a/src/qtui/chatviewsettings.h +++ b/src/qtui/chatviewsettings.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel Project * + * Copyright (C) 2005-09 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -28,6 +28,15 @@ class ChatView; class ChatViewSettings : public QtUiSettings { public: + Q_ENUMS(OperationMode); + public: + enum OperationMode { + InvalidMode = 0, + OptIn = 1, + OptOut = 2 + }; + Q_DECLARE_FLAGS(operationModes, OperationMode); + ChatViewSettings(const QString &id = "__default__"); ChatViewSettings(ChatScene *scene); ChatViewSettings(ChatView *view); @@ -35,5 +44,5 @@ public: inline bool showWebPreview() { return localValue("ShowWebPreview", true).toBool(); } inline void enableWebPreview(bool enabled) { setLocalValue("ShowWebPreview", enabled); } }; - +Q_DECLARE_METATYPE(ChatViewSettings::OperationMode); #endif //CHATVIEWSETTINGS_H