akonadi
20 #include "agentinstance.h"
21 #include "agentinstance_p.h"
23 #include "agentmanager.h"
24 #include "agentmanager_p.h"
25 #include "servermanager.h"
29 using namespace Akonadi;
47 return !d->mIdentifier.isEmpty();
58 return d->mIdentifier;
73 switch ( d->mStatus ) {
88 return d->mStatusMessage;
123 if (
this != &other ) {
132 return ( d->mIdentifier == other.d->mIdentifier );
138 QString::fromLatin1(
"/" ),
139 QString::fromLatin1(
"org.freedesktop.Akonadi.Agent.Control" ) );
140 if ( iface.isValid() ) {
141 QDBusReply<void> reply = iface.call( QString::fromLatin1(
"abort" ) );
142 if ( !reply.isValid() ) {
143 kWarning() <<
"Failed to place D-Bus call.";
146 kWarning() <<
"Unable to obtain agent interface";
153 QString::fromLatin1(
"/" ),
154 QString::fromLatin1(
"org.freedesktop.Akonadi.Agent.Control" ) );
155 if ( iface.isValid() ) {
156 QDBusReply<void> reply = iface.call( QString::fromLatin1(
"reconfigure" ) );
157 if ( !reply.isValid() ) {
158 kWarning() <<
"Failed to place D-Bus call.";
161 kWarning() <<
"Unable to obtain agent interface";
168 QString::fromLatin1(
"/AgentManager" ),
169 QString::fromLatin1(
"org.freedesktop.Akonadi.AgentManager" ) );
170 if ( iface.isValid() ) {
171 QDBusReply<void> reply = iface.call( QString::fromLatin1(
"restartAgentInstance" ), identifier() );
172 if ( !reply.isValid() ) {
173 kWarning() <<
"Failed to place D-Bus call.";
176 kWarning() <<
"Unable to obtain control interface" << iface.lastError().message();
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:27:31 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.