diff options
author | Aaron Seigo <aseigo@kde.org> | 2014-12-16 22:40:44 +0100 |
---|---|---|
committer | Aaron Seigo <aseigo@kde.org> | 2014-12-16 22:40:44 +0100 |
commit | 77944384d24b5005d6b8648572a31a3ae84dd946 (patch) | |
tree | 8726831773b4182cb6177d6c72a723e08a6c15aa /common/pipeline.h | |
parent | 66b21fd2e3c53e4a820e3343b192be7b043da110 (diff) | |
download | sink-77944384d24b5005d6b8648572a31a3ae84dd946.tar.gz sink-77944384d24b5005d6b8648572a31a3ae84dd946.zip |
add pipelines (as a sketch only), message ids and message responses
Diffstat (limited to 'common/pipeline.h')
-rw-r--r-- | common/pipeline.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/common/pipeline.h b/common/pipeline.h new file mode 100644 index 0000000..635e630 --- /dev/null +++ b/common/pipeline.h | |||
@@ -0,0 +1,47 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2014 Aaron Seigo <aseigo@kde.org> | ||
3 | * | ||
4 | * This library is free software; you can redistribute it and/or | ||
5 | * modify it under the terms of the GNU Lesser General Public | ||
6 | * License as published by the Free Software Foundation; either | ||
7 | * version 2.1 of the License, or (at your option) version 3, or any | ||
8 | * later version accepted by the membership of KDE e.V. (or its | ||
9 | * successor approved by the membership of KDE e.V.), which shall | ||
10 | * act as a proxy defined in Section 6 of version 3 of the license. | ||
11 | * | ||
12 | * This library is distributed in the hope that it will be useful, | ||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
15 | * Lesser General Public License for more details. | ||
16 | * | ||
17 | * You should have received a copy of the GNU Lesser General Public | ||
18 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
19 | */ | ||
20 | |||
21 | #pragma once | ||
22 | |||
23 | #include <akonadi2common_export.h> | ||
24 | #include <storage.h> | ||
25 | |||
26 | namespace Akonadi2 | ||
27 | { | ||
28 | |||
29 | class AKONADI2COMMON_EXPORT Pipeline | ||
30 | { | ||
31 | public: | ||
32 | Pipeline(const QString &storagePath); | ||
33 | ~Pipeline(); | ||
34 | |||
35 | Storage &storage(); | ||
36 | void null(uint messageId, const char *key, size_t keySize, const char *buffer, size_t bufferSize); | ||
37 | void newEntity(uint messageId, const char *key, size_t keySize, const char *buffer, size_t bufferSize); | ||
38 | void modifiedEntity(uint messageId, const char *key, size_t keySize, const char *buffer, size_t bufferSize); | ||
39 | void deletedEntity(uint messageId, const char *key, size_t keySize, const char *buffer, size_t bufferSize); | ||
40 | |||
41 | private: | ||
42 | class Private; | ||
43 | Private * const d; | ||
44 | }; | ||
45 | |||
46 | } // namespace Akonadi2 | ||
47 | |||