From 456b850448bc306e9e1608fd1707ab9ceeb08c1e Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 15 Jun 2016 18:43:05 +0200 Subject: Move to trash --- common/domain/applicationdomaintype.cpp | 2 +- common/domain/mail.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'common') diff --git a/common/domain/applicationdomaintype.cpp b/common/domain/applicationdomaintype.cpp index 4db2e3b..df63c35 100644 --- a/common/domain/applicationdomaintype.cpp +++ b/common/domain/applicationdomaintype.cpp @@ -275,7 +275,7 @@ namespace ImapResource { auto &&resource = ApplicationDomainType::createEntity(); resource.setProperty("type", "org.kde.imap"); resource.setProperty("account", account); - resource.setProperty("capabilities", QVariant::fromValue(QByteArrayList() << ResourceCapabilities::Mail::storage << ResourceCapabilities::Mail::drafts << ResourceCapabilities::Mail::folderhierarchy)); + resource.setProperty("capabilities", QVariant::fromValue(QByteArrayList() << ResourceCapabilities::Mail::storage << ResourceCapabilities::Mail::drafts << ResourceCapabilities::Mail::folderhierarchy << ResourceCapabilities::Mail::trash)); return resource; } } diff --git a/common/domain/mail.cpp b/common/domain/mail.cpp index 706e410..dd4eca8 100644 --- a/common/domain/mail.cpp +++ b/common/domain/mail.cpp @@ -85,6 +85,7 @@ QSharedPointer::Buffer> > TypeImplem propertyMapper->addMapping(&Buffer::folder); propertyMapper->addMapping(&Buffer::mimeMessage); propertyMapper->addMapping(&Buffer::draft); + propertyMapper->addMapping(&Buffer::trash); return propertyMapper; } @@ -102,5 +103,6 @@ QSharedPointer::BufferBuilder> > Ty propertyMapper->addMapping(&BufferBuilder::add_folder); propertyMapper->addMapping(&BufferBuilder::add_mimeMessage); propertyMapper->addMapping(&BufferBuilder::add_draft); + propertyMapper->addMapping(&BufferBuilder::add_trash); return propertyMapper; } -- cgit v1.2.3