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

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

Public Slots

void setChannelList (const QList< IrcListHelper::ChannelDescription > &channelList=QList< IrcListHelper::ChannelDescription >())

Public Member Functions

 IrcListModel (QObject *parent=0)
virtual QVariant data (const QModelIndex &index, int role) const
virtual Qt::ItemFlags flags (const QModelIndex &index) const
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const
QModelIndex parent (const QModelIndex &) const
int rowCount (const QModelIndex &parent=QModelIndex()) const
int columnCount (const QModelIndex &parent=QModelIndex()) const

Private Attributes

< IrcListHelper::ChannelDescription

Detailed Description

Definition at line 28 of file irclistmodel.h.

Constructor & Destructor Documentation

IrcListModel ( QObject *  parent = 0)

Definition at line 25 of file irclistmodel.cpp.

Member Function Documentation

QVariant data ( const QModelIndex &  index,
int  role 
) const
Qt::ItemFlags flags ( const QModelIndex &  index) const

Definition at line 51 of file irclistmodel.cpp.

QVariant headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const

Definition at line 62 of file irclistmodel.cpp.

QModelIndex index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const

Definition at line 76 of file irclistmodel.cpp.

References columnCount(), and rowCount().

QModelIndex parent ( const QModelIndex &  ) const

Definition at line 42 of file irclistmodel.h.

Referenced by columnCount(), and rowCount().

int rowCount ( const QModelIndex &  parent = QModelIndex()) const

Definition at line 44 of file irclistmodel.h.

References _channelList, and parent().

Referenced by data(), index(), and setChannelList().

int columnCount ( const QModelIndex &  parent = QModelIndex()) const

Definition at line 45 of file irclistmodel.h.

References parent().

Referenced by data(), and index().

void setChannelList ( const QList< IrcListHelper::ChannelDescription > &  channelList = QList<IrcListHelper::ChannelDescription>())

Definition at line 86 of file irclistmodel.cpp.

References _channelList, and rowCount().

Referenced by ChannelListDlg::receiveChannelList(), and ChannelListDlg::setNetwork().

Member Data Documentation

QList<IrcListHelper::ChannelDescription> _channelList

Definition at line 51 of file irclistmodel.h.

Referenced by data(), rowCount(), and setChannelList().

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