Akonadi
core/agentmanager.cpp
110 void AgentManagerPrivate::agentInstanceStatusChanged(const QString &identifier, int status, const QString &msg)
123 void AgentManagerPrivate::agentInstanceProgressChanged(const QString &identifier, uint progress, const QString &msg)
169 void AgentManagerPrivate::agentInstanceNameChanged(const QString &identifier, const QString &name)
290 Q_ASSERT_X(mTypes.contains(agentTypeIdentifier), "fillAgentInstanceLight", "Requests non-existing agent type");
304 mManager = std::make_unique<AgentManagerIface>(ServerManager::serviceName(ServerManager::Control),
309 connect(mManager.get(), &AgentManagerIface::agentTypeAdded, this, &AgentManagerPrivate::agentTypeAdded);
310 connect(mManager.get(), &AgentManagerIface::agentTypeRemoved, this, &AgentManagerPrivate::agentTypeRemoved);
311 connect(mManager.get(), &AgentManagerIface::agentInstanceAdded, this, &AgentManagerPrivate::agentInstanceAdded);
312 connect(mManager.get(), &AgentManagerIface::agentInstanceRemoved, this, &AgentManagerPrivate::agentInstanceRemoved);
313 connect(mManager.get(), &AgentManagerIface::agentInstanceStatusChanged, this, &AgentManagerPrivate::agentInstanceStatusChanged);
314 connect(mManager.get(), &AgentManagerIface::agentInstanceProgressChanged, this, &AgentManagerPrivate::agentInstanceProgressChanged);
315 connect(mManager.get(), &AgentManagerIface::agentInstanceNameChanged, this, &AgentManagerPrivate::agentInstanceNameChanged);
316 connect(mManager.get(), &AgentManagerIface::agentInstanceWarning, this, &AgentManagerPrivate::agentInstanceWarning);
317 connect(mManager.get(), &AgentManagerIface::agentInstanceError, this, &AgentManagerPrivate::agentInstanceError);
318 connect(mManager.get(), &AgentManagerIface::agentInstanceOnlineChanged, this, &AgentManagerPrivate::agentInstanceOnlineChanged);
QString identifier() const
Returns the unique identifier of the agent instance.
Definition: core/agentinstance.cpp:42
QWidget * window() const const
void synchronizeCollection(const Collection &collection)
Trigger a synchronization of the given collection by its owning resource agent.
Definition: core/agentmanager.cpp:395
static QString serviceName(ServiceType serviceType)
Returns the namespaced D-Bus service name for serviceType.
Definition: servermanager.cpp:327
AgentManager(bool verbose, QObject *parent=nullptr)
Creates a new agent manager.
Definition: akonadicontrol/agentmanager.cpp:86
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QStringList types(Mode mode=Writing)
AgentInstance instance(const QString &identifier) const
Returns the agent instance with the given identifier or an invalid agent instance if the identifier d...
Definition: core/agentmanager.cpp:385
void removeInstance(const AgentInstance &instance)
Removes the given agent instance.
Definition: core/agentmanager.cpp:390
Provides an interface to retrieve agent types and manage agent instances.
Definition: core/agentmanager.h:43
QDBusConnection sessionBus()
bool isEmpty() const const
Q_SCRIPTABLE CaptureState status()
void serviceRegistered(const QString &serviceName)
AgentType type(const QString &identifier) const
Returns the agent type with the given identifier or an invalid agent type if the identifier does not ...
Definition: core/agentmanager.cpp:375
VehicleSection::Type type(QStringView coachNumber, QStringView coachClassification)
QString name(StandardShortcut id)
WId winId() const const
AgentInstance::List instances() const
Returns the list of all available agent instances.
Definition: core/agentmanager.cpp:380
bool isValid() const
Returns whether the agent instance object is valid.
Definition: core/agentinstance.cpp:32
T value(int i) const const
WatchForRegistration
AgentType::List types() const
Returns the list of all available agent types.
Definition: core/agentmanager.cpp:364
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Nov 28 2023 03:52:30 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Nov 28 2023 03:52:30 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.