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

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

Collaboration diagram for AliasesModel:

Public Slots

void newAlias ()
void loadDefaults ()
void removeAlias (int index)
void revert ()
void commit ()

Signals

void configChanged (bool)
void modelReady (bool)

Public Member Functions

 AliasesModel (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

Private Slots

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

Private Member Functions

const AliasManageraliasManager () const
AliasManageraliasManager ()
AliasManagercloneAliasManager ()

Private Attributes

ClientAliasManager _clonedAliasManager
bool _configChanged
bool _modelReady

Detailed Description

Definition at line 29 of file aliasesmodel.h.

Constructor & Destructor Documentation

AliasesModel ( QObject *  parent = 0)

Member Function Documentation

QVariant data ( const QModelIndex &  index,
int  role 
) const
virtual

Definition at line 45 of file aliasesmodel.cpp.

References _modelReady, aliasManager(), columnCount(), and rowCount().

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

Definition at line 171 of file aliasesmodel.cpp.

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

Definition at line 182 of file aliasesmodel.cpp.

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

Definition at line 195 of file aliasesmodel.cpp.

References columnCount(), and rowCount().

QModelIndex parent ( const QModelIndex &  ) const
inline

Definition at line 45 of file aliasesmodel.h.

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

Definition at line 81 of file aliasesmodel.h.

References aliasManager(), AliasManager::count(), and isReady().

Referenced by data(), index(), loadDefaults(), newAlias(), removeAlias(), and setData().

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

Definition at line 88 of file aliasesmodel.h.

References isReady().

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

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

Definition at line 51 of file aliasesmodel.h.

References _modelReady.

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

void newAlias ( )
slot
void removeAlias ( int  index)
slot
void revert ( )
slot

Definition at line 234 of file aliasesmodel.cpp.

References _configChanged, and configChanged().

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

void configChanged ( bool  )
signal
void modelReady ( bool  )
signal
const AliasManager & aliasManager ( ) const
private

Definition at line 205 of file aliasesmodel.cpp.

References _clonedAliasManager, and _configChanged.

Referenced by aliasManager(), cloneAliasManager(), commit(), data(), rowCount(), and setData().

AliasManager & aliasManager ( )
private

Definition at line 214 of file aliasesmodel.cpp.

References _clonedAliasManager, _configChanged, and aliasManager().

AliasManager & cloneAliasManager ( )
private
void clientConnected ( )
privateslot

Definition at line 265 of file aliasesmodel.cpp.

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

Referenced by AliasesModel().

void clientDisconnected ( )
privateslot

Definition at line 275 of file aliasesmodel.cpp.

References _clonedAliasManager, _modelReady, and modelReady().

Referenced by AliasesModel().

void initDone ( )
privateslot

Definition at line 256 of file aliasesmodel.cpp.

References _modelReady, and modelReady().

Referenced by clientConnected().

Member Data Documentation

ClientAliasManager _clonedAliasManager
private

Definition at line 65 of file aliasesmodel.h.

Referenced by aliasManager(), clientDisconnected(), cloneAliasManager(), and commit().

bool _configChanged
private

Definition at line 66 of file aliasesmodel.h.

Referenced by aliasManager(), cloneAliasManager(), commit(), configChanged(), and revert().

bool _modelReady
private

Definition at line 67 of file aliasesmodel.h.

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


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