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

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

Inheritance diagram for GlobalUnreadBacklogRequester:
Collaboration diagram for GlobalUnreadBacklogRequester:

Public Types

enum  RequesterType { InvalidRequester = 0, PerBufferFixed, PerBufferUnread, GlobalUnread }

Public Member Functions

 GlobalUnreadBacklogRequester (ClientBacklogManager *backlogManager)
virtual void requestInitialBacklog ()
virtual void requestBacklog (const BufferIdList &)
 returns false if it was the last missing backlogpart
bool isBuffering ()
RequesterType type ()
const QList< Message > & bufferedMessages ()
int buffersWaiting () const
int totalBuffers () const
bool buffer (BufferId bufferId, const MessageList &messages)
virtual void flushBuffer ()

Protected Member Functions

BufferIdList allBufferIds () const
void setWaitingBuffers (const QList< BufferId > &buffers)
void setWaitingBuffers (const QSet< BufferId > &buffers)
void addWaitingBuffer (BufferId buffer)

Protected Attributes

ClientBacklogManagerbacklogManager

Private Attributes

int _limit
int _additional

Detailed Description

Definition at line 94 of file backlogrequester.h.

Member Enumeration Documentation

enum RequesterType
inherited
Enumerator:
InvalidRequester 
PerBufferFixed 
PerBufferUnread 
GlobalUnread 

Definition at line 36 of file backlogrequester.h.

Constructor & Destructor Documentation

Member Function Documentation

virtual void requestBacklog ( const BufferIdList bufferIds)
inlinevirtual

returns false if it was the last missing backlogpart

Implements BacklogRequester.

Definition at line 99 of file backlogrequester.h.

bool isBuffering ( )
inlineinherited
RequesterType type ( )
inlineinherited
const QList<Message>& bufferedMessages ( )
inlineinherited
int buffersWaiting ( ) const
inlineinherited
int totalBuffers ( ) const
inlineinherited
bool buffer ( BufferId  bufferId,
const MessageList messages 
)
inherited
void flushBuffer ( )
virtualinherited
void setWaitingBuffers ( const QList< BufferId > &  buffers)
inlineprotectedinherited
void setWaitingBuffers ( const QSet< BufferId > &  buffers)
protectedinherited
void addWaitingBuffer ( BufferId  buffer)
protectedinherited

Member Data Documentation

int _limit
private

Definition at line 102 of file backlogrequester.h.

Referenced by GlobalUnreadBacklogRequester(), and requestInitialBacklog().

int _additional
private

Definition at line 103 of file backlogrequester.h.

Referenced by GlobalUnreadBacklogRequester(), and requestInitialBacklog().


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