~ubuntu-branches/ubuntu/quantal/akonadi/quantal

« back to all changes in this revision

Viewing changes to server/src/search/agentsearchengine.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-01-24 23:43:13 UTC
  • mto: (3.1.12 sid)
  • mto: This revision was merged to the branch mainline in revision 69.
  • Revision ID: package-import@ubuntu.com-20120124234313-ooald4uh9w8jilyw
Tags: upstream-1.7.0
ImportĀ upstreamĀ versionĀ 1.7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
*/
19
19
 
20
20
#include "agentsearchengine.h"
 
21
#include <akdbus.h>
21
22
#include <akdebug.h>
22
23
#include "entities.h"
23
24
 
27
28
 
28
29
void Akonadi::AgentSearchEngine::addSearch(const Akonadi::Collection& collection)
29
30
{
30
 
  QDBusInterface agentMgr( QLatin1String( AKONADI_DBUS_CONTROL_SERVICE ),
 
31
  QDBusInterface agentMgr( AkDBus::serviceName(AkDBus::Control),
31
32
                           QLatin1String( AKONADI_DBUS_AGENTMANAGER_PATH ),
32
33
                           QLatin1String( "org.freedesktop.Akonadi.AgentManagerInternal" ) );
33
34
  if ( agentMgr.isValid() ) {
44
45
 
45
46
void Akonadi::AgentSearchEngine::removeSearch(qint64 id)
46
47
{
47
 
  QDBusInterface agentMgr( QLatin1String( AKONADI_DBUS_CONTROL_SERVICE ),
 
48
  QDBusInterface agentMgr( AkDBus::serviceName(AkDBus::Control),
48
49
                            QLatin1String( AKONADI_DBUS_AGENTMANAGER_PATH ),
49
50
                            QLatin1String( "org.freedesktop.Akonadi.AgentManagerInternal" ) );
50
51
  if ( agentMgr.isValid() ) {