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

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

Inheritance diagram for NetworkItem:
Collaboration diagram for NetworkItem:

Public Types

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

Public Slots

void setNetworkName (const QString &networkName)
void setCurrentServer (const QString &serverName)
void attachNetwork (Network *network)
void attachIrcChannel (IrcChannel *channel)
void attachIrcUser (IrcUser *ircUser)

Signals

void networkDataChanged (int column=-1)
void dataChanged (int column=-1)
void beginAppendChilds (int firstRow, int lastRow)
void endAppendChilds ()
void beginRemoveChilds (int firstRow, int lastRow)
void endRemoveChilds ()

Public Member Functions

 NetworkItem (const NetworkId &netid, AbstractTreeItem *parent=0)
virtual QVariant data (int column, int row) const
bool isActive () const
const NetworkIdnetworkId () const
QString networkName () const
QString currentServer () const
int nickCount () const
virtual QString toolTip (int column) const
BufferItemfindBufferItem (BufferId bufferId)
BufferItemfindBufferItem (const BufferInfo &bufferInfo)
BufferItembufferItem (const BufferInfo &bufferInfo)
StatusBufferItemstatusBufferItem () 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 networkName
QString currentServer
int nickCount

Private Slots

void onBeginRemoveChilds (int start, int end)
void onNetworkDestroyed ()

Private Attributes

NetworkId _networkId
StatusBufferItem_statusBufferItem
QPointer< Network_network

Detailed Description

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

bool isActive ( ) const
inline

Definition at line 48 of file networkmodel.h.

References _network.

Referenced by data().

const NetworkId& networkId ( ) const
inline

Definition at line 50 of file networkmodel.h.

References _networkId.

Referenced by NetworkModel::networkId(), and NetworkModel::networkRow().

QString networkName ( ) const
inline

Definition at line 51 of file networkmodel.h.

References _network.

Referenced by toolTip().

QString currentServer ( ) const
inline

Definition at line 52 of file networkmodel.h.

References _network.

Referenced by toolTip().

int nickCount ( ) const
inline

Definition at line 53 of file networkmodel.h.

References _network.

Referenced by toolTip().

QString toolTip ( int  column) const
virtual

Reimplemented from PropertyMapItem.

Definition at line 210 of file networkmodel.cpp.

References _network, currentServer(), networkName(), and nickCount().

Referenced by StatusBufferItem::toolTip().

BufferItem * findBufferItem ( BufferId  bufferId)
BufferItem* findBufferItem ( const BufferInfo bufferInfo)
inline

Definition at line 58 of file networkmodel.h.

References BufferInfo::bufferId(), and findBufferItem().

Referenced by findBufferItem().

StatusBufferItem* statusBufferItem ( ) const
inline

Definition at line 60 of file networkmodel.h.

References _statusBufferItem.

Referenced by onBeginRemoveChilds(), and NetworkModel::updateBufferActivity().

void setNetworkName ( const QString &  networkName)
slot

Definition at line 196 of file networkmodel.cpp.

References networkDataChanged().

Referenced by attachNetwork().

void setCurrentServer ( const QString &  serverName)
slot

Definition at line 203 of file networkmodel.cpp.

References networkDataChanged().

Referenced by attachNetwork().

void attachIrcUser ( IrcUser ircUser)
slot
void networkDataChanged ( int  column = -1)
signal
void onBeginRemoveChilds ( int  start,
int  end 
)
privateslot

Definition at line 231 of file networkmodel.cpp.

References _statusBufferItem, AbstractTreeItem::child(), and statusBufferItem().

Referenced by NetworkItem().

void onNetworkDestroyed ( )
privateslot

Definition at line 243 of file networkmodel.cpp.

References _network, networkDataChanged(), and AbstractTreeItem::removeAllChilds().

Referenced by attachNetwork().

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

NetworkId _networkId
private

Definition at line 78 of file networkmodel.h.

Referenced by data(), and networkId().

StatusBufferItem* _statusBufferItem
private

Definition at line 79 of file networkmodel.h.

Referenced by bufferItem(), data(), onBeginRemoveChilds(), and statusBufferItem().

QPointer<Network> _network
private

Property Documentation

QString networkName
read

Definition at line 39 of file networkmodel.h.

Referenced by NetworkModel::networkName().

QString currentServer
read

Definition at line 40 of file networkmodel.h.

int nickCount
read

Definition at line 41 of file networkmodel.h.


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