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

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

Inheritance diagram for IrcUserItem:
Collaboration diagram for IrcUserItem:

Public Types

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

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

 IrcUserItem (IrcUser *ircUser, AbstractTreeItem *parent)
QString nickName () const
bool isActive () const
IrcUserircUser ()
virtual QVariant data (int column, int role) const
virtual QString toolTip (int column) const
virtual bool setData (int column, const QVariant &value, int role)
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 nickName

Private Slots

void ircUserQuited ()

Private Attributes

QPointer< IrcUser_ircUser

Detailed Description

Definition at line 254 of file networkmodel.h.

Member Enumeration Documentation

enum TreeItemFlag
inherited
Enumerator:
NoTreeItemFlag 
DeleteOnLastChildRemoved 

Definition at line 39 of file treemodel.h.

Constructor & Destructor Documentation

IrcUserItem ( IrcUser ircUser,
AbstractTreeItem parent 
)

Definition at line 911 of file networkmodel.cpp.

References AbstractTreeItem::dataChanged(), ircUserQuited(), and IrcUser::nick.

Member Function Documentation

QString nickName ( ) const
inline

Definition at line 262 of file networkmodel.h.

References _ircUser.

Referenced by toolTip().

bool isActive ( ) const
inline

Definition at line 263 of file networkmodel.h.

References _ircUser.

Referenced by data().

IrcUser* ircUser ( )
inline

Definition at line 265 of file networkmodel.h.

References _ircUser.

Referenced by UserCategoryItem::findIrcUser().

QString toolTip ( int  column) const
virtual

Reimplemented from PropertyMapItem.

Definition at line 947 of file networkmodel.cpp.

References _ircUser, nickName(), and secondsToString().

void ircUserQuited ( )
inlineprivateslot

Definition at line 270 of file networkmodel.h.

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

Referenced by IrcUserItem().

bool setData ( int  column,
const QVariant &  value,
int  role 
)
virtualinherited
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

QPointer<IrcUser> _ircUser
private

Definition at line 273 of file networkmodel.h.

Referenced by data(), ircUser(), isActive(), nickName(), and toolTip().

Property Documentation

QString nickName
read

Definition at line 257 of file networkmodel.h.


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