akonadi
20 #include "agentinstance.h"
21 #include "agentinstance_p.h"
23 #include "agentmanager.h"
24 #include "agentmanager_p.h"
28 using namespace Akonadi;
46 return !d->mIdentifier.isEmpty();
57 return d->mIdentifier;
72 switch ( d->mStatus ) {
85 return d->mStatusMessage;
120 if (
this != &other )
128 return (d->mIdentifier == other.d->mIdentifier);
133 QDBusInterface iface( QString::fromLatin1(
"org.freedesktop.Akonadi.Agent.%1" ).arg(
identifier() ),
134 QString::fromLatin1(
"/" ),
135 QString::fromLatin1(
"org.freedesktop.Akonadi.Agent.Control" ) );
136 if ( iface.isValid() ) {
137 QDBusReply<void> reply = iface.call( QString::fromLatin1(
"abort" ) );
138 if ( !reply.isValid() ) {
139 kWarning() <<
"Failed to place D-Bus call.";
142 kWarning() <<
"Unable to obtain agent interface";
148 QDBusInterface iface( QString::fromLatin1(
"org.freedesktop.Akonadi.Agent.%1" ).arg(
identifier() ),
149 QString::fromLatin1(
"/" ),
150 QString::fromLatin1(
"org.freedesktop.Akonadi.Agent.Control" ) );
151 if ( iface.isValid() ) {
152 QDBusReply<void> reply = iface.call( QString::fromLatin1(
"reconfigure" ) );
153 if ( !reply.isValid() ) {
154 kWarning() <<
"Failed to place D-Bus call.";
157 kWarning() <<
"Unable to obtain agent interface";
163 QDBusInterface iface( QString::fromLatin1(
"org.freedesktop.Akonadi.Control" ),
164 QString::fromLatin1(
"/AgentManager" ),
165 QString::fromLatin1(
"org.freedesktop.Akonadi.AgentManager" ) );
166 if ( iface.isValid() ) {
167 QDBusReply<void> reply = iface.call( QString::fromLatin1(
"restartAgentInstance" ), identifier() );
168 if ( !reply.isValid() ) {
169 kWarning() <<
"Failed to place D-Bus call.";
172 kWarning() <<
"Unable to obtain control interface" << iface.lastError().message();
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Sep 24 2012 09:06:24 by
doxygen 1.8.1.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.