diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-06-26 14:47:15 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-06-26 14:47:15 +0200 |
commit | b86ffa5a6e7884fb7a25fa84358de3caaeff11e8 (patch) | |
tree | e27f9b024cc6115802b417c04f6a81f927c7c75a /common | |
parent | 874b0d2be32e2edffedd59ab17bf821456757e29 (diff) | |
download | sink-b86ffa5a6e7884fb7a25fa84358de3caaeff11e8.tar.gz sink-b86ffa5a6e7884fb7a25fa84358de3caaeff11e8.zip |
Dummyresource mailtest
Diffstat (limited to 'common')
-rw-r--r-- | common/domain/applicationdomaintype.cpp | 12 | ||||
-rw-r--r-- | common/domain/applicationdomaintype.h | 3 |
2 files changed, 15 insertions, 0 deletions
diff --git a/common/domain/applicationdomaintype.cpp b/common/domain/applicationdomaintype.cpp index d1faf25..44eeb13 100644 --- a/common/domain/applicationdomaintype.cpp +++ b/common/domain/applicationdomaintype.cpp | |||
@@ -247,6 +247,18 @@ Identity::~Identity() | |||
247 | 247 | ||
248 | } | 248 | } |
249 | 249 | ||
250 | namespace DummyResource { | ||
251 | SinkResource create(const QByteArray &account) | ||
252 | { | ||
253 | auto &&resource = ApplicationDomainType::createEntity<SinkResource>(); | ||
254 | resource.setProperty("type", "org.kde.dummy"); | ||
255 | resource.setProperty("account", account); | ||
256 | resource.setProperty("capabilities", QVariant::fromValue(QByteArrayList() << ResourceCapabilities::Mail::storage << "-folder.rename")); | ||
257 | // resource.setProperty("capabilities", QVariant::fromValue(QByteArrayList() << ResourceCapabilities::Mail::storage << ResourceCapabilities::Mail::drafts << "-folder.rename" << ResourceCapabilities::Mail::trash)); | ||
258 | return resource; | ||
259 | } | ||
260 | } | ||
261 | |||
250 | namespace MaildirResource { | 262 | namespace MaildirResource { |
251 | SinkResource create(const QByteArray &account) | 263 | SinkResource create(const QByteArray &account) |
252 | { | 264 | { |
diff --git a/common/domain/applicationdomaintype.h b/common/domain/applicationdomaintype.h index 928ea58..849c3e2 100644 --- a/common/domain/applicationdomaintype.h +++ b/common/domain/applicationdomaintype.h | |||
@@ -244,6 +244,9 @@ struct SINK_EXPORT Identity : public ApplicationDomainType { | |||
244 | virtual ~Identity(); | 244 | virtual ~Identity(); |
245 | }; | 245 | }; |
246 | 246 | ||
247 | namespace DummyResource { | ||
248 | SinkResource SINK_EXPORT create(const QByteArray &account); | ||
249 | }; | ||
247 | namespace MaildirResource { | 250 | namespace MaildirResource { |
248 | SinkResource SINK_EXPORT create(const QByteArray &account); | 251 | SinkResource SINK_EXPORT create(const QByteArray &account); |
249 | }; | 252 | }; |