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

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

Inheritance diagram for ChannelBufferItem:
Collaboration diagram for ChannelBufferItem:

Public Types

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

Public Slots

void join (const QList< IrcUser * > &ircUsers)
void part (IrcUser *ircUser)
UserCategoryItemfindCategoryItem (int categoryId)
void addUserToCategory (IrcUser *ircUser)
void addUsersToCategory (const QList< IrcUser * > &ircUser)
void removeUserFromCategory (IrcUser *ircUser)
void userModeChanged (IrcUser *ircUser)
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

 ChannelBufferItem (const BufferInfo &bufferInfo, AbstractTreeItem *parent)
virtual QVariant data (int column, int role) const
virtual bool isActive () const
virtual QString toolTip (int column) const
virtual QString topic () const
virtual int nickCount () const
void attachIrcChannel (IrcChannel *ircChannel)
virtual QString bufferName () const
const BufferInfobufferInfo () const
virtual bool setData (int column, const QVariant &value, int role)
BufferId bufferId () const
BufferInfo::Type bufferType () const
virtual void setBufferName (const QString &name)
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

Private Slots

void ircChannelParted ()
void ircChannelDestroyed ()

Private Attributes

IrcChannel_ircChannel

Detailed Description

Definition at line 187 of file networkmodel.h.

Member Enumeration Documentation

enum TreeItemFlag
inherited
Enumerator:
NoTreeItemFlag 
DeleteOnLastChildRemoved 

Definition at line 39 of file treemodel.h.

Constructor & Destructor Documentation

ChannelBufferItem ( const BufferInfo bufferInfo,
AbstractTreeItem parent 
)

Definition at line 559 of file networkmodel.cpp.

Member Function Documentation

QVariant data ( int  column,
int  role 
) const
virtual

Reimplemented from BufferItem.

Definition at line 566 of file networkmodel.cpp.

References _ircChannel, and NetworkModel::IrcChannelRole.

virtual bool isActive ( ) const
inlinevirtual

Reimplemented from BufferItem.

Definition at line 195 of file networkmodel.h.

References _ircChannel.

Referenced by toolTip().

QString toolTip ( int  column) const
virtual
virtual QString topic ( ) const
inlinevirtual

Reimplemented from BufferItem.

Definition at line 198 of file networkmodel.h.

References _ircChannel, and IrcChannel::topic.

Referenced by toolTip().

virtual int nickCount ( ) const
inlinevirtual

Reimplemented from BufferItem.

Definition at line 199 of file networkmodel.h.

References _ircChannel, and IrcChannel::ircUsers().

Referenced by toolTip().

void join ( const QList< IrcUser * > &  ircUsers)
slot

Definition at line 675 of file networkmodel.cpp.

References addUsersToCategory(), and AbstractTreeItem::dataChanged().

Referenced by attachIrcChannel().

void part ( IrcUser ircUser)
slot
UserCategoryItem * findCategoryItem ( int  categoryId)
slot
void addUserToCategory ( IrcUser ircUser)
slot

Definition at line 697 of file networkmodel.cpp.

References addUsersToCategory().

void addUsersToCategory ( const QList< IrcUser * > &  ircUser)
slot
void removeUserFromCategory ( IrcUser ircUser)
slot
void ircChannelParted ( )
privateslot
void ircChannelDestroyed ( )
privateslot
virtual QString bufferName ( ) const
inlinevirtualinherited

Reimplemented in StatusBufferItem.

Definition at line 106 of file networkmodel.h.

References BufferItem::_bufferInfo, and BufferInfo::bufferName().

Referenced by part(), BufferItem::toolTip(), QueryBufferItem::toolTip(), and toolTip().

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
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 attachIrcChannel().

virtual void setEncrypted ( bool  )
inlinevirtualslotinherited

Definition at line 129 of file networkmodel.h.

References AbstractTreeItem::dataChanged().

Referenced by attachIrcChannel(), and QueryBufferItem::setIrcUser().

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

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: