diff options
Diffstat (limited to 'common/domain/applicationdomaintype.cpp')
-rw-r--r-- | common/domain/applicationdomaintype.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/common/domain/applicationdomaintype.cpp b/common/domain/applicationdomaintype.cpp index 7549a31..73143e8 100644 --- a/common/domain/applicationdomaintype.cpp +++ b/common/domain/applicationdomaintype.cpp | |||
@@ -186,6 +186,28 @@ SinkAccount::~SinkAccount() | |||
186 | 186 | ||
187 | } | 187 | } |
188 | 188 | ||
189 | Identity::Identity(const QByteArray &identifier) | ||
190 | : ApplicationDomainType("", identifier, 0, QSharedPointer<BufferAdaptor>(new MemoryBufferAdaptor())) | ||
191 | { | ||
192 | |||
193 | } | ||
194 | |||
195 | Identity::Identity(const QByteArray &, const QByteArray &identifier, qint64 revision, const QSharedPointer<BufferAdaptor> &adaptor) | ||
196 | : ApplicationDomainType("", identifier, 0, adaptor) | ||
197 | { | ||
198 | } | ||
199 | |||
200 | Identity::Identity() | ||
201 | : ApplicationDomainType() | ||
202 | { | ||
203 | |||
204 | } | ||
205 | |||
206 | Identity::~Identity() | ||
207 | { | ||
208 | |||
209 | } | ||
210 | |||
189 | template<> | 211 | template<> |
190 | QByteArray getTypeName<Event>() | 212 | QByteArray getTypeName<Event>() |
191 | { | 213 | { |
@@ -211,6 +233,12 @@ QByteArray getTypeName<SinkAccount>() | |||
211 | } | 233 | } |
212 | 234 | ||
213 | template<> | 235 | template<> |
236 | QByteArray getTypeName<Identity>() | ||
237 | { | ||
238 | return "identity"; | ||
239 | } | ||
240 | |||
241 | template<> | ||
214 | QByteArray getTypeName<Mail>() | 242 | QByteArray getTypeName<Mail>() |
215 | { | 243 | { |
216 | return "mail"; | 244 | return "mail"; |