Changeset View
Changeset View
Standalone View
Standalone View
src/agentbase/agentsearchinterface.cpp
Show All 15 Lines | 1 | /* | |||
---|---|---|---|---|---|
16 | Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | 16 | Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
17 | 02110-1301, USA. | 17 | 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #include "agentsearchinterface.h" | 20 | #include "agentsearchinterface.h" | ||
21 | #include "akonadiagentbase_debug.h" | 21 | #include "akonadiagentbase_debug.h" | ||
22 | #include "agentsearchinterface_p.h" | 22 | #include "agentsearchinterface_p.h" | ||
23 | #include "collection.h" | 23 | #include "collection.h" | ||
24 | #include "KDBusConnectionPool" | 24 | #include <QDBusConnection> | ||
25 | #include "searchresultjob_p.h" | 25 | #include "searchresultjob_p.h" | ||
26 | #include "searchadaptor.h" | 26 | #include "searchadaptor.h" | ||
27 | #include "collectionfetchjob.h" | 27 | #include "collectionfetchjob.h" | ||
28 | #include "collectionfetchscope.h" | 28 | #include "collectionfetchscope.h" | ||
29 | #include "servermanager.h" | 29 | #include "servermanager.h" | ||
30 | #include "agentbase.h" | 30 | #include "agentbase.h" | ||
31 | #include "private/imapset_p.h" | 31 | #include "private/imapset_p.h" | ||
32 | 32 | | |||
33 | using namespace Akonadi; | 33 | using namespace Akonadi; | ||
34 | 34 | | |||
35 | AgentSearchInterfacePrivate::AgentSearchInterfacePrivate(AgentSearchInterface *qq) | 35 | AgentSearchInterfacePrivate::AgentSearchInterfacePrivate(AgentSearchInterface *qq) | ||
36 | : q(qq) | 36 | : q(qq) | ||
37 | { | 37 | { | ||
38 | new Akonadi__SearchAdaptor(this); | 38 | new Akonadi__SearchAdaptor(this); | ||
39 | KDBusConnectionPool::threadConnection().registerObject(QStringLiteral("/Search"), | 39 | QDBusConnection::sessionBus().registerObject(QStringLiteral("/Search"), | ||
40 | this, QDBusConnection::ExportAdaptors); | 40 | this, QDBusConnection::ExportAdaptors); | ||
41 | 41 | | |||
42 | QTimer::singleShot(0, this, &AgentSearchInterfacePrivate::delayedInit); | 42 | QTimer::singleShot(0, this, &AgentSearchInterfacePrivate::delayedInit); | ||
43 | } | 43 | } | ||
44 | 44 | | |||
45 | void AgentSearchInterfacePrivate::delayedInit() | 45 | void AgentSearchInterfacePrivate::delayedInit() | ||
46 | { | 46 | { | ||
47 | QDBusInterface iface(ServerManager::serviceName(ServerManager::Server), | 47 | QDBusInterface iface(ServerManager::serviceName(ServerManager::Server), | ||
▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines |