Changeset View
Changeset View
Standalone View
Standalone View
src/server/akonadi.cpp
Show All 34 Lines | |||||
35 | #include "debuginterface.h" | 35 | #include "debuginterface.h" | ||
36 | #include "storage/itemretrievalmanager.h" | 36 | #include "storage/itemretrievalmanager.h" | ||
37 | #include "storage/collectionstatistics.h" | 37 | #include "storage/collectionstatistics.h" | ||
38 | #include "preprocessormanager.h" | 38 | #include "preprocessormanager.h" | ||
39 | #include "search/searchmanager.h" | 39 | #include "search/searchmanager.h" | ||
40 | #include "search/searchtaskmanager.h" | 40 | #include "search/searchtaskmanager.h" | ||
41 | #include "aklocalserver.h" | 41 | #include "aklocalserver.h" | ||
42 | 42 | | |||
43 | #include "collectionreferencemanager.h" | | |||
44 | | ||||
45 | #include <private/standarddirs_p.h> | 43 | #include <private/standarddirs_p.h> | ||
46 | #include <private/protocol_p.h> | 44 | #include <private/protocol_p.h> | ||
47 | #include <private/dbus_p.h> | 45 | #include <private/dbus_p.h> | ||
48 | #include <private/instance_p.h> | 46 | #include <private/instance_p.h> | ||
49 | 47 | | |||
50 | #include <QSqlQuery> | 48 | #include <QSqlQuery> | ||
51 | #include <QSqlError> | 49 | #include <QSqlError> | ||
52 | 50 | | |||
▲ Show 20 Lines • Show All 169 Lines • ▼ Show 20 Line(s) | 164 | #endif | |||
222 | 220 | | |||
223 | // Unhide all the items that are actually hidden. | 221 | // Unhide all the items that are actually hidden. | ||
224 | // The hidden flag was probably left out after an (abrupt) | 222 | // The hidden flag was probably left out after an (abrupt) | ||
225 | // server quit. We don't attempt to resume preprocessing | 223 | // server quit. We don't attempt to resume preprocessing | ||
226 | // for the items as we don't actually know at which stage the | 224 | // for the items as we don't actually know at which stage the | ||
227 | // operation was interrupted... | 225 | // operation was interrupted... | ||
228 | db->unhideAllPimItems(); | 226 | db->unhideAllPimItems(); | ||
229 | 227 | | |||
230 | // Cleanup referenced collections from the last run | | |||
231 | CollectionReferenceManager::cleanup(); | | |||
232 | | ||||
233 | // We are ready, now register org.freedesktop.Akonadi service to DBus and | 228 | // We are ready, now register org.freedesktop.Akonadi service to DBus and | ||
234 | // the fun can begin | 229 | // the fun can begin | ||
235 | if (!QDBusConnection::sessionBus().registerService(DBus::serviceName(DBus::Server))) { | 230 | if (!QDBusConnection::sessionBus().registerService(DBus::serviceName(DBus::Server))) { | ||
236 | qCCritical(AKONADISERVER_LOG) << "Unable to connect to dbus service: " << QDBusConnection::sessionBus().lastError().message(); | 231 | qCCritical(AKONADISERVER_LOG) << "Unable to connect to dbus service: " << QDBusConnection::sessionBus().lastError().message(); | ||
237 | quit(); | 232 | quit(); | ||
238 | return false; | 233 | return false; | ||
239 | } | 234 | } | ||
240 | 235 | | |||
▲ Show 20 Lines • Show All 187 Lines • Show Last 20 Lines |