diff options
Diffstat (limited to 'common/resourceaccess.h')
-rw-r--r-- | common/resourceaccess.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/common/resourceaccess.h b/common/resourceaccess.h index c16a9d2..b779db9 100644 --- a/common/resourceaccess.h +++ b/common/resourceaccess.h | |||
@@ -24,8 +24,9 @@ | |||
24 | #include <QObject> | 24 | #include <QObject> |
25 | #include <QTimer> | 25 | #include <QTimer> |
26 | 26 | ||
27 | #include <Async/Async> | ||
28 | |||
27 | #include <flatbuffers/flatbuffers.h> | 29 | #include <flatbuffers/flatbuffers.h> |
28 | #include <async/src/async.h> | ||
29 | 30 | ||
30 | namespace Akonadi2 | 31 | namespace Akonadi2 |
31 | { | 32 | { |
@@ -43,13 +44,13 @@ public: | |||
43 | QByteArray resourceName() const; | 44 | QByteArray resourceName() const; |
44 | bool isReady() const; | 45 | bool isReady() const; |
45 | 46 | ||
46 | Async::Job<void> sendCommand(int commandId); | 47 | KAsync::Job<void> sendCommand(int commandId); |
47 | Async::Job<void> sendCommand(int commandId, flatbuffers::FlatBufferBuilder &fbb); | 48 | KAsync::Job<void> sendCommand(int commandId, flatbuffers::FlatBufferBuilder &fbb); |
48 | Async::Job<void> synchronizeResource(bool remoteSync, bool localSync); | 49 | KAsync::Job<void> synchronizeResource(bool remoteSync, bool localSync); |
49 | /** | 50 | /** |
50 | * Tries to connect to server, and returns a connected socket on success. | 51 | * Tries to connect to server, and returns a connected socket on success. |
51 | */ | 52 | */ |
52 | static Async::Job<QSharedPointer<QLocalSocket> > connectToServer(const QByteArray &identifier); | 53 | static KAsync::Job<QSharedPointer<QLocalSocket> > connectToServer(const QByteArray &identifier); |
53 | 54 | ||
54 | public Q_SLOTS: | 55 | public Q_SLOTS: |
55 | void open(); | 56 | void open(); |