summaryrefslogtreecommitdiffstats
path: root/common/commands.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/commands.h')
-rw-r--r--common/commands.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/commands.h b/common/commands.h
index 0007ffc..1baedcc 100644
--- a/common/commands.h
+++ b/common/commands.h
@@ -22,6 +22,7 @@
22 22
23#include <akonadi2common_export.h> 23#include <akonadi2common_export.h>
24#include <flatbuffers/flatbuffers.h> 24#include <flatbuffers/flatbuffers.h>
25#include <QByteArray>
25 26
26class QIODevice; 27class QIODevice;
27 28
@@ -47,6 +48,9 @@ enum CommandIds {
47 CustomCommand = 0xffff 48 CustomCommand = 0xffff
48}; 49};
49 50
51
52QByteArray name(int commandId);
53
50int AKONADI2COMMON_EXPORT headerSize(); 54int AKONADI2COMMON_EXPORT headerSize();
51void AKONADI2COMMON_EXPORT write(QIODevice *device, int messageId, int commandId); 55void AKONADI2COMMON_EXPORT write(QIODevice *device, int messageId, int commandId);
52void AKONADI2COMMON_EXPORT write(QIODevice *device, int messageId, int commandId, const char *buffer, uint size); 56void AKONADI2COMMON_EXPORT write(QIODevice *device, int messageId, int commandId, const char *buffer, uint size);