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/facade.h | |
parent | 17e7ee40c9185c0505883853345fd6024c675b1a (diff) | |
download | sink-bdb01c2c068df326f5a8328ed1492ab1bea388c5.tar.gz sink-bdb01c2c068df326f5a8328ed1492ab1bea388c5.zip |
Renamed Akonadi2 to Sink
(except for documentation).
Diffstat (limited to 'common/facade.h')
-rw-r--r-- | common/facade.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/common/facade.h b/common/facade.h index de67e05..c25464f 100644 --- a/common/facade.h +++ b/common/facade.h | |||
@@ -29,7 +29,7 @@ | |||
29 | #include "domaintypeadaptorfactoryinterface.h" | 29 | #include "domaintypeadaptorfactoryinterface.h" |
30 | #include "storage.h" | 30 | #include "storage.h" |
31 | 31 | ||
32 | namespace Akonadi2 { | 32 | namespace Sink { |
33 | 33 | ||
34 | /** | 34 | /** |
35 | * Default facade implementation for resources that are implemented in a separate process using the ResourceAccess class. | 35 | * Default facade implementation for resources that are implemented in a separate process using the ResourceAccess class. |
@@ -43,7 +43,7 @@ namespace Akonadi2 { | |||
43 | * Additionally a resource only has to provide a synchronizer plugin to execute the synchronization | 43 | * Additionally a resource only has to provide a synchronizer plugin to execute the synchronization |
44 | */ | 44 | */ |
45 | template <typename DomainType> | 45 | template <typename DomainType> |
46 | class GenericFacade: public Akonadi2::StoreFacade<DomainType> | 46 | class GenericFacade: public Sink::StoreFacade<DomainType> |
47 | { | 47 | { |
48 | public: | 48 | public: |
49 | /** | 49 | /** |
@@ -52,18 +52,18 @@ public: | |||
52 | * @param resourceIdentifier is the identifier of the resource instance | 52 | * @param resourceIdentifier is the identifier of the resource instance |
53 | * @param adaptorFactory is the adaptor factory used to generate the mappings from domain to resource types and vice versa | 53 | * @param adaptorFactory is the adaptor factory used to generate the mappings from domain to resource types and vice versa |
54 | */ | 54 | */ |
55 | GenericFacade(const QByteArray &resourceIdentifier, const DomainTypeAdaptorFactoryInterface::Ptr &adaptorFactory = DomainTypeAdaptorFactoryInterface::Ptr(), const QSharedPointer<Akonadi2::ResourceAccessInterface> resourceAccess = QSharedPointer<Akonadi2::ResourceAccessInterface>()); | 55 | GenericFacade(const QByteArray &resourceIdentifier, const DomainTypeAdaptorFactoryInterface::Ptr &adaptorFactory = DomainTypeAdaptorFactoryInterface::Ptr(), const QSharedPointer<Sink::ResourceAccessInterface> resourceAccess = QSharedPointer<Sink::ResourceAccessInterface>()); |
56 | ~GenericFacade(); | 56 | ~GenericFacade(); |
57 | 57 | ||
58 | static QByteArray bufferTypeForDomainType(); | 58 | static QByteArray bufferTypeForDomainType(); |
59 | KAsync::Job<void> create(const DomainType &domainObject) Q_DECL_OVERRIDE; | 59 | KAsync::Job<void> create(const DomainType &domainObject) Q_DECL_OVERRIDE; |
60 | KAsync::Job<void> modify(const DomainType &domainObject) Q_DECL_OVERRIDE; | 60 | KAsync::Job<void> modify(const DomainType &domainObject) Q_DECL_OVERRIDE; |
61 | KAsync::Job<void> remove(const DomainType &domainObject) Q_DECL_OVERRIDE; | 61 | KAsync::Job<void> remove(const DomainType &domainObject) Q_DECL_OVERRIDE; |
62 | QPair<KAsync::Job<void>, typename ResultEmitter<typename DomainType::Ptr>::Ptr> load(const Akonadi2::Query &query) Q_DECL_OVERRIDE; | 62 | QPair<KAsync::Job<void>, typename ResultEmitter<typename DomainType::Ptr>::Ptr> load(const Sink::Query &query) Q_DECL_OVERRIDE; |
63 | 63 | ||
64 | protected: | 64 | protected: |
65 | //TODO use one resource access instance per application & per resource | 65 | //TODO use one resource access instance per application & per resource |
66 | QSharedPointer<Akonadi2::ResourceAccessInterface> mResourceAccess; | 66 | QSharedPointer<Sink::ResourceAccessInterface> mResourceAccess; |
67 | DomainTypeAdaptorFactoryInterface::Ptr mDomainTypeAdaptorFactory; | 67 | DomainTypeAdaptorFactoryInterface::Ptr mDomainTypeAdaptorFactory; |
68 | QByteArray mResourceInstanceIdentifier; | 68 | QByteArray mResourceInstanceIdentifier; |
69 | }; | 69 | }; |