Quassel IRC  Pre-Release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
ChatMonitorFilter Class Reference

#include </tmp/quassel/src/qtui/chatmonitorfilter.h>

Inheritance diagram for ChatMonitorFilter:
Collaboration diagram for ChatMonitorFilter:

Public Types

enum  SenderFields {
  NoField = 0x00, NetworkField = 0x01, BufferField = 0x02, SenderField = 0x04,
  AllFields = 0xff
}

Public Slots

void addShowField (int field)
void removeShowField (int field)
void setShowOwnMessages (bool show)
void messageTypeFilterChanged ()
void messageRedirectionChanged ()
void requestBacklog ()
void invalidateFilter ()

Public Member Functions

 ChatMonitorFilter (MessageModel *model, QObject *parent=0)
virtual bool filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const
virtual QString idString () const
virtual QVariant data (const QModelIndex &index, int role) const
int showFields () const
bool showOwnMessages () const
bool isSingleBufferFilter () const
BufferId singleBufferId () const
bool containsBuffer (const BufferId &id) const
QSet< BufferIdcontainedBuffers () const

Protected Member Functions

QString bufferName () const
BufferInfo::Type bufferType () const
NetworkId networkId () const

Private Slots

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)
void showBacklogSettingChanged (const QVariant &newValue)
void includeReadSettingChanged (const QVariant &newValue)

Private Attributes

int _showFields
bool _showOwnMessages
QList< BufferId_bufferIds
bool _showHighlights
int _operationMode
bool _showBacklog
bool _includeRead

Detailed Description

Definition at line 28 of file chatmonitorfilter.h.

Member Enumeration Documentation

Enumerator:
NoField 
NetworkField 
BufferField 
SenderField 
AllFields 

Definition at line 33 of file chatmonitorfilter.h.

Constructor & Destructor Documentation

Member Function Documentation

virtual QString idString ( ) const
inlinevirtual

Reimplemented from MessageFilter.

Reimplemented in AwayLogFilter.

Definition at line 44 of file chatmonitorfilter.h.

Referenced by addShowField(), ChatMonitorFilter(), removeShowField(), and setShowOwnMessages().

int showFields ( ) const
inline

Definition at line 47 of file chatmonitorfilter.h.

References _showFields.

Referenced by ChatMonitorView::addActionsToMenu().

bool showOwnMessages ( ) const
inline

Definition at line 48 of file chatmonitorfilter.h.

References _showOwnMessages.

Referenced by ChatMonitorView::addActionsToMenu().

void addShowField ( int  field)
slot
void removeShowField ( int  field)
slot
void setShowOwnMessages ( bool  show)
slot

Definition at line 148 of file chatmonitorfilter.cpp.

References _showOwnMessages, idString(), and UiSettings::setValue().

void showFieldsSettingChanged ( const QVariant &  newValue)
privateslot

Definition at line 157 of file chatmonitorfilter.cpp.

References _showFields, and MessageModel::SenderColumn.

Referenced by ChatMonitorFilter().

void showOwnMessagesSettingChanged ( const QVariant &  newValue)
privateslot

Definition at line 173 of file chatmonitorfilter.cpp.

References _showOwnMessages.

Referenced by ChatMonitorFilter().

void showHighlightsSettingChanged ( const QVariant &  newValue)
privateslot

Definition at line 179 of file chatmonitorfilter.cpp.

References _showHighlights.

Referenced by ChatMonitorFilter().

void operationModeSettingChanged ( const QVariant &  newValue)
privateslot

Definition at line 185 of file chatmonitorfilter.cpp.

References _operationMode.

Referenced by ChatMonitorFilter().

void buffersSettingChanged ( const QVariant &  newValue)
privateslot

Definition at line 191 of file chatmonitorfilter.cpp.

References _bufferIds, and MessageFilter::invalidateFilter().

Referenced by ChatMonitorFilter().

void showBacklogSettingChanged ( const QVariant &  newValue)
privateslot

Definition at line 200 of file chatmonitorfilter.cpp.

References _showBacklog.

Referenced by ChatMonitorFilter().

void includeReadSettingChanged ( const QVariant &  newValue)
privateslot

Definition at line 204 of file chatmonitorfilter.cpp.

References _includeRead.

Referenced by ChatMonitorFilter().

bool isSingleBufferFilter ( ) const
inlineinherited

Definition at line 44 of file messagefilter.h.

References MessageFilter::_validBuffers.

Referenced by ChatScene::ChatScene().

BufferId singleBufferId ( ) const
inlineinherited
bool containsBuffer ( const BufferId id) const
inlineinherited

Definition at line 46 of file messagefilter.h.

References MessageFilter::_validBuffers.

Referenced by ChatScene::containsBuffer().

QSet<BufferId> containedBuffers ( ) const
inlineinherited

Definition at line 47 of file messagefilter.h.

References MessageFilter::_validBuffers.

void requestBacklog ( )
slotinherited
void invalidateFilter ( )
inlineslotinherited
QString bufferName ( ) const
inlineprotectedinherited
BufferInfo::Type bufferType ( ) const
inlineprotectedinherited
NetworkId networkId ( ) const
inlineprotectedinherited

Member Data Documentation

int _showFields
private
bool _showOwnMessages
private
QList<BufferId> _bufferIds
private

Definition at line 67 of file chatmonitorfilter.h.

Referenced by buffersSettingChanged(), ChatMonitorFilter(), and filterAcceptsRow().

bool _showHighlights
private
int _operationMode
private
bool _showBacklog
private
bool _includeRead
private

The documentation for this class was generated from the following files: