Changeset View
Changeset View
Standalone View
Standalone View
src/server/storage/datastore.h
Show First 20 Lines • Show All 97 Lines • ▼ Show 20 Line(s) | 80 | @endverbatim | |||
---|---|---|---|---|---|
98 | - Options: Additional options, format is driver-dependent | 98 | - Options: Additional options, format is driver-dependent | ||
99 | - StartServer: Start the database locally just for Akonadi instead of using an existing one | 99 | - StartServer: Start the database locally just for Akonadi instead of using an existing one | ||
100 | - ServerPath: Path to the server executable | 100 | - ServerPath: Path to the server executable | ||
101 | */ | 101 | */ | ||
102 | class DataStore : public QObject | 102 | class DataStore : public QObject | ||
103 | { | 103 | { | ||
104 | Q_OBJECT | 104 | Q_OBJECT | ||
105 | public: | 105 | public: | ||
106 | const constexpr static bool Silent = true; | ||||
107 | | ||||
106 | /** | 108 | /** | ||
107 | Closes the database connection and destroys the DataStore object. | 109 | Closes the database connection and destroys the DataStore object. | ||
108 | */ | 110 | */ | ||
109 | ~DataStore() override; | 111 | ~DataStore() override; | ||
110 | 112 | | |||
111 | /** | 113 | /** | ||
112 | Opens the database connection. | 114 | Opens the database connection. | ||
113 | */ | 115 | */ | ||
▲ Show 20 Lines • Show All 80 Lines • ▼ Show 20 Line(s) | 192 | virtual bool appendPimItem(QVector<Part> &parts, | |||
194 | const QDateTime &dateTime, | 196 | const QDateTime &dateTime, | ||
195 | const QString &remote_id, | 197 | const QString &remote_id, | ||
196 | const QString &remoteRevision, | 198 | const QString &remoteRevision, | ||
197 | const QString &gid, | 199 | const QString &gid, | ||
198 | PimItem &pimItem); | 200 | PimItem &pimItem); | ||
199 | /** | 201 | /** | ||
200 | * Removes the pim item and all referenced data ( e.g. flags ) | 202 | * Removes the pim item and all referenced data ( e.g. flags ) | ||
201 | */ | 203 | */ | ||
202 | virtual bool cleanupPimItems(const PimItem::List &items); | 204 | virtual bool cleanupPimItems(const PimItem::List &items, bool silent = false); | ||
203 | 205 | | |||
204 | /** | 206 | /** | ||
205 | * Unhides the specified PimItem. Emits the itemAdded() notification as | 207 | * Unhides the specified PimItem. Emits the itemAdded() notification as | ||
206 | * the hidden flag is assumed to have been set by appendPimItem() before | 208 | * the hidden flag is assumed to have been set by appendPimItem() before | ||
207 | * pushing the item to the preprocessor chain. The hidden item had his | 209 | * pushing the item to the preprocessor chain. The hidden item had his | ||
208 | * notifications disabled until now (so for the clients the "unhide" operation | 210 | * notifications disabled until now (so for the clients the "unhide" operation | ||
209 | * is actually a new item arrival). | 211 | * is actually a new item arrival). | ||
210 | * | 212 | * | ||
▲ Show 20 Lines • Show All 156 Lines • Show Last 20 Lines |