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

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

Inheritance diagram for BufferItem:
Collaboration diagram for BufferItem:

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

 BufferItem (const BufferInfo &bufferInfo, AbstractTreeItem *parent=0)
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 QString bufferName () const
virtual QString topic () const
virtual int nickCount () const
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 QString toolTip (int column) 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

Private Attributes

BufferInfo _bufferInfo
BufferInfo::ActivityLevel _activity
MsgId _lastSeenMsgId
MsgId _markerLineMsgId
MsgId _firstUnreadMsgId

Detailed Description

Definition at line 88 of file networkmodel.h.

Member Enumeration Documentation

enum TreeItemFlag
inherited
Enumerator:
NoTreeItemFlag 
DeleteOnLastChildRemoved 

Definition at line 39 of file treemodel.h.

Constructor & Destructor Documentation

BufferItem ( const BufferInfo bufferInfo,
AbstractTreeItem parent = 0 
)

Definition at line 254 of file networkmodel.cpp.

References AbstractTreeItem::setFlags().

Member Function Documentation

const BufferInfo& bufferInfo ( ) const
inline

Definition at line 98 of file networkmodel.h.

References _bufferInfo.

Referenced by data(), and toolTip().

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

Reimplemented from PropertyMapItem.

Reimplemented in QueryBufferItem.

Definition at line 351 of file networkmodel.cpp.

References NetworkModel::BufferActivityRole, and setActivityLevel().

BufferInfo::Type bufferType ( ) const
inline

Definition at line 103 of file networkmodel.h.

References _bufferInfo, and BufferInfo::type().

Referenced by NetworkModel::bufferItemLessThan(), and data().

void setBufferName ( const QString &  name)
virtual
virtual QString bufferName ( ) const
inlinevirtual
virtual QString topic ( ) const
inlinevirtual

Reimplemented in ChannelBufferItem.

Definition at line 107 of file networkmodel.h.

virtual int nickCount ( ) const
inlinevirtual

Reimplemented in ChannelBufferItem.

Definition at line 108 of file networkmodel.h.

virtual bool isActive ( ) const
inlinevirtual

Reimplemented in ChannelBufferItem, and QueryBufferItem.

Definition at line 110 of file networkmodel.h.

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

Referenced by data(), and isActive().

MsgId lastSeenMsgId ( ) const
inline

Definition at line 112 of file networkmodel.h.

References _lastSeenMsgId.

Referenced by NetworkModel::lastSeenMsgId(), and updateActivityLevel().

MsgId markerLineMsgId ( ) const
inline

Definition at line 113 of file networkmodel.h.

References _markerLineMsgId.

Referenced by data().

void setMarkerLineMsgId ( MsgId  msgId)
BufferInfo::ActivityLevel activityLevel ( ) const
inline

Definition at line 117 of file networkmodel.h.

References _activity.

Referenced by data(), and updateActivityLevel().

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

Definition at line 122 of file networkmodel.h.

References _firstUnreadMsgId.

Referenced by data(), and updateActivityLevel().

QString toolTip ( int  column) const
virtual

Reimplemented from PropertyMapItem.

Reimplemented in ChannelBufferItem, QueryBufferItem, and StatusBufferItem.

Definition at line 398 of file networkmodel.cpp.

References bufferId(), bufferInfo(), bufferName(), and toInt().

virtual void setTopic ( const QString &  )
inlinevirtualslot

Definition at line 128 of file networkmodel.h.

References AbstractTreeItem::dataChanged().

Referenced by ChannelBufferItem::attachIrcChannel().

virtual void setEncrypted ( bool  )
inlinevirtualslot
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

Member Data Documentation

BufferInfo _bufferInfo
private
BufferInfo::ActivityLevel _activity
private
MsgId _lastSeenMsgId
private

Definition at line 134 of file networkmodel.h.

Referenced by clearActivityLevel(), lastSeenMsgId(), and setLastSeenMsgId().

MsgId _markerLineMsgId
private
MsgId _firstUnreadMsgId
private

Definition at line 136 of file networkmodel.h.

Referenced by clearActivityLevel(), firstUnreadMsgId(), and updateActivityLevel().

Property Documentation

QString topic
read

Definition at line 92 of file networkmodel.h.

int nickCount
read

Definition at line 93 of file networkmodel.h.


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