X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatviewsettings.h;h=fe536cb38c8a4ef7591f17d148332139bd3c3bcc;hp=b1933e3dbc73bf9983c6ebfe8373afdcd27da73b;hb=020c860035180e468705b836a21f7aaa70ba0160;hpb=20d41ee02763e0d681cb32718174a63e66068666 diff --git a/src/qtui/chatviewsettings.h b/src/qtui/chatviewsettings.h index b1933e3d..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,9 +28,21 @@ 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); -}; + inline bool showWebPreview() { return localValue("ShowWebPreview", true).toBool(); } + inline void enableWebPreview(bool enabled) { setLocalValue("ShowWebPreview", enabled); } +}; +Q_DECLARE_METATYPE(ChatViewSettings::OperationMode); #endif //CHATVIEWSETTINGS_H