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

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

Inheritance diagram for UserCategoryItem:
Collaboration diagram for UserCategoryItem:

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

 UserCategoryItem (int category, AbstractTreeItem *parent)
QString categoryName () const
int categoryId () const
virtual QVariant data (int column, int role) const
IrcUserItemfindIrcUser (IrcUser *ircUser)
void addUsers (const QList< IrcUser * > &ircUser)
bool removeUser (IrcUser *ircUser)
virtual bool setData (int column, const QVariant &value, int role)
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 ()

Static Public Member Functions

static int categoryFromModes (const QString &modes)

Protected Member Functions

void customEvent (QEvent *event)

Properties

QString categoryName

Private Attributes

int _category

Static Private Attributes

static const QList< QChar > categories = QList<QChar>() << 'q' << 'a' << 'o' << 'h' << 'v'

Detailed Description

Definition at line 226 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

QString categoryName ( ) const
int categoryId ( ) const
inline

Definition at line 235 of file networkmodel.h.

References _category.

Referenced by ChannelBufferItem::findCategoryItem().

void addUsers ( const QList< IrcUser * > &  ircUser)
bool removeUser ( IrcUser ircUser)
int categoryFromModes ( const QString &  modes)
static
bool setData ( int  column,
const QVariant &  value,
int  role 
)
virtualinherited
virtual QString toolTip ( int  column) const
inlinevirtualinherited

Reimplemented in IrcUserItem, ChannelBufferItem, QueryBufferItem, StatusBufferItem, BufferItem, and NetworkItem.

Definition at line 137 of file treemodel.h.

Referenced by PropertyMapItem::data().

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 newChilds ( const QList< AbstractTreeItem * > &  items)
inherited
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

int _category
private

Definition at line 245 of file networkmodel.h.

Referenced by categoryId(), and data().

const QList< QChar > categories = QList<QChar>() << 'q' << 'a' << 'o' << 'h' << 'v'
staticprivate

Definition at line 247 of file networkmodel.h.

Referenced by categoryFromModes().

Property Documentation

QString categoryName
read

Definition at line 229 of file networkmodel.h.


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