akonadi
agentinstancemodel.cpp
152 return QString::fromLatin1("<qt><h4>%1</h4>%2</qt>").arg(instance.name(), instance.type().description());
178 QVariant AgentInstanceModel::headerData(int section, Qt::Orientation orientation, int role) const
The agent instance itself.
Definition: agentinstancemodel.h:64
virtual ~AgentInstanceModel()
Destroys the agent instance model.
Definition: agentinstancemodel.cpp:112
iterator insert(const Key &key, const T &value)
AgentInstance::List instances() const
Returns the list of all available agent instances.
Definition: agentmanager.cpp:396
void setRoleNames(const QHash< int, QByteArray > &roleNames)
A textual presentation of the current status.
Definition: agentinstancemodel.h:67
The current online/offline status.
Definition: agentinstancemodel.h:69
The current status (numerical) of the instance.
Definition: agentinstancemodel.h:66
const QHash< int, QByteArray > & roleNames() const
QString identifier() const
Returns the unique identifier of the agent instance.
Definition: agentinstance.cpp:55
QString identifier() const
Returns the unique identifier of the agent type.
Definition: agenttype.cpp:46
bool isValid() const
The identifier of the agent type.
Definition: agentinstancemodel.h:60
QStringList mimeTypes() const
Returns the list of supported mime types of the agent type.
Definition: agenttype.cpp:71
void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
int progress() const
Returns the progress of the agent instance in percent, or -1 if no progress information are available...
Definition: agentinstance.cpp:90
void setIsOnline(bool online)
Sets online status of the agent instance.
Definition: agentinstance.cpp:100
int row() const
bool isOnline() const
Returns whether the agent instance is online currently.
Definition: agentinstance.cpp:95
QStringList capabilities() const
Returns the list of supported capabilities of the agent type.
Definition: agenttype.cpp:76
Provides a data model for agent instances.
Definition: agentinstancemodel.h:50
A description of the agent type.
Definition: agentinstancemodel.h:61
QModelIndex createIndex(int row, int column, void *ptr) const
A list of supported capabilities.
Definition: agentinstancemodel.h:63
void setValue(const T &value)
The current progress (numerical in percent) of an operation.
Definition: agentinstancemodel.h:68
The identifier of the agent instance.
Definition: agentinstancemodel.h:65
QString name() const
Returns the user visible name of the agent instance.
Definition: agentinstance.cpp:65
bool toBool() const
static AgentManager * self()
Returns the global instance of the agent manager.
Definition: agentmanager.cpp:377
QString fromLatin1(const char *str, int size)
virtual Qt::ItemFlags flags(const QModelIndex &index) const
QString statusMessage() const
Returns a textual presentation of the status of the agent instance.
Definition: agentinstance.cpp:85
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
AgentInstanceModel(QObject *parent=0)
Creates a new agent instance model.
Definition: agentinstancemodel.cpp:85
A list of supported mimetypes.
Definition: agentinstancemodel.h:62
typedef ItemFlags
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:02 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:38:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.