AgentManager
#include <agentmanager.h>
Signals | |
void | agentInstanceAdded (const QString &agentIdentifier) |
void | agentInstanceAdvancedStatusChanged (const QString &agentIdentifier, const QVariantMap &status) |
void | agentInstanceError (const QString &agentIdentifier, const QString &message) |
void | agentInstanceNameChanged (const QString &agentIdentifier, const QString &name) |
void | agentInstanceOnlineChanged (const QString &agentIdentifier, bool state) |
void | agentInstanceProgressChanged (const QString &agentIdentifier, uint progress, const QString &message) |
void | agentInstanceRemoved (const QString &agentIdentifier) |
void | agentInstanceStatusChanged (const QString &agentIdentifier, int status, const QString &message) |
void | agentInstanceWarning (const QString &agentIdentifier, const QString &message) |
void | agentTypeAdded (const QString &agentType) |
void | agentTypeRemoved (const QString &agentType) |
Detailed Description
The agent manager has knowledge about all available agents (it scans for .desktop files in the agent directory) and the available configured instances.
Definition at line 28 of file akonadicontrol/agentmanager.h.
Constructor & Destructor Documentation
◆ AgentManager()
Creates a new agent manager.
- Parameters
-
parent The parent object.
Definition at line 86 of file akonadicontrol/agentmanager.cpp.
◆ ~AgentManager()
|
overridedefault |
Destroys the agent manager.
Definition at line 149 of file akonadicontrol/agentmanager.cpp.
Member Function Documentation
◆ addSearch()
void AgentManager::addSearch | ( | const QString & | query, |
const QString & | queryLanguage, | ||
qint64 | resultCollectionId ) |
Add a persistent search to remote search agents.
Definition at line 886 of file akonadicontrol/agentmanager.cpp.
◆ agentCapabilities()
QStringList AgentManager::agentCapabilities | ( | const QString & | identifier | ) | const |
Returns a list of supported capabilities of the agent type for the given identifier
.
Definition at line 211 of file akonadicontrol/agentmanager.cpp.
◆ agentComment()
Returns the i18n'ed comment of the agent type for the given identifier
.
Definition at line 179 of file akonadicontrol/agentmanager.cpp.
◆ agentCustomProperties()
QVariantMap AgentManager::agentCustomProperties | ( | const QString & | identifier | ) | const |
Returns a list of Custom added properties of the agent type for the given identifier
.
- Since
- 1.11
Definition at line 219 of file akonadicontrol/agentmanager.cpp.
◆ agentIcon()
Returns the icon name of the agent type for the given identifier
.
Definition at line 188 of file akonadicontrol/agentmanager.cpp.
◆ agentInstanceAdded
This signal is emitted whenever a new agent instance was created.
- Parameters
-
agentIdentifier The identifier of the new agent instance.
◆ agentInstanceAdvancedStatusChanged
|
signal |
This signal is emitted whenever the status of an agent instance has changed.
- Parameters
-
agentIdentifier The identifier of the agent that has changed. status The object that describes the status change.
◆ agentInstanceConfigure()
Triggers the agent instance with the given identifier
to show its configuration dialog.
- Parameters
-
windowId Parent window id for the configuration dialog.
Definition at line 374 of file akonadicontrol/agentmanager.cpp.
◆ agentInstanceError
|
signal |
This signal is emitted whenever an agent instance raised an error.
- Parameters
-
agentIdentifier The identifier of the agent instance. message The i18n'ed error message.
◆ agentInstanceName()
Returns the name of the agent instance with the given identifier
.
Definition at line 411 of file akonadicontrol/agentmanager.cpp.
◆ agentInstanceNameChanged
|
signal |
This signal is emitted whenever the name of the agent instance has changed.
- Parameters
-
agentIdentifier The identifier of the agent that has changed. name The new name of the agent instance.
◆ agentInstanceOnline()
Returns if the agent instance identifier
is in online mode.
Definition at line 383 of file akonadicontrol/agentmanager.cpp.
◆ agentInstanceOnlineChanged
|
signal |
Emitted when the online state of an agent changed.
◆ agentInstanceProgress()
Returns the current progress of the agent with the given identifier
in percentage.
Definition at line 358 of file akonadicontrol/agentmanager.cpp.
◆ agentInstanceProgressChanged
|
signal |
This signal is emitted whenever the progress of an agent instance has changed.
- Parameters
-
agentIdentifier The identifier of the agent that has changed. progress The new progress in percentage. message The i18n'ed description of the new progress.
◆ agentInstanceProgressMessage()
Returns the i18n'ed description of the current progress of the agent with the given identifier
.
Definition at line 367 of file akonadicontrol/agentmanager.cpp.
◆ agentInstanceRemoved
This signal is emitted whenever an agent instance was removed.
- Parameters
-
agentIdentifier The identifier of the removed agent instance.
◆ agentInstances()
QStringList AgentManager::agentInstances | ( | ) | const |
Returns the list of identifiers of configured instances.
Definition at line 335 of file akonadicontrol/agentmanager.cpp.
◆ agentInstanceStatus()
Returns the current status code of the agent with the given identifier
.
Definition at line 340 of file akonadicontrol/agentmanager.cpp.
◆ agentInstanceStatusChanged
|
signal |
This signal is emitted whenever the status of an agent instance has changed.
- Parameters
-
agentIdentifier The identifier of the agent that has changed. status The new status code. message The i18n'ed description of the new status.
◆ agentInstanceStatusMessage()
Returns the i18n'ed description of the current status of the agent with the given identifier
.
Definition at line 349 of file akonadicontrol/agentmanager.cpp.
◆ agentInstanceSynchronize()
Triggers the agent instance with the given identifier
to start synchronization.
Definition at line 429 of file akonadicontrol/agentmanager.cpp.
◆ agentInstanceSynchronizeCollection() [1/2]
void AgentManager::agentInstanceSynchronizeCollection | ( | const QString & | identifier, |
qint64 | collection ) |
Trigger a synchronization of the given collection by its owning resource agent.
Definition at line 447 of file akonadicontrol/agentmanager.cpp.
◆ agentInstanceSynchronizeCollection() [2/2]
void AgentManager::agentInstanceSynchronizeCollection | ( | const QString & | identifier, |
qint64 | collection, | ||
bool | recursive ) |
Trigger a synchronization of the given collection by its owning resource agent.
- Parameters
-
recursive set it true to have sub-collection synchronized as well
Definition at line 452 of file akonadicontrol/agentmanager.cpp.
◆ agentInstanceSynchronizeCollectionTree()
Trigger a synchronization of the collection tree by the given resource agent.
- Parameters
-
identifier The resource agent identifier.
Definition at line 438 of file akonadicontrol/agentmanager.cpp.
◆ agentInstanceSynchronizeRelations()
Trigger a synchronization of relations by the given resource agent.
- Parameters
-
identifier The resource agent identifier.
Definition at line 470 of file akonadicontrol/agentmanager.cpp.
◆ agentInstanceSynchronizeTags()
Trigger a synchronization of tags by the given resource agent.
- Parameters
-
identifier The resource agent identifier.
Definition at line 461 of file akonadicontrol/agentmanager.cpp.
◆ agentInstanceType()
Returns the type of the agent instance with the given identifier
.
Definition at line 324 of file akonadicontrol/agentmanager.cpp.
◆ agentInstanceWarning
|
signal |
This signal is emitted whenever an agent instance raised a warning.
- Parameters
-
agentIdentifier The identifier of the agent instance. message The i18n'ed warning message.
◆ agentMimeTypes()
QStringList AgentManager::agentMimeTypes | ( | const QString & | identifier | ) | const |
Returns a list of supported mimetypes of the agent type for the given identifier
.
Definition at line 202 of file akonadicontrol/agentmanager.cpp.
◆ agentName()
Returns the i18n'ed name of the agent type for the given identifier
.
Definition at line 170 of file akonadicontrol/agentmanager.cpp.
◆ agentTypeAdded
This signal is emitted whenever a new agent type was installed on the system.
- Parameters
-
agentType The identifier of the new agent type.
◆ agentTypeRemoved
This signal is emitted whenever an agent type was removed from the system.
- Parameters
-
agentType The identifier of the removed agent type.
◆ agentTypes()
QStringList AgentManager::agentTypes | ( | ) | const |
Returns the list of identifiers of all available agent types.
Definition at line 165 of file akonadicontrol/agentmanager.cpp.
◆ cleanup()
void AgentManager::cleanup | ( | ) |
Called by the crash handler and dtor to terminate the child processes.
Definition at line 154 of file akonadicontrol/agentmanager.cpp.
◆ createAgentInstance()
Creates a new agent of the given agent type identifier
.
- Returns
- The identifier of the new agent if created successfully, an empty string otherwise. The identifier consists of two parts, the type of the agent and an unique instance number, and looks like the following: 'file_1' or 'imap_267'.
Definition at line 243 of file akonadicontrol/agentmanager.cpp.
◆ removeAgentInstance()
Removes the agent with the given identifier
.
Definition at line 282 of file akonadicontrol/agentmanager.cpp.
◆ removeSearch()
void AgentManager::removeSearch | ( | quint64 | resultCollectionId | ) |
Removes a persistent search for the given result collection.
Definition at line 897 of file akonadicontrol/agentmanager.cpp.
◆ restartAgentInstance()
Restarts the agent instance identifier
.
This is supposed to be used as a development aid and not something to use during normal operations.
Definition at line 479 of file akonadicontrol/agentmanager.cpp.
◆ setAgentInstanceName()
Sets the name
of the agent instance with the given identifier
.
Definition at line 402 of file akonadicontrol/agentmanager.cpp.
◆ setAgentInstanceOnline()
Sets agent instance identifier
to online or offline mode.
Definition at line 392 of file akonadicontrol/agentmanager.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:13:38 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.