diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-04-12 22:47:50 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-04-12 22:47:50 +0200 |
commit | 4652a39fc6869fc5af46367c35027b2b53478268 (patch) | |
tree | a13626626ef5b057630c68f09e0a925ed13bb0f9 /common/resourceaccess.h | |
parent | 5e5b1e77252ae1417b339a01bba3ed1fe5705629 (diff) | |
download | sink-4652a39fc6869fc5af46367c35027b2b53478268.tar.gz sink-4652a39fc6869fc5af46367c35027b2b53478268.zip |
Always queue commands in resourceaccess.
We want to keep the command until we know it arrived in the resource,
so we can resend it otherwise.
Diffstat (limited to 'common/resourceaccess.h')
-rw-r--r-- | common/resourceaccess.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/resourceaccess.h b/common/resourceaccess.h index 088bf36..4c9d9d2 100644 --- a/common/resourceaccess.h +++ b/common/resourceaccess.h | |||
@@ -30,6 +30,8 @@ | |||
30 | namespace Akonadi2 | 30 | namespace Akonadi2 |
31 | { | 31 | { |
32 | 32 | ||
33 | class QueuedCommand; | ||
34 | |||
33 | class ResourceAccess : public QObject | 35 | class ResourceAccess : public QObject |
34 | { | 36 | { |
35 | Q_OBJECT | 37 | Q_OBJECT |
@@ -68,6 +70,9 @@ private: | |||
68 | void registerCallback(uint messageId, const std::function<void(int error, const QString &)> &callback); | 70 | void registerCallback(uint messageId, const std::function<void(int error, const QString &)> &callback); |
69 | void startResourceAndConnect(); | 71 | void startResourceAndConnect(); |
70 | 72 | ||
73 | void sendCommand(const QSharedPointer<QueuedCommand> &command); | ||
74 | void processCommandQueue(); | ||
75 | |||
71 | class Private; | 76 | class Private; |
72 | Private * const d; | 77 | Private * const d; |
73 | }; | 78 | }; |