Nepomuk-Core
Go to the documentation of this file.
22 #ifndef KTP_ACCOUNTS_LIST_MODEL_H
23 #define KTP_ACCOUNTS_LIST_MODEL_H
25 #include <QtCore/QAbstractListModel>
27 #include <TelepathyQt/Account>
43 ConnectionStateRole = Qt::UserRole,
44 ConnectionStateDisplayRole = Qt::UserRole+1,
55 void setAccountSet(
const Tp::AccountSetPtr &accountSet);
57 virtual int rowCount(
const QModelIndex & parent = QModelIndex())
const;
58 virtual int columnCount(
const QModelIndex &parent = QModelIndex())
const;
59 virtual QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const;
60 virtual bool setData(
const QModelIndex &index,
const QVariant &value,
int role);
61 virtual QModelIndex index(
int row,
int column,
const QModelIndex &parent = QModelIndex())
const;
64 void onAccountAdded(
const Tp::AccountPtr &account);
65 void onAccountRemoved(
const Tp::AccountPtr &account);
66 void onAccountUpdated();
72 const QString connectionStateString(
const Tp::AccountPtr &account)
const;
73 const KIcon connectionStateIcon(
const Tp::AccountPtr &account)
const;
74 const QString connectionStatusReason(
const Tp::AccountPtr &account)
const;
81 #endif // header guard
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Fri Mar 22 2013 10:58:52 by
doxygen 1.8.1.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.