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

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

Inheritance diagram for QueryBufferItem:
Collaboration diagram for QueryBufferItem:

Public Types

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

Public Slots

void setIrcUser (IrcUser *ircUser)
void removeIrcUser ()
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

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

Private Attributes

IrcUser_ircUser

Detailed Description

Definition at line 158 of file networkmodel.h.

Member Enumeration Documentation

enum TreeItemFlag
inherited
Enumerator:
NoTreeItemFlag 
DeleteOnLastChildRemoved 

Definition at line 39 of file treemodel.h.

Constructor & Destructor Documentation

Member Function Documentation

QVariant data ( int  column,
int  role 
) const
virtual

Reimplemented from BufferItem.

Definition at line 442 of file networkmodel.cpp.

References _ircUser, NetworkModel::IrcUserRole, IrcUser::isAway(), and NetworkModel::UserAwayRole.

Referenced by setBufferName().

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

Reimplemented from BufferItem.

Definition at line 457 of file networkmodel.cpp.

References BufferItem::bufferId(), and Client::renameBuffer().

virtual bool isActive ( ) const
inlinevirtual

Reimplemented from BufferItem.

Definition at line 168 of file networkmodel.h.

References _ircUser.

void setBufferName ( const QString &  name)
virtual

Reimplemented from BufferItem.

Definition at line 481 of file networkmodel.cpp.

References data(), NetworkEvent::network(), NetworkModel::NetworkIdRole, and setIrcUser().

void setIrcUser ( IrcUser ircUser)
slot
void removeIrcUser ( )
slot

Definition at line 549 of file networkmodel.cpp.

References _ircUser, and AbstractTreeItem::dataChanged().

Referenced by setIrcUser().

virtual QString bufferName ( ) const
inlinevirtualinherited
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().

BufferInfo::Type bufferType ( ) const
inlineinherited
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

Definition at line 129 of file networkmodel.h.

References AbstractTreeItem::dataChanged().

Referenced by ChannelBufferItem::attachIrcChannel(), and 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

IrcUser* _ircUser
private

Definition at line 178 of file networkmodel.h.

Referenced by data(), isActive(), removeIrcUser(), setIrcUser(), and toolTip().

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: