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

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

Inheritance diagram for PerBufferUnreadBacklogRequester:
Collaboration diagram for PerBufferUnreadBacklogRequester:

Public Types

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

Public Member Functions

 PerBufferUnreadBacklogRequester (ClientBacklogManager *backlogManager)
virtual void requestBacklog (const BufferIdList &bufferIds)
 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 requestInitialBacklog ()
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 110 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

void requestBacklog ( const BufferIdList bufferIds)
virtual
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
virtual void requestInitialBacklog ( )
inlinevirtualinherited
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 117 of file backlogrequester.h.

Referenced by PerBufferUnreadBacklogRequester(), and requestBacklog().

int _additional
private

Definition at line 118 of file backlogrequester.h.

Referenced by PerBufferUnreadBacklogRequester(), and requestBacklog().


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