X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatmonitorfilter.h;h=6b3adcd13e6ff8d02dffde4827e3f91c0c06477b;hp=75016636e6553053a144f53de52bd921e4650c38;hb=694f9bfbf7f1af19108461c7e00d133e55082bce;hpb=77397f5e999830077fee13187c6a1ee044d92545;ds=sidebyside diff --git a/src/qtui/chatmonitorfilter.h b/src/qtui/chatmonitorfilter.h index 75016636..6b3adcd1 100644 --- a/src/qtui/chatmonitorfilter.h +++ b/src/qtui/chatmonitorfilter.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 * @@ -25,45 +25,47 @@ #include "messagefilter.h" -class ChatMonitorFilter : public MessageFilter { - Q_OBJECT +class ChatMonitorFilter : public MessageFilter +{ + Q_OBJECT public: - enum SenderFields { - NoField = 0x00, - NetworkField = 0x01, - BufferField = 0x02, - SenderField = 0x04, - AllFields = 0xFF - }; + enum SenderFields { + NoField = 0x00, + NetworkField = 0x01, + BufferField = 0x02, + SenderField = 0x04, + AllFields = 0xff + }; - ChatMonitorFilter(MessageModel *model, QObject *parent = 0); + ChatMonitorFilter(MessageModel *model, QObject *parent = 0); - virtual bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const; - virtual QString idString() const { return "ChatMonitor"; } - virtual QVariant data(const QModelIndex &index, int role) const; + virtual bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const; + virtual QString idString() const { return "ChatMonitor"; } + virtual QVariant data(const QModelIndex &index, int role) const; - int showFields() const { return _showFields; } - bool showOwnMessages() const { return _showOwnMessages; } + int showFields() const { return _showFields; } + bool showOwnMessages() const { return _showOwnMessages; } public slots: - void addShowField(int field); - void removeShowField(int field); - void setShowOwnMessages(bool show); + void addShowField(int field); + void removeShowField(int field); + void setShowOwnMessages(bool show); private slots: - void showFieldsSettingsChanged(const QVariant &newValue); - void showOwnMessagesSettingChanged(const QVariant &newValue); - void highlightAlwaysSettingsChanged(const QVariant &newValue); - void operationModeSettingsChanged(const QVariant &newValue); - void buffersSettingsChanged(const QVariant &newValue); + void showFieldsSettingChanged(const QVariant &newValue); + void showOwnMessagesSettingChanged(const QVariant &newValue); + void showHighlightsSettingChanged(const QVariant &newValue); + void operationModeSettingChanged(const QVariant &newValue); + void buffersSettingChanged(const QVariant &newValue); private: - int _showFields; - bool _showOwnMessages; - QList _bufferIds; - bool _highlightAlways; - int _operationMode; + int _showFields; + bool _showOwnMessages; + QList _bufferIds; + bool _showHighlights; + int _operationMode; }; + #endif