diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-01-20 19:07:07 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-01-20 19:07:07 +0100 |
commit | bdb01c2c068df326f5a8328ed1492ab1bea388c5 (patch) | |
tree | 25c2ee1b29bc481b6914c244ed9ca194b1415d16 /common/domain/applicationdomaintype.h | |
parent | 17e7ee40c9185c0505883853345fd6024c675b1a (diff) | |
download | sink-bdb01c2c068df326f5a8328ed1492ab1bea388c5.tar.gz sink-bdb01c2c068df326f5a8328ed1492ab1bea388c5.zip |
Renamed Akonadi2 to Sink
(except for documentation).
Diffstat (limited to 'common/domain/applicationdomaintype.h')
-rw-r--r-- | common/domain/applicationdomaintype.h | 36 |
1 files changed, 18 insertions, 18 deletions
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) |