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

#include </tmp/quassel/src/qtui/settingspages/ignorelistmodel.h>

Collaboration diagram for IgnoreListModel:

Public Slots

void loadDefaults ()
void removeIgnoreRule (int index)
void revert ()
void commit ()

Signals

void configChanged (bool)
void modelReady (bool)

Public Member Functions

 IgnoreListModel (QObject *parent=0)
virtual QVariant data (const QModelIndex &index, int role) const
virtual bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
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
bool configChanged () const
bool isReady () const
const
IgnoreListManager::IgnoreListItem
ignoreListItemAt (int row) const
void setIgnoreListItemAt (int row, const IgnoreListManager::IgnoreListItem &item)
bool newIgnoreRule (const IgnoreListManager::IgnoreListItem &item)
const QModelIndex indexOf (const QString &rule)

Private Slots

void clientConnected ()
void clientDisconnected ()
void initDone ()

Private Member Functions

const IgnoreListManagerignoreListManager () const
IgnoreListManagerignoreListManager ()
IgnoreListManagercloneIgnoreListManager ()

Private Attributes

ClientIgnoreListManager _clonedIgnoreListManager
bool _configChanged
bool _modelReady

Detailed Description

Definition at line 29 of file ignorelistmodel.h.

Constructor & Destructor Documentation

IgnoreListModel ( QObject *  parent = 0)

Member Function Documentation

QVariant data ( const QModelIndex &  index,
int  role 
) const
virtual
bool setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)
virtual
Qt::ItemFlags flags ( const QModelIndex &  index) const
virtual

Definition at line 194 of file ignorelistmodel.cpp.

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

Definition at line 205 of file ignorelistmodel.cpp.

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

Definition at line 219 of file ignorelistmodel.cpp.

References columnCount(), and rowCount().

QModelIndex parent ( const QModelIndex &  ) const
inline

Definition at line 45 of file ignorelistmodel.h.

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

Definition at line 92 of file ignorelistmodel.h.

References isReady().

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

bool configChanged ( ) const
inline
bool isReady ( ) const
inline

Definition at line 51 of file ignorelistmodel.h.

References _modelReady.

Referenced by columnCount(), IgnoreListSettingsPage::IgnoreListSettingsPage(), and rowCount().

const IgnoreListManager::IgnoreListItem & ignoreListItemAt ( int  row) const

Definition at line 310 of file ignorelistmodel.cpp.

References ignoreListManager().

Referenced by IgnoreListSettingsPage::editSelectedIgnoreRule().

void setIgnoreListItemAt ( int  row,
const IgnoreListManager::IgnoreListItem item 
)
const QModelIndex indexOf ( const QString &  rule)

Definition at line 324 of file ignorelistmodel.cpp.

References ignoreListManager().

Referenced by IgnoreListSettingsPage::editIgnoreRule().

void loadDefaults ( )
slot

Definition at line 159 of file ignorelistmodel.cpp.

Referenced by IgnoreListSettingsPage::defaults().

void removeIgnoreRule ( int  index)
slot
void revert ( )
slot

Definition at line 258 of file ignorelistmodel.cpp.

References _configChanged, and configChanged().

Referenced by clientConnected(), commit(), and IgnoreListSettingsPage::load().

void configChanged ( bool  )
signal
void modelReady ( bool  )
signal
const IgnoreListManager & ignoreListManager ( ) const
private
IgnoreListManager & ignoreListManager ( )
private
IgnoreListManager & cloneIgnoreListManager ( )
private
void clientConnected ( )
privateslot

Definition at line 289 of file ignorelistmodel.cpp.

References Client::ignoreListManager(), initDone(), and revert().

Referenced by IgnoreListModel().

void clientDisconnected ( )
privateslot

Definition at line 299 of file ignorelistmodel.cpp.

References _clonedIgnoreListManager, _modelReady, and modelReady().

Referenced by IgnoreListModel().

void initDone ( )
privateslot

Definition at line 280 of file ignorelistmodel.cpp.

References _modelReady, and modelReady().

Referenced by clientConnected().

Member Data Documentation

ClientIgnoreListManager _clonedIgnoreListManager
private
bool _configChanged
private
bool _modelReady
private

Definition at line 71 of file ignorelistmodel.h.

Referenced by clientDisconnected(), data(), initDone(), isReady(), and setData().


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