diff options
Diffstat (limited to 'common/domain')
-rw-r--r-- | common/domain/applicationdomaintype.cpp | 6 | ||||
-rw-r--r-- | common/domain/applicationdomaintype.h | 36 | ||||
-rw-r--r-- | common/domain/dummy.fbs | 2 | ||||
-rw-r--r-- | common/domain/event.cpp | 8 | ||||
-rw-r--r-- | common/domain/event.fbs | 2 | ||||
-rw-r--r-- | common/domain/event.h | 14 | ||||
-rw-r--r-- | common/domain/folder.cpp | 8 | ||||
-rw-r--r-- | common/domain/folder.fbs | 2 | ||||
-rw-r--r-- | common/domain/folder.h | 14 | ||||
-rw-r--r-- | common/domain/mail.cpp | 8 | ||||
-rw-r--r-- | common/domain/mail.fbs | 2 | ||||
-rw-r--r-- | common/domain/mail.h | 14 |
12 files changed, 58 insertions, 58 deletions
diff --git a/common/domain/applicationdomaintype.cpp b/common/domain/applicationdomaintype.cpp index c9a8bba..b0433be 100644 --- a/common/domain/applicationdomaintype.cpp +++ b/common/domain/applicationdomaintype.cpp | |||
@@ -21,7 +21,7 @@ | |||
21 | #include "log.h" | 21 | #include "log.h" |
22 | #include "../bufferadaptor.h" | 22 | #include "../bufferadaptor.h" |
23 | 23 | ||
24 | namespace Akonadi2 { | 24 | namespace Sink { |
25 | namespace ApplicationDomain { | 25 | namespace ApplicationDomain { |
26 | 26 | ||
27 | ApplicationDomainType::ApplicationDomainType() | 27 | ApplicationDomainType::ApplicationDomainType() |
@@ -113,9 +113,9 @@ QByteArray getTypeName<Todo>() | |||
113 | } | 113 | } |
114 | 114 | ||
115 | template<> | 115 | template<> |
116 | QByteArray getTypeName<AkonadiResource>() | 116 | QByteArray getTypeName<SinkResource>() |
117 | { | 117 | { |
118 | return "akonadiresource"; | 118 | return "sinkresource"; |
119 | } | 119 | } |
120 | 120 | ||
121 | template<> | 121 | template<> |
diff --git a/common/domain/applicationdomaintype.h b/common/domain/applicationdomaintype.h index 44d8743..63f030c 100644 --- a/common/domain/applicationdomaintype.h +++ b/common/domain/applicationdomaintype.h | |||
@@ -24,7 +24,7 @@ | |||
24 | #include <QByteArray> | 24 | #include <QByteArray> |
25 | #include "bufferadaptor.h" | 25 | #include "bufferadaptor.h" |
26 | 26 | ||
27 | namespace Akonadi2 { | 27 | namespace Sink { |
28 | 28 | ||
29 | namespace ApplicationDomain { | 29 | namespace ApplicationDomain { |
30 | 30 | ||
@@ -48,7 +48,7 @@ public: | |||
48 | template <typename DomainType> | 48 | template <typename DomainType> |
49 | static typename DomainType::Ptr getInMemoryRepresentation(const ApplicationDomainType &domainType, const QList<QByteArray> properties = QList<QByteArray>()) | 49 | static typename DomainType::Ptr getInMemoryRepresentation(const ApplicationDomainType &domainType, const QList<QByteArray> properties = QList<QByteArray>()) |
50 | { | 50 | { |
51 | auto memoryAdaptor = QSharedPointer<Akonadi2::ApplicationDomain::MemoryBufferAdaptor>::create(*(domainType.mAdaptor), properties); | 51 | auto memoryAdaptor = QSharedPointer<Sink::ApplicationDomain::MemoryBufferAdaptor>::create(*(domainType.mAdaptor), properties); |
52 | //The identifier still internal refers to the memory-mapped pointer, we need to copy the memory or it will become invalid | 52 | //The identifier still internal refers to the memory-mapped pointer, we need to copy the memory or it will become invalid |
53 | return QSharedPointer<DomainType>::create(domainType.mResourceInstanceIdentifier, QByteArray(domainType.mIdentifier.constData(), domainType.mIdentifier.size()), domainType.mRevision, memoryAdaptor); | 53 | return QSharedPointer<DomainType>::create(domainType.mResourceInstanceIdentifier, QByteArray(domainType.mIdentifier.constData(), domainType.mIdentifier.size()), domainType.mRevision, memoryAdaptor); |
54 | } | 54 | } |
@@ -113,13 +113,13 @@ struct Folder : public Entity { | |||
113 | }; | 113 | }; |
114 | 114 | ||
115 | /** | 115 | /** |
116 | * Represents an akonadi resource. | 116 | * Represents an sink resource. |
117 | * | 117 | * |
118 | * This type is used for configuration of resources, | 118 | * This type is used for configuration of resources, |
119 | * and for creating and removing resource instances. | 119 | * and for creating and removing resource instances. |
120 | */ | 120 | */ |
121 | struct AkonadiResource : public ApplicationDomainType { | 121 | struct SinkResource : public ApplicationDomainType { |
122 | typedef QSharedPointer<AkonadiResource> Ptr; | 122 | typedef QSharedPointer<SinkResource> Ptr; |
123 | using ApplicationDomainType::ApplicationDomainType; | 123 | using ApplicationDomainType::ApplicationDomainType; |
124 | }; | 124 | }; |
125 | 125 | ||
@@ -138,7 +138,7 @@ template<> | |||
138 | QByteArray getTypeName<Todo>(); | 138 | QByteArray getTypeName<Todo>(); |
139 | 139 | ||
140 | template<> | 140 | template<> |
141 | QByteArray getTypeName<AkonadiResource>(); | 141 | QByteArray getTypeName<SinkResource>(); |
142 | 142 | ||
143 | template<> | 143 | template<> |
144 | QByteArray getTypeName<Mail>(); | 144 | QByteArray getTypeName<Mail>(); |
@@ -158,15 +158,15 @@ class TypeImplementation; | |||
158 | } | 158 | } |
159 | } | 159 | } |
160 | 160 | ||
161 | Q_DECLARE_METATYPE(Akonadi2::ApplicationDomain::ApplicationDomainType) | 161 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::ApplicationDomainType) |
162 | Q_DECLARE_METATYPE(Akonadi2::ApplicationDomain::ApplicationDomainType::Ptr) | 162 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::ApplicationDomainType::Ptr) |
163 | Q_DECLARE_METATYPE(Akonadi2::ApplicationDomain::Entity) | 163 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::Entity) |
164 | Q_DECLARE_METATYPE(Akonadi2::ApplicationDomain::Entity::Ptr) | 164 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::Entity::Ptr) |
165 | Q_DECLARE_METATYPE(Akonadi2::ApplicationDomain::Event) | 165 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::Event) |
166 | Q_DECLARE_METATYPE(Akonadi2::ApplicationDomain::Event::Ptr) | 166 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::Event::Ptr) |
167 | Q_DECLARE_METATYPE(Akonadi2::ApplicationDomain::Mail) | 167 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::Mail) |
168 | Q_DECLARE_METATYPE(Akonadi2::ApplicationDomain::Mail::Ptr) | 168 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::Mail::Ptr) |
169 | Q_DECLARE_METATYPE(Akonadi2::ApplicationDomain::Folder) | 169 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::Folder) |
170 | Q_DECLARE_METATYPE(Akonadi2::ApplicationDomain::Folder::Ptr) | 170 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::Folder::Ptr) |
171 | Q_DECLARE_METATYPE(Akonadi2::ApplicationDomain::AkonadiResource) | 171 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::SinkResource) |
172 | Q_DECLARE_METATYPE(Akonadi2::ApplicationDomain::AkonadiResource::Ptr) | 172 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::SinkResource::Ptr) |
diff --git a/common/domain/dummy.fbs b/common/domain/dummy.fbs index 8816b09..4b12827 100644 --- a/common/domain/dummy.fbs +++ b/common/domain/dummy.fbs | |||
@@ -1,4 +1,4 @@ | |||
1 | namespace Akonadi2.ApplicationDomain.Buffer; | 1 | namespace Sink.ApplicationDomain.Buffer; |
2 | 2 | ||
3 | table Dummy { | 3 | table Dummy { |
4 | } | 4 | } |
diff --git a/common/domain/event.cpp b/common/domain/event.cpp index 18009fc..9f81eb8 100644 --- a/common/domain/event.cpp +++ b/common/domain/event.cpp | |||
@@ -37,7 +37,7 @@ | |||
37 | 37 | ||
38 | static QMutex sMutex; | 38 | static QMutex sMutex; |
39 | 39 | ||
40 | using namespace Akonadi2::ApplicationDomain; | 40 | using namespace Sink::ApplicationDomain; |
41 | 41 | ||
42 | static TypeIndex &getIndex() | 42 | static TypeIndex &getIndex() |
43 | { | 43 | { |
@@ -50,17 +50,17 @@ static TypeIndex &getIndex() | |||
50 | return *index; | 50 | return *index; |
51 | } | 51 | } |
52 | 52 | ||
53 | ResultSet TypeImplementation<Event>::queryIndexes(const Akonadi2::Query &query, const QByteArray &resourceInstanceIdentifier, QSet<QByteArray> &appliedFilters, Akonadi2::Storage::Transaction &transaction) | 53 | ResultSet TypeImplementation<Event>::queryIndexes(const Sink::Query &query, const QByteArray &resourceInstanceIdentifier, QSet<QByteArray> &appliedFilters, Sink::Storage::Transaction &transaction) |
54 | { | 54 | { |
55 | return getIndex().query(query, appliedFilters, transaction); | 55 | return getIndex().query(query, appliedFilters, transaction); |
56 | } | 56 | } |
57 | 57 | ||
58 | void TypeImplementation<Event>::index(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Akonadi2::Storage::Transaction &transaction) | 58 | void TypeImplementation<Event>::index(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Sink::Storage::Transaction &transaction) |
59 | { | 59 | { |
60 | return getIndex().add(identifier, bufferAdaptor, transaction); | 60 | return getIndex().add(identifier, bufferAdaptor, transaction); |
61 | } | 61 | } |
62 | 62 | ||
63 | void TypeImplementation<Event>::removeIndex(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Akonadi2::Storage::Transaction &transaction) | 63 | void TypeImplementation<Event>::removeIndex(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Sink::Storage::Transaction &transaction) |
64 | { | 64 | { |
65 | return getIndex().remove(identifier, bufferAdaptor, transaction); | 65 | return getIndex().remove(identifier, bufferAdaptor, transaction); |
66 | } | 66 | } |
diff --git a/common/domain/event.fbs b/common/domain/event.fbs index 0c6628b..69148ef 100644 --- a/common/domain/event.fbs +++ b/common/domain/event.fbs | |||
@@ -1,4 +1,4 @@ | |||
1 | namespace Akonadi2.ApplicationDomain.Buffer; | 1 | namespace Sink.ApplicationDomain.Buffer; |
2 | 2 | ||
3 | table Event { | 3 | table Event { |
4 | uid:string; | 4 | uid:string; |
diff --git a/common/domain/event.h b/common/domain/event.h index 577367b..479969d 100644 --- a/common/domain/event.h +++ b/common/domain/event.h | |||
@@ -30,7 +30,7 @@ class ReadPropertyMapper; | |||
30 | template<typename T> | 30 | template<typename T> |
31 | class WritePropertyMapper; | 31 | class WritePropertyMapper; |
32 | 32 | ||
33 | namespace Akonadi2 { | 33 | namespace Sink { |
34 | class Query; | 34 | class Query; |
35 | 35 | ||
36 | namespace ApplicationDomain { | 36 | namespace ApplicationDomain { |
@@ -45,19 +45,19 @@ namespace ApplicationDomain { | |||
45 | * These are type specifiy default implementations. Theoretically a resource could implement it's own implementation. | 45 | * These are type specifiy default implementations. Theoretically a resource could implement it's own implementation. |
46 | */ | 46 | */ |
47 | template<> | 47 | template<> |
48 | class TypeImplementation<Akonadi2::ApplicationDomain::Event> { | 48 | class TypeImplementation<Sink::ApplicationDomain::Event> { |
49 | public: | 49 | public: |
50 | typedef Akonadi2::ApplicationDomain::Buffer::Event Buffer; | 50 | typedef Sink::ApplicationDomain::Buffer::Event Buffer; |
51 | typedef Akonadi2::ApplicationDomain::Buffer::EventBuilder BufferBuilder; | 51 | typedef Sink::ApplicationDomain::Buffer::EventBuilder BufferBuilder; |
52 | static QSet<QByteArray> indexedProperties(); | 52 | static QSet<QByteArray> indexedProperties(); |
53 | /** | 53 | /** |
54 | * Returns the potential result set based on the indexes. | 54 | * Returns the potential result set based on the indexes. |
55 | * | 55 | * |
56 | * An empty result set indicates that a full scan is required. | 56 | * An empty result set indicates that a full scan is required. |
57 | */ | 57 | */ |
58 | static ResultSet queryIndexes(const Akonadi2::Query &query, const QByteArray &resourceInstanceIdentifier, QSet<QByteArray> &appliedFilters, Akonadi2::Storage::Transaction &transaction); | 58 | static ResultSet queryIndexes(const Sink::Query &query, const QByteArray &resourceInstanceIdentifier, QSet<QByteArray> &appliedFilters, Sink::Storage::Transaction &transaction); |
59 | static void index(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Akonadi2::Storage::Transaction &transaction); | 59 | static void index(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Sink::Storage::Transaction &transaction); |
60 | static void removeIndex(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Akonadi2::Storage::Transaction &transaction); | 60 | static void removeIndex(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Sink::Storage::Transaction &transaction); |
61 | static QSharedPointer<ReadPropertyMapper<Buffer> > initializeReadPropertyMapper(); | 61 | static QSharedPointer<ReadPropertyMapper<Buffer> > initializeReadPropertyMapper(); |
62 | static QSharedPointer<WritePropertyMapper<BufferBuilder> > initializeWritePropertyMapper(); | 62 | static QSharedPointer<WritePropertyMapper<BufferBuilder> > initializeWritePropertyMapper(); |
63 | }; | 63 | }; |
diff --git a/common/domain/folder.cpp b/common/domain/folder.cpp index 7934841..16b2ec9 100644 --- a/common/domain/folder.cpp +++ b/common/domain/folder.cpp | |||
@@ -37,7 +37,7 @@ | |||
37 | 37 | ||
38 | static QMutex sMutex; | 38 | static QMutex sMutex; |
39 | 39 | ||
40 | using namespace Akonadi2::ApplicationDomain; | 40 | using namespace Sink::ApplicationDomain; |
41 | 41 | ||
42 | static TypeIndex &getIndex() | 42 | static TypeIndex &getIndex() |
43 | { | 43 | { |
@@ -51,18 +51,18 @@ static TypeIndex &getIndex() | |||
51 | return *index; | 51 | return *index; |
52 | } | 52 | } |
53 | 53 | ||
54 | ResultSet TypeImplementation<Folder>::queryIndexes(const Akonadi2::Query &query, const QByteArray &resourceInstanceIdentifier, QSet<QByteArray> &appliedFilters, Akonadi2::Storage::Transaction &transaction) | 54 | ResultSet TypeImplementation<Folder>::queryIndexes(const Sink::Query &query, const QByteArray &resourceInstanceIdentifier, QSet<QByteArray> &appliedFilters, Sink::Storage::Transaction &transaction) |
55 | { | 55 | { |
56 | return getIndex().query(query, appliedFilters, transaction); | 56 | return getIndex().query(query, appliedFilters, transaction); |
57 | } | 57 | } |
58 | 58 | ||
59 | void TypeImplementation<Folder>::index(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Akonadi2::Storage::Transaction &transaction) | 59 | void TypeImplementation<Folder>::index(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Sink::Storage::Transaction &transaction) |
60 | { | 60 | { |
61 | Trace() << "Indexing " << identifier; | 61 | Trace() << "Indexing " << identifier; |
62 | getIndex().add(identifier, bufferAdaptor, transaction); | 62 | getIndex().add(identifier, bufferAdaptor, transaction); |
63 | } | 63 | } |
64 | 64 | ||
65 | void TypeImplementation<Folder>::removeIndex(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Akonadi2::Storage::Transaction &transaction) | 65 | void TypeImplementation<Folder>::removeIndex(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Sink::Storage::Transaction &transaction) |
66 | { | 66 | { |
67 | getIndex().remove(identifier, bufferAdaptor, transaction); | 67 | getIndex().remove(identifier, bufferAdaptor, transaction); |
68 | } | 68 | } |
diff --git a/common/domain/folder.fbs b/common/domain/folder.fbs index 31dc32a..b5d01ef 100644 --- a/common/domain/folder.fbs +++ b/common/domain/folder.fbs | |||
@@ -1,4 +1,4 @@ | |||
1 | namespace Akonadi2.ApplicationDomain.Buffer; | 1 | namespace Sink.ApplicationDomain.Buffer; |
2 | 2 | ||
3 | table Folder { | 3 | table Folder { |
4 | name:string; | 4 | name:string; |
diff --git a/common/domain/folder.h b/common/domain/folder.h index 545836f..40c799c 100644 --- a/common/domain/folder.h +++ b/common/domain/folder.h | |||
@@ -30,7 +30,7 @@ class ReadPropertyMapper; | |||
30 | template<typename T> | 30 | template<typename T> |
31 | class WritePropertyMapper; | 31 | class WritePropertyMapper; |
32 | 32 | ||
33 | namespace Akonadi2 { | 33 | namespace Sink { |
34 | class Query; | 34 | class Query; |
35 | 35 | ||
36 | namespace ApplicationDomain { | 36 | namespace ApplicationDomain { |
@@ -40,14 +40,14 @@ namespace ApplicationDomain { | |||
40 | } | 40 | } |
41 | 41 | ||
42 | template<> | 42 | template<> |
43 | class TypeImplementation<Akonadi2::ApplicationDomain::Folder> { | 43 | class TypeImplementation<Sink::ApplicationDomain::Folder> { |
44 | public: | 44 | public: |
45 | typedef Akonadi2::ApplicationDomain::Buffer::Folder Buffer; | 45 | typedef Sink::ApplicationDomain::Buffer::Folder Buffer; |
46 | typedef Akonadi2::ApplicationDomain::Buffer::FolderBuilder BufferBuilder; | 46 | typedef Sink::ApplicationDomain::Buffer::FolderBuilder BufferBuilder; |
47 | static QSet<QByteArray> indexedProperties(); | 47 | static QSet<QByteArray> indexedProperties(); |
48 | static ResultSet queryIndexes(const Akonadi2::Query &query, const QByteArray &resourceInstanceIdentifier, QSet<QByteArray> &appliedFilters, Akonadi2::Storage::Transaction &transaction); | 48 | static ResultSet queryIndexes(const Sink::Query &query, const QByteArray &resourceInstanceIdentifier, QSet<QByteArray> &appliedFilters, Sink::Storage::Transaction &transaction); |
49 | static void index(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Akonadi2::Storage::Transaction &transaction); | 49 | static void index(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Sink::Storage::Transaction &transaction); |
50 | static void removeIndex(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Akonadi2::Storage::Transaction &transaction); | 50 | static void removeIndex(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Sink::Storage::Transaction &transaction); |
51 | static QSharedPointer<ReadPropertyMapper<Buffer> > initializeReadPropertyMapper(); | 51 | static QSharedPointer<ReadPropertyMapper<Buffer> > initializeReadPropertyMapper(); |
52 | static QSharedPointer<WritePropertyMapper<BufferBuilder> > initializeWritePropertyMapper(); | 52 | static QSharedPointer<WritePropertyMapper<BufferBuilder> > initializeWritePropertyMapper(); |
53 | }; | 53 | }; |
diff --git a/common/domain/mail.cpp b/common/domain/mail.cpp index 8875d88..518331f 100644 --- a/common/domain/mail.cpp +++ b/common/domain/mail.cpp | |||
@@ -37,7 +37,7 @@ | |||
37 | 37 | ||
38 | static QMutex sMutex; | 38 | static QMutex sMutex; |
39 | 39 | ||
40 | using namespace Akonadi2::ApplicationDomain; | 40 | using namespace Sink::ApplicationDomain; |
41 | 41 | ||
42 | static TypeIndex &getIndex() | 42 | static TypeIndex &getIndex() |
43 | { | 43 | { |
@@ -55,18 +55,18 @@ static TypeIndex &getIndex() | |||
55 | return *index; | 55 | return *index; |
56 | } | 56 | } |
57 | 57 | ||
58 | ResultSet TypeImplementation<Mail>::queryIndexes(const Akonadi2::Query &query, const QByteArray &resourceInstanceIdentifier, QSet<QByteArray> &appliedFilters, Akonadi2::Storage::Transaction &transaction) | 58 | ResultSet TypeImplementation<Mail>::queryIndexes(const Sink::Query &query, const QByteArray &resourceInstanceIdentifier, QSet<QByteArray> &appliedFilters, Sink::Storage::Transaction &transaction) |
59 | { | 59 | { |
60 | return getIndex().query(query, appliedFilters, transaction); | 60 | return getIndex().query(query, appliedFilters, transaction); |
61 | } | 61 | } |
62 | 62 | ||
63 | void TypeImplementation<Mail>::index(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Akonadi2::Storage::Transaction &transaction) | 63 | void TypeImplementation<Mail>::index(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Sink::Storage::Transaction &transaction) |
64 | { | 64 | { |
65 | Trace() << "Indexing " << identifier; | 65 | Trace() << "Indexing " << identifier; |
66 | getIndex().add(identifier, bufferAdaptor, transaction); | 66 | getIndex().add(identifier, bufferAdaptor, transaction); |
67 | } | 67 | } |
68 | 68 | ||
69 | void TypeImplementation<Mail>::removeIndex(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Akonadi2::Storage::Transaction &transaction) | 69 | void TypeImplementation<Mail>::removeIndex(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Sink::Storage::Transaction &transaction) |
70 | { | 70 | { |
71 | getIndex().remove(identifier, bufferAdaptor, transaction); | 71 | getIndex().remove(identifier, bufferAdaptor, transaction); |
72 | } | 72 | } |
diff --git a/common/domain/mail.fbs b/common/domain/mail.fbs index 17b29a0..0d11e32 100644 --- a/common/domain/mail.fbs +++ b/common/domain/mail.fbs | |||
@@ -1,4 +1,4 @@ | |||
1 | namespace Akonadi2.ApplicationDomain.Buffer; | 1 | namespace Sink.ApplicationDomain.Buffer; |
2 | 2 | ||
3 | table Mail { | 3 | table Mail { |
4 | uid:string; | 4 | uid:string; |
diff --git a/common/domain/mail.h b/common/domain/mail.h index d1ef8d6..e45d64d 100644 --- a/common/domain/mail.h +++ b/common/domain/mail.h | |||
@@ -30,7 +30,7 @@ class ReadPropertyMapper; | |||
30 | template<typename T> | 30 | template<typename T> |
31 | class WritePropertyMapper; | 31 | class WritePropertyMapper; |
32 | 32 | ||
33 | namespace Akonadi2 { | 33 | namespace Sink { |
34 | class Query; | 34 | class Query; |
35 | 35 | ||
36 | namespace ApplicationDomain { | 36 | namespace ApplicationDomain { |
@@ -40,19 +40,19 @@ namespace ApplicationDomain { | |||
40 | } | 40 | } |
41 | 41 | ||
42 | template<> | 42 | template<> |
43 | class TypeImplementation<Akonadi2::ApplicationDomain::Mail> { | 43 | class TypeImplementation<Sink::ApplicationDomain::Mail> { |
44 | public: | 44 | public: |
45 | typedef Akonadi2::ApplicationDomain::Buffer::Mail Buffer; | 45 | typedef Sink::ApplicationDomain::Buffer::Mail Buffer; |
46 | typedef Akonadi2::ApplicationDomain::Buffer::MailBuilder BufferBuilder; | 46 | typedef Sink::ApplicationDomain::Buffer::MailBuilder BufferBuilder; |
47 | static QSet<QByteArray> indexedProperties(); | 47 | static QSet<QByteArray> indexedProperties(); |
48 | /** | 48 | /** |
49 | * Returns the potential result set based on the indexes. | 49 | * Returns the potential result set based on the indexes. |
50 | * | 50 | * |
51 | * An empty result set indicates that a full scan is required. | 51 | * An empty result set indicates that a full scan is required. |
52 | */ | 52 | */ |
53 | static ResultSet queryIndexes(const Akonadi2::Query &query, const QByteArray &resourceInstanceIdentifier, QSet<QByteArray> &appliedFilters, Akonadi2::Storage::Transaction &transaction); | 53 | static ResultSet queryIndexes(const Sink::Query &query, const QByteArray &resourceInstanceIdentifier, QSet<QByteArray> &appliedFilters, Sink::Storage::Transaction &transaction); |
54 | static void index(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Akonadi2::Storage::Transaction &transaction); | 54 | static void index(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Sink::Storage::Transaction &transaction); |
55 | static void removeIndex(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Akonadi2::Storage::Transaction &transaction); | 55 | static void removeIndex(const QByteArray &identifier, const BufferAdaptor &bufferAdaptor, Sink::Storage::Transaction &transaction); |
56 | static QSharedPointer<ReadPropertyMapper<Buffer> > initializeReadPropertyMapper(); | 56 | static QSharedPointer<ReadPropertyMapper<Buffer> > initializeReadPropertyMapper(); |
57 | static QSharedPointer<WritePropertyMapper<BufferBuilder> > initializeWritePropertyMapper(); | 57 | static QSharedPointer<WritePropertyMapper<BufferBuilder> > initializeWritePropertyMapper(); |
58 | }; | 58 | }; |