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

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

Inheritance diagram for StatusBufferItem:
Collaboration diagram for StatusBufferItem:

Public Types

enum  TreeItemFlag { NoTreeItemFlag = 0x00, DeleteOnLastChildRemoved = 0x01 }

Public Slots

virtual void setTopic (const QString &)
virtual void setEncrypted (bool)

Signals

void dataChanged (int column=-1)
void beginAppendChilds (int firstRow, int lastRow)
void endAppendChilds ()
void beginRemoveChilds (int firstRow, int lastRow)
void endRemoveChilds ()

Public Member Functions

 StatusBufferItem (const BufferInfo &bufferInfo, NetworkItem *parent)
virtual QString toolTip (int column) const
virtual QString bufferName () const
virtual QString topic () const
virtual int nickCount () const
const BufferInfobufferInfo () const
virtual QVariant data (int column, int role) const
virtual bool setData (int column, const QVariant &value, int role)
BufferId bufferId () const
BufferInfo::Type bufferType () const
virtual void setBufferName (const QString &name)
virtual bool isActive () const
MsgId lastSeenMsgId () const
MsgId markerLineMsgId () const
void setLastSeenMsgId (MsgId msgId)
void setMarkerLineMsgId (MsgId msgId)
BufferInfo::ActivityLevel activityLevel () const
void setActivityLevel (BufferInfo::ActivityLevel level)
void clearActivityLevel ()
void updateActivityLevel (const Message &msg)
const MsgIdfirstUnreadMsgId () const
bool isCurrentBuffer () const
virtual int columnCount () const
void appendProperty (const QString &property)
 Q_DECLARE_FLAGS (TreeItemFlags, TreeItemFlag) AbstractTreeItem(AbstractTreeItem *parent=0)
bool newChild (AbstractTreeItem *child)
bool newChilds (const QList< AbstractTreeItem * > &items)
bool removeChild (int row)
bool removeChild (AbstractTreeItem *child)
void removeAllChilds ()
bool reParent (AbstractTreeItem *newParent)
AbstractTreeItemchild (int row) const
int childCount (int column=0) const
virtual Qt::ItemFlags flags () const
virtual void setFlags (Qt::ItemFlags flags)
AbstractTreeItem::TreeItemFlags treeItemFlags () const
void setTreeItemFlags (AbstractTreeItem::TreeItemFlags flags)
int row () const
AbstractTreeItemparent () const
void dumpChildList ()

Protected Member Functions

void customEvent (QEvent *event)

Properties

QString bufferName
QString topic
int nickCount

Detailed Description

Definition at line 143 of file networkmodel.h.

Member Enumeration Documentation

enum TreeItemFlag
inherited
Enumerator:
NoTreeItemFlag 
DeleteOnLastChildRemoved 

Definition at line 39 of file treemodel.h.

Constructor & Destructor Documentation

StatusBufferItem ( const BufferInfo bufferInfo,
NetworkItem parent 
)

Definition at line 408 of file networkmodel.cpp.

Member Function Documentation

QString toolTip ( int  column) const
virtual

Reimplemented from BufferItem.

Definition at line 414 of file networkmodel.cpp.

References AbstractTreeItem::parent(), and NetworkItem::toolTip().

virtual QString bufferName ( ) const
inlinevirtual

Reimplemented from BufferItem.

Definition at line 151 of file networkmodel.h.

virtual QString topic ( ) const
inlinevirtualinherited

Reimplemented in ChannelBufferItem.

Definition at line 107 of file networkmodel.h.

virtual int nickCount ( ) const
inlinevirtualinherited

Reimplemented in ChannelBufferItem.

Definition at line 108 of file networkmodel.h.

const BufferInfo& bufferInfo ( ) const
inlineinherited

Definition at line 98 of file networkmodel.h.

References BufferItem::_bufferInfo.

Referenced by BufferItem::data(), and BufferItem::toolTip().

bool setData ( int  column,
const QVariant &  value,
int  role 
)
virtualinherited

Reimplemented from PropertyMapItem.

Reimplemented in QueryBufferItem.

Definition at line 351 of file networkmodel.cpp.

References NetworkModel::BufferActivityRole, and BufferItem::setActivityLevel().

BufferInfo::Type bufferType ( ) const
inlineinherited
void setBufferName ( const QString &  name)
virtualinherited
virtual bool isActive ( ) const
inlinevirtualinherited

Reimplemented in ChannelBufferItem, and QueryBufferItem.

Definition at line 110 of file networkmodel.h.

References BufferItem::isActive(), and AbstractTreeItem::parent().

Referenced by BufferItem::data(), and BufferItem::isActive().

MsgId lastSeenMsgId ( ) const
inlineinherited
MsgId markerLineMsgId ( ) const
inlineinherited

Definition at line 113 of file networkmodel.h.

References BufferItem::_markerLineMsgId.

Referenced by BufferItem::data().

void setMarkerLineMsgId ( MsgId  msgId)
inherited
BufferInfo::ActivityLevel activityLevel ( ) const
inlineinherited

Definition at line 117 of file networkmodel.h.

References BufferItem::_activity.

Referenced by BufferItem::data(), and BufferItem::updateActivityLevel().

void setActivityLevel ( BufferInfo::ActivityLevel  level)
inherited
const MsgId& firstUnreadMsgId ( ) const
inlineinherited

Definition at line 122 of file networkmodel.h.

References BufferItem::_firstUnreadMsgId.

Referenced by BufferItem::data(), and BufferItem::updateActivityLevel().

virtual void setTopic ( const QString &  )
inlinevirtualslotinherited

Definition at line 128 of file networkmodel.h.

References AbstractTreeItem::dataChanged().

Referenced by ChannelBufferItem::attachIrcChannel().

virtual void setEncrypted ( bool  )
inlinevirtualslotinherited
int columnCount ( ) const
virtualinherited

Implements AbstractTreeItem.

Definition at line 324 of file treemodel.cpp.

References PropertyMapItem::_propertyOrder.

Referenced by PropertyMapItem::data(), and PropertyMapItem::setData().

void appendProperty ( const QString &  property)
inherited

Definition at line 330 of file treemodel.cpp.

References PropertyMapItem::_propertyOrder.

Q_DECLARE_FLAGS ( TreeItemFlags  ,
TreeItemFlag   
)
pure virtualinherited
bool removeChild ( AbstractTreeItem child)
inlineinherited

Definition at line 51 of file treemodel.h.

References AbstractTreeItem::removeChild().

Referenced by AbstractTreeItem::removeChild().

virtual Qt::ItemFlags flags ( ) const
inlinevirtualinherited
virtual void setFlags ( Qt::ItemFlags  flags)
inlinevirtualinherited
AbstractTreeItem::TreeItemFlags treeItemFlags ( ) const
inlineinherited

Definition at line 68 of file treemodel.h.

References AbstractTreeItem::_treeItemFlags.

Referenced by AbstractTreeItem::checkForDeletion().

void setTreeItemFlags ( AbstractTreeItem::TreeItemFlags  flags)
inlineinherited
void beginAppendChilds ( int  firstRow,
int  lastRow 
)
signalinherited
void endAppendChilds ( )
signalinherited
void beginRemoveChilds ( int  firstRow,
int  lastRow 
)
signalinherited
void endRemoveChilds ( )
signalinherited
void customEvent ( QEvent *  event)
protectedinherited

Property Documentation

QString bufferName
readwriteinherited
QString topic
readinherited

Definition at line 92 of file networkmodel.h.

int nickCount
readinherited

Definition at line 93 of file networkmodel.h.


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