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

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

Public Slots

void addView (int viewId)
void removeView (int viewId)
void reset ()
void save ()
void restore ()
void update ()

Signals

void hasChanged ()
void initDone ()

Public Member Functions

 BufferViewOverlay (QObject *parent=0)
const QSet< int > & bufferViewIds ()
bool allNetworks ()
const QSet< NetworkId > & networkIds ()
const QSet< BufferId > & bufferIds ()
const QSet< BufferId > & removedBufferIds ()
const QSet< BufferId > & tempRemovedBufferIds ()
int allowedBufferTypes ()
int minimumActivity ()
bool isInitialized ()

Protected Member Functions

virtual void customEvent (QEvent *event)

Private Slots

void viewInitialized ()
void viewInitialized (BufferViewConfig *config)

Private Member Functions

void updateHelper ()
QSet< BufferIdfilterBuffersByConfig (const QList< BufferId > &buffers, const BufferViewConfig *config)

Private Attributes

bool _aboutToUpdate
QSet< int > _bufferViewIds
int _uninitializedViewCount
QSet< NetworkId_networkIds
int _allowedBufferTypes
int _minimumActivity
QSet< BufferId_buffers
QSet< BufferId_removedBuffers
QSet< BufferId_tempRemovedBuffers

Static Private Attributes

static const int _updateEventId = QEvent::registerEventType()

Detailed Description

Definition at line 31 of file bufferviewoverlay.h.

Constructor & Destructor Documentation

BufferViewOverlay ( QObject *  parent = 0)

Definition at line 33 of file bufferviewoverlay.cpp.

Member Function Documentation

const QSet<int>& bufferViewIds ( )
inline

Definition at line 38 of file bufferviewoverlay.h.

References _bufferViewIds.

Referenced by DebugBufferViewOverlay::update().

bool allNetworks ( )
const QSet< NetworkId > & networkIds ( )
const QSet< BufferId > & removedBufferIds ( )
const QSet< BufferId > & tempRemovedBufferIds ( )
int allowedBufferTypes ( )
int minimumActivity ( )
bool isInitialized ( )
inline
void save ( )
slot

Definition at line 60 of file bufferviewoverlay.cpp.

References _bufferViewIds, and CoreAccountSettings::setBufferViewOverlay().

Referenced by addView(), and removeView().

void restore ( )
slot
void update ( )
slot

Definition at line 187 of file bufferviewoverlay.cpp.

References _aboutToUpdate, and _updateEventId.

Referenced by removeView(), and viewInitialized().

void hasChanged ( )
signal

Referenced by updateHelper().

void initDone ( )
signal
void customEvent ( QEvent *  event)
protectedvirtual

Definition at line 284 of file bufferviewoverlay.cpp.

References _updateEventId, and updateHelper().

void viewInitialized ( )
privateslot

Definition at line 178 of file bufferviewoverlay.cpp.

Referenced by addView(), and viewInitialized().

void viewInitialized ( BufferViewConfig config)
privateslot
QSet< BufferId > filterBuffersByConfig ( const QList< BufferId > &  buffers,
const BufferViewConfig config 
)
private

Member Data Documentation

bool _aboutToUpdate
private

Definition at line 77 of file bufferviewoverlay.h.

Referenced by reset(), update(), and updateHelper().

QSet<int> _bufferViewIds
private
int _uninitializedViewCount
private

Definition at line 80 of file bufferviewoverlay.h.

Referenced by addView(), isInitialized(), removeView(), reset(), and viewInitialized().

QSet<NetworkId> _networkIds
private

Definition at line 82 of file bufferviewoverlay.h.

Referenced by allNetworks(), networkIds(), reset(), and updateHelper().

int _allowedBufferTypes
private

Definition at line 83 of file bufferviewoverlay.h.

Referenced by allowedBufferTypes(), reset(), and updateHelper().

int _minimumActivity
private

Definition at line 84 of file bufferviewoverlay.h.

Referenced by minimumActivity(), reset(), and updateHelper().

QSet<BufferId> _buffers
private

Definition at line 86 of file bufferviewoverlay.h.

Referenced by bufferIds(), reset(), and updateHelper().

QSet<BufferId> _removedBuffers
private

Definition at line 87 of file bufferviewoverlay.h.

Referenced by removedBufferIds(), reset(), and updateHelper().

QSet<BufferId> _tempRemovedBuffers
private

Definition at line 88 of file bufferviewoverlay.h.

Referenced by reset(), tempRemovedBufferIds(), and updateHelper().

const int _updateEventId = QEvent::registerEventType()
staticprivate

Definition at line 90 of file bufferviewoverlay.h.

Referenced by customEvent(), and update().


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