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

#include </tmp/quassel/src/client/messagefilter.h>

Inheritance diagram for MessageFilter:

Public Slots

void messageTypeFilterChanged ()
void messageRedirectionChanged ()
void requestBacklog ()
void invalidateFilter ()

Public Member Functions

 MessageFilter (MessageModel *, const QList< BufferId > &buffers=QList< BufferId >(), QObject *parent=0)
virtual bool filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const
virtual QString idString () const
bool isSingleBufferFilter () const
BufferId singleBufferId () const
bool containsBuffer (const BufferId &id) const
QSet< BufferIdcontainedBuffers () const

Protected Member Functions

 MessageFilter (QAbstractItemModel *source, QObject *parent=0)
QString bufferName () const
BufferInfo::Type bufferType () const
NetworkId networkId () const

Private Member Functions

void init ()

Private Attributes

QSet< BufferId_validBuffers
QMultiHash< QString, uint > _filteredQuitMsgs
int _messageTypeFilter
int _userNoticesTarget
int _serverNoticesTarget
int _errorMsgsTarget

Detailed Description

Definition at line 32 of file messagefilter.h.

Constructor & Destructor Documentation

MessageFilter ( QAbstractItemModel *  source,
QObject *  parent = 0 
)
protected

Definition at line 30 of file messagefilter.cpp.

References init().

MessageFilter ( MessageModel source,
const QList< BufferId > &  buffers = QList<BufferId>(),
QObject *  parent = 0 
)

Definition at line 39 of file messagefilter.cpp.

References init().

Member Function Documentation

QString idString ( ) const
virtual
bool isSingleBufferFilter ( ) const
inline

Definition at line 44 of file messagefilter.h.

References _validBuffers.

Referenced by ChatScene::ChatScene().

BufferId singleBufferId ( ) const
inline

Definition at line 45 of file messagefilter.h.

References _validBuffers.

Referenced by bufferName(), bufferType(), ChatScene::ChatScene(), and networkId().

bool containsBuffer ( const BufferId id) const
inline

Definition at line 46 of file messagefilter.h.

References _validBuffers.

Referenced by ChatScene::containsBuffer().

QSet<BufferId> containedBuffers ( ) const
inline

Definition at line 47 of file messagefilter.h.

References _validBuffers.

void messageTypeFilterChanged ( )
slot
void requestBacklog ( )
slot
void invalidateFilter ( )
inlineslot
QString bufferName ( ) const
inlineprotected

Definition at line 57 of file messagefilter.h.

References NetworkModel::bufferName(), Client::networkModel(), and singleBufferId().

Referenced by filterAcceptsRow().

BufferInfo::Type bufferType ( ) const
inlineprotected

Definition at line 58 of file messagefilter.h.

References NetworkModel::bufferType(), Client::networkModel(), and singleBufferId().

Referenced by filterAcceptsRow().

NetworkId networkId ( ) const
inlineprotected

Definition at line 59 of file messagefilter.h.

References NetworkModel::networkId(), Client::networkModel(), and singleBufferId().

Referenced by filterAcceptsRow().

Member Data Documentation

QMultiHash<QString, uint> _filteredQuitMsgs
private

Definition at line 65 of file messagefilter.h.

Referenced by filterAcceptsRow(), and messageTypeFilterChanged().

int _messageTypeFilter
private

Definition at line 66 of file messagefilter.h.

Referenced by filterAcceptsRow(), init(), and messageTypeFilterChanged().

int _userNoticesTarget
private

Definition at line 68 of file messagefilter.h.

Referenced by filterAcceptsRow(), init(), and messageRedirectionChanged().

int _serverNoticesTarget
private

Definition at line 69 of file messagefilter.h.

Referenced by filterAcceptsRow(), init(), and messageRedirectionChanged().

int _errorMsgsTarget
private

Definition at line 70 of file messagefilter.h.

Referenced by filterAcceptsRow(), init(), and messageRedirectionChanged().


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