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

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

Inheritance diagram for QtUiMessageProcessor:
Collaboration diagram for QtUiMessageProcessor:

Classes

struct  HighlightRule

Public Types

enum  Mode { TimerBased, Concurrent }

Public Slots

void process (Message &msg)
void process (QList< Message > &msgs)

Public Member Functions

 QtUiMessageProcessor (QObject *parent)
bool isProcessing () const
Mode processMode () const
void reset ()

Protected Member Functions

void preProcess (Message &msg)

Private Slots

void processNextMessage ()
void nicksCaseSensitiveChanged (const QVariant &variant)
void highlightListChanged (const QVariant &variant)
void highlightNickChanged (const QVariant &variant)

Private Member Functions

void checkForHighlight (Message &msg)
void startProcessing ()

Private Attributes

QList< QList< Message > > _processQueue
QList< Message_currentBatch
QTimer _processTimer
bool _processing
Mode _processMode
QList< HighlightRule_highlightRules
NotificationSettings::HighlightNickType _highlightNick
bool _nicksCaseSensitive

Detailed Description

Definition at line 28 of file qtuimessageprocessor.h.

Member Enumeration Documentation

enum Mode
Enumerator:
TimerBased 
Concurrent 

Definition at line 33 of file qtuimessageprocessor.h.

Constructor & Destructor Documentation

Member Function Documentation

bool isProcessing ( ) const
inline

Definition at line 40 of file qtuimessageprocessor.h.

References _processing.

Referenced by process().

Mode processMode ( ) const
inline

Definition at line 41 of file qtuimessageprocessor.h.

References _processMode.

Referenced by reset(), and startProcessing().

void reset ( )
virtual
void processNextMessage ( )
privateslot

Definition at line 97 of file qtuimessageprocessor.cpp.

References _currentBatch, _processing, _processQueue, _processTimer, and process().

Referenced by QtUiMessageProcessor().

void nicksCaseSensitiveChanged ( const QVariant &  variant)
privateslot

Definition at line 174 of file qtuimessageprocessor.cpp.

References _nicksCaseSensitive.

Referenced by QtUiMessageProcessor().

void highlightListChanged ( const QVariant &  variant)
privateslot

Definition at line 180 of file qtuimessageprocessor.cpp.

References _highlightRules.

Referenced by QtUiMessageProcessor().

void highlightNickChanged ( const QVariant &  variant)
privateslot

Definition at line 198 of file qtuimessageprocessor.cpp.

References _highlightNick.

Referenced by QtUiMessageProcessor().

void startProcessing ( )
private

Definition at line 85 of file qtuimessageprocessor.cpp.

References _currentBatch, _processing, _processQueue, _processTimer, processMode(), and TimerBased.

Referenced by process().

void preProcess ( Message msg)
inlineprotectedinherited

Definition at line 44 of file abstractmessageprocessor.h.

References Client::networkModel(), and NetworkModel::updateBufferActivity().

Referenced by process().

Member Data Documentation

QList<QList<Message> > _processQueue
private

Definition at line 59 of file qtuimessageprocessor.h.

Referenced by process(), processNextMessage(), reset(), and startProcessing().

QList<Message> _currentBatch
private

Definition at line 60 of file qtuimessageprocessor.h.

Referenced by processNextMessage(), reset(), and startProcessing().

QTimer _processTimer
private
bool _processing
private

Definition at line 62 of file qtuimessageprocessor.h.

Referenced by isProcessing(), processNextMessage(), reset(), and startProcessing().

Mode _processMode
private

Definition at line 63 of file qtuimessageprocessor.h.

Referenced by processMode().

QList<HighlightRule> _highlightRules
private

Definition at line 75 of file qtuimessageprocessor.h.

Referenced by checkForHighlight(), and highlightListChanged().

bool _nicksCaseSensitive
private

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