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

#include </tmp/quassel/src/common/bufferinfo.h>

Collaboration diagram for BufferInfo:

Public Types

enum  Type {
  InvalidBuffer = 0x00, StatusBuffer = 0x01, ChannelBuffer = 0x02, QueryBuffer = 0x04,
  GroupBuffer = 0x08
}
enum  Activity { NoActivity = 0x00, OtherActivity = 0x01, NewMessage = 0x02, Highlight = 0x40 }

Public Member Functions

 Q_DECLARE_FLAGS (ActivityLevel, Activity) BufferInfo()
 BufferInfo (BufferId id, NetworkId networkid, Type type, uint gid=0, QString buf=QString())
bool isValid () const
const BufferIdbufferId () const
void setBufferId (BufferId id)
const NetworkIdnetworkId () const
const Typetype () const
const uint & groupId () const
void setGroupId (uint gid)
QString bufferName () const
bool acceptsRegularMessages () const
bool operator== (const BufferInfo &other) const

Static Public Member Functions

static BufferInfo fakeStatusBuffer (NetworkId networkId)

Private Attributes

BufferId _bufferId
NetworkId _netid
Type _type
uint _groupId
QString _bufferName

Friends

uint qHash (const BufferInfo &)
QDataStream & operator<< (QDataStream &out, const BufferInfo &bufferInfo)
QDataStream & operator>> (QDataStream &in, BufferInfo &bufferInfo)

Detailed Description

Definition at line 29 of file bufferinfo.h.

Member Enumeration Documentation

enum Type
Enumerator:
InvalidBuffer 
StatusBuffer 
ChannelBuffer 
QueryBuffer 
GroupBuffer 

Definition at line 32 of file bufferinfo.h.

enum Activity
Enumerator:
NoActivity 
OtherActivity 
NewMessage 
Highlight 

Definition at line 40 of file bufferinfo.h.

Constructor & Destructor Documentation

BufferInfo ( BufferId  id,
NetworkId  networkid,
Type  type,
uint  gid = 0,
QString  buf = QString() 
)

Definition at line 30 of file bufferinfo.cpp.

Referenced by fakeStatusBuffer().

Member Function Documentation

Q_DECLARE_FLAGS ( ActivityLevel  ,
Activity   
)
void setBufferId ( BufferId  id)
inline

Definition at line 55 of file bufferinfo.h.

References _bufferId.

Referenced by Message::setBufferId().

const uint& groupId ( ) const
inline

Definition at line 58 of file bufferinfo.h.

References _groupId.

Referenced by operator<<(), and BufferItem::setBufferName().

void setGroupId ( uint  gid)
inline

Definition at line 59 of file bufferinfo.h.

References _groupId.

bool operator== ( const BufferInfo other) const
inline

Definition at line 64 of file bufferinfo.h.

References _bufferId.

Friends And Related Function Documentation

uint qHash ( const BufferInfo bufferid)
friend

Definition at line 98 of file bufferinfo.cpp.

QDataStream& operator<< ( QDataStream &  out,
const BufferInfo bufferInfo 
)
friend

Definition at line 80 of file bufferinfo.cpp.

QDataStream& operator>> ( QDataStream &  in,
BufferInfo bufferInfo 
)
friend

Definition at line 87 of file bufferinfo.cpp.

Member Data Documentation

BufferId _bufferId
private

Definition at line 67 of file bufferinfo.h.

Referenced by bufferId(), isValid(), operator<<(), operator==(), operator>>(), qHash(), and setBufferId().

NetworkId _netid
private

Definition at line 68 of file bufferinfo.h.

Referenced by networkId(), operator<<(), and operator>>().

Type _type
private

Definition at line 69 of file bufferinfo.h.

Referenced by acceptsRegularMessages(), operator<<(), operator>>(), and type().

uint _groupId
private

Definition at line 70 of file bufferinfo.h.

Referenced by groupId(), operator<<(), operator>>(), and setGroupId().

QString _bufferName
private

Definition at line 71 of file bufferinfo.h.

Referenced by bufferName(), operator<<(), and operator>>().


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