Changeset View
Changeset View
Standalone View
Standalone View
src/server/akonadi.h
Show All 17 Lines | |||||
18 | ***************************************************************************/ | 18 | ***************************************************************************/ | ||
19 | 19 | | |||
20 | #ifndef AKONADISERVER_H | 20 | #ifndef AKONADISERVER_H | ||
21 | #define AKONADISERVER_H | 21 | #define AKONADISERVER_H | ||
22 | 22 | | |||
23 | #include <QObject> | 23 | #include <QObject> | ||
24 | #include <QVector> | 24 | #include <QVector> | ||
25 | 25 | | |||
26 | #include <memory> | ||||
27 | | ||||
26 | class QProcess; | 28 | class QProcess; | ||
29 | class QDBusServiceWatcher; | ||||
27 | 30 | | |||
28 | namespace Akonadi | 31 | namespace Akonadi | ||
29 | { | 32 | { | ||
30 | namespace Server | 33 | namespace Server | ||
31 | { | 34 | { | ||
32 | 35 | | |||
33 | class Connection; | 36 | class Connection; | ||
34 | class ItemRetrievalManager; | 37 | class ItemRetrievalManager; | ||
▲ Show 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | 74 | public Q_SLOTS: | |||
76 | 79 | | |||
77 | virtual bool init(); | 80 | virtual bool init(); | ||
78 | 81 | | |||
79 | protected Q_SLOTS: | 82 | protected Q_SLOTS: | ||
80 | virtual void newCmdConnection(quintptr socketDescriptor); | 83 | virtual void newCmdConnection(quintptr socketDescriptor); | ||
81 | 84 | | |||
82 | private Q_SLOTS: | 85 | private Q_SLOTS: | ||
83 | void doQuit(); | 86 | void doQuit(); | ||
84 | void serviceOwnerChanged(const QString &name, const QString &oldOwner, const QString &newOwner); | | |||
85 | void connectionDisconnected(); | 87 | void connectionDisconnected(); | ||
86 | 88 | | |||
87 | private: | 89 | private: | ||
88 | bool startDatabaseProcess(); | 90 | bool startDatabaseProcess(); | ||
89 | bool createDatabase(); | 91 | bool createDatabase(); | ||
90 | void stopDatabaseProcess(); | 92 | void stopDatabaseProcess(); | ||
91 | uint userId() const; | 93 | uint userId() const; | ||
92 | 94 | | |||
93 | protected: | 95 | protected: | ||
94 | AkonadiServer(QObject *parent = nullptr); | 96 | AkonadiServer(QObject *parent = nullptr); | ||
95 | 97 | | |||
98 | std::unique_ptr<QDBusServiceWatcher> mControlWatcher; | ||||
99 | | ||||
96 | AkLocalServer *mCmdServer = nullptr; | 100 | AkLocalServer *mCmdServer = nullptr; | ||
97 | AkLocalServer *mNtfServer = nullptr; | 101 | AkLocalServer *mNtfServer = nullptr; | ||
98 | 102 | | |||
99 | NotificationManager *mNotificationManager = nullptr; | 103 | NotificationManager *mNotificationManager = nullptr; | ||
100 | CacheCleaner *mCacheCleaner = nullptr; | 104 | CacheCleaner *mCacheCleaner = nullptr; | ||
101 | IntervalCheck *mIntervalCheck = nullptr; | 105 | IntervalCheck *mIntervalCheck = nullptr; | ||
102 | StorageJanitor *mStorageJanitor = nullptr; | 106 | StorageJanitor *mStorageJanitor = nullptr; | ||
103 | ItemRetrievalManager *mItemRetrieval = nullptr; | 107 | ItemRetrievalManager *mItemRetrieval = nullptr; | ||
Show All 12 Lines |