diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-12-10 10:29:12 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-12-10 10:29:12 +0100 |
commit | 49b1c5c3b342a84ec71e9b7dfd06a80b6d6e6c96 (patch) | |
tree | cbee8cee66e2e1803afea2ecbeea8564dace2838 /examples/client/main.cpp | |
parent | 6a86e175ae2c81094e09b9833ec222005f3b12fc (diff) | |
download | sink-49b1c5c3b342a84ec71e9b7dfd06a80b6d6e6c96.tar.gz sink-49b1c5c3b342a84ec71e9b7dfd06a80b6d6e6c96.zip |
Remove all databases from disk
Diffstat (limited to 'examples/client/main.cpp')
-rw-r--r-- | examples/client/main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/client/main.cpp b/examples/client/main.cpp index e0d9078..59ff9d9 100644 --- a/examples/client/main.cpp +++ b/examples/client/main.cpp | |||
@@ -29,6 +29,8 @@ | |||
29 | #include "common/domain/folder.h" | 29 | #include "common/domain/folder.h" |
30 | #include "common/resourceconfig.h" | 30 | #include "common/resourceconfig.h" |
31 | #include "common/log.h" | 31 | #include "common/log.h" |
32 | #include "common/storage.h" | ||
33 | #include "common/definitions.h" | ||
32 | #include "console.h" | 34 | #include "console.h" |
33 | 35 | ||
34 | #include <QWidget> | 36 | #include <QWidget> |
@@ -153,8 +155,7 @@ int main(int argc, char *argv[]) | |||
153 | if (cliOptions.isSet("clear")) { | 155 | if (cliOptions.isSet("clear")) { |
154 | qDebug() << "Clearing"; | 156 | qDebug() << "Clearing"; |
155 | for (const auto &resource : resources) { | 157 | for (const auto &resource : resources) { |
156 | Akonadi2::Storage store(Akonadi2::Store::storageLocation(), resource, Akonadi2::Storage::ReadWrite); | 158 | Akonadi2::Store::removeFromDisk(resource.toLatin1()); |
157 | store.removeFromDisk(); | ||
158 | } | 159 | } |
159 | return 0; | 160 | return 0; |
160 | } | 161 | } |