summaryrefslogtreecommitdiffstats
path: root/common/resourceaccess.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-04-12 22:47:50 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-04-12 22:47:50 +0200
commit4652a39fc6869fc5af46367c35027b2b53478268 (patch)
treea13626626ef5b057630c68f09e0a925ed13bb0f9 /common/resourceaccess.h
parent5e5b1e77252ae1417b339a01bba3ed1fe5705629 (diff)
downloadsink-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.h5
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 @@
30namespace Akonadi2 30namespace Akonadi2
31{ 31{
32 32
33class QueuedCommand;
34
33class ResourceAccess : public QObject 35class 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};