kmail
configureagentlistview.cpp
Go to the documentation of this file.
30 connect(configureListDelegate, SIGNAL(requestConfiguration(QModelIndex)), this, SLOT(slotConfigureAgent(QModelIndex)));
40 connect(configureAgentListModel, SIGNAL(dataChanged(QModelIndex,QModelIndex)), this, SIGNAL(agentChanged()));
67 const QString interfaceName = model->data(index, ConfigureAgentListModel::InterfaceNameRole).toString();
70 QDBusInterface interface( QLatin1String("org.freedesktop.Akonadi.Agent.") + interfaceName, path );
80 void ConfigureAgentListView::changeAgentActiveState(const QString &interfaceName, const QString &path, bool enable)
83 QDBusInterface interface( QLatin1String("org.freedesktop.Akonadi.Agent.") + interfaceName, path );
95 const QString description = model->data(index, ConfigureAgentListModel::DescriptionRole).toString();
106 const QString interfaceName = agentListModel->data(index, ConfigureAgentListModel::InterfaceNameRole).toString();
bool insertRow(int row, const QModelIndex &parent)
void setSortRole(int role)
virtual int rowCount(const QModelIndex &parent) const =0
virtual void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const =0
virtual void setSourceModel(QAbstractItemModel *sourceModel)
virtual void setModel(QAbstractItemModel *model)
~ConfigureAgentListView()
Definition: configureagentlistview.cpp:44
void agentChanged()
virtual void sort(int column, Qt::SortOrder order)
void setAgentItems(const QVector< ConfigureAgentItem > &lst)
Definition: configureagentlistview.cpp:49
Definition: configureagentitem.h:23
void resetToDefault()
Definition: configureagentlistview.cpp:114
bool isEmpty() const
void setItemDelegate(QAbstractItemDelegate *delegate)
void descriptionChanged(const QString &desc)
virtual QVariant data(const QModelIndex &index, int role) const =0
WId winId() const
QString interfaceName() const
Definition: configureagentitem.cpp:63
const QAbstractItemModel * model() const
bool toBool() const
virtual bool setData(const QModelIndex &index, const QVariant &value, int role)
void clicked(const QModelIndex &index)
QAbstractItemModel * model() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QString toString() const
ConfigureAgentListView(QWidget *parent=0)
Definition: configureagentlistview.cpp:26
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:32 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:32 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.