diff options
-rw-r--r-- | common/domain/applicationdomaintype.cpp | 34 | ||||
-rw-r--r-- | common/domain/applicationdomaintype.h | 8 | ||||
-rw-r--r-- | common/resourcefacade.cpp | 2 |
3 files changed, 41 insertions, 3 deletions
diff --git a/common/domain/applicationdomaintype.cpp b/common/domain/applicationdomaintype.cpp index 462585e..0842fbe 100644 --- a/common/domain/applicationdomaintype.cpp +++ b/common/domain/applicationdomaintype.cpp | |||
@@ -136,11 +136,45 @@ Folder::~Folder() | |||
136 | 136 | ||
137 | } | 137 | } |
138 | 138 | ||
139 | SinkResource::SinkResource(const QByteArray &identifier) | ||
140 | : ApplicationDomainType("", identifier, 0, QSharedPointer<BufferAdaptor>(new MemoryBufferAdaptor())) | ||
141 | { | ||
142 | |||
143 | } | ||
144 | |||
145 | SinkResource::SinkResource(const QByteArray &, const QByteArray &identifier, qint64 revision, const QSharedPointer<BufferAdaptor> &adaptor) | ||
146 | : ApplicationDomainType("", identifier, 0, adaptor) | ||
147 | { | ||
148 | } | ||
149 | |||
150 | SinkResource::SinkResource() | ||
151 | : ApplicationDomainType() | ||
152 | { | ||
153 | |||
154 | } | ||
155 | |||
139 | SinkResource::~SinkResource() | 156 | SinkResource::~SinkResource() |
140 | { | 157 | { |
141 | 158 | ||
142 | } | 159 | } |
143 | 160 | ||
161 | SinkAccount::SinkAccount(const QByteArray &identifier) | ||
162 | : ApplicationDomainType("", identifier, 0, QSharedPointer<BufferAdaptor>(new MemoryBufferAdaptor())) | ||
163 | { | ||
164 | |||
165 | } | ||
166 | |||
167 | SinkAccount::SinkAccount(const QByteArray &, const QByteArray &identifier, qint64 revision, const QSharedPointer<BufferAdaptor> &adaptor) | ||
168 | : ApplicationDomainType("", identifier, 0, adaptor) | ||
169 | { | ||
170 | } | ||
171 | |||
172 | SinkAccount::SinkAccount() | ||
173 | : ApplicationDomainType() | ||
174 | { | ||
175 | |||
176 | } | ||
177 | |||
144 | SinkAccount::~SinkAccount() | 178 | SinkAccount::~SinkAccount() |
145 | { | 179 | { |
146 | 180 | ||
diff --git a/common/domain/applicationdomaintype.h b/common/domain/applicationdomaintype.h index d17ad75..7588252 100644 --- a/common/domain/applicationdomaintype.h +++ b/common/domain/applicationdomaintype.h | |||
@@ -141,13 +141,17 @@ struct SINK_EXPORT Folder : public Entity { | |||
141 | */ | 141 | */ |
142 | struct SINK_EXPORT SinkResource : public ApplicationDomainType { | 142 | struct SINK_EXPORT SinkResource : public ApplicationDomainType { |
143 | typedef QSharedPointer<SinkResource> Ptr; | 143 | typedef QSharedPointer<SinkResource> Ptr; |
144 | using ApplicationDomainType::ApplicationDomainType; | 144 | SinkResource(const QByteArray &resourceInstanceIdentifier, const QByteArray &identifier, qint64 revision, const QSharedPointer<BufferAdaptor> &adaptor); |
145 | SinkResource(const QByteArray &identifier); | ||
146 | SinkResource(); | ||
145 | virtual ~SinkResource(); | 147 | virtual ~SinkResource(); |
146 | }; | 148 | }; |
147 | 149 | ||
148 | struct SINK_EXPORT SinkAccount : public ApplicationDomainType { | 150 | struct SINK_EXPORT SinkAccount : public ApplicationDomainType { |
149 | typedef QSharedPointer<SinkAccount> Ptr; | 151 | typedef QSharedPointer<SinkAccount> Ptr; |
150 | using ApplicationDomainType::ApplicationDomainType; | 152 | SinkAccount(const QByteArray &resourceInstanceIdentifier, const QByteArray &identifier, qint64 revision, const QSharedPointer<BufferAdaptor> &adaptor); |
153 | SinkAccount(const QByteArray &identifier); | ||
154 | SinkAccount(); | ||
151 | virtual ~SinkAccount(); | 155 | virtual ~SinkAccount(); |
152 | }; | 156 | }; |
153 | 157 | ||
diff --git a/common/resourcefacade.cpp b/common/resourcefacade.cpp index 0cda82c..aa2f84a 100644 --- a/common/resourcefacade.cpp +++ b/common/resourcefacade.cpp | |||
@@ -110,7 +110,7 @@ QPair<KAsync::Job<void>, typename Sink::ResultEmitter<Sink::ApplicationDomain::S | |||
110 | continue; | 110 | continue; |
111 | } | 111 | } |
112 | 112 | ||
113 | auto resource = Sink::ApplicationDomain::SinkResource::Ptr::create("", res, 0, QSharedPointer<Sink::ApplicationDomain::MemoryBufferAdaptor>::create()); | 113 | auto resource = Sink::ApplicationDomain::SinkResource::Ptr::create(res); |
114 | resource->setProperty("type", type); | 114 | resource->setProperty("type", type); |
115 | 115 | ||
116 | const auto configurationValues = ResourceConfig::getConfiguration(res); | 116 | const auto configurationValues = ResourceConfig::getConfiguration(res); |