From ef972138204a76680c4a69c9f467d3e22b53e62a Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 11 Oct 2016 04:24:06 +0200 Subject: Define specialpurpose names --- common/domain/applicationdomaintype.h | 8 ++++++++ common/specialpurposepreprocessor.cpp | 1 + 2 files changed, 9 insertions(+) (limited to 'common') diff --git a/common/domain/applicationdomaintype.h b/common/domain/applicationdomaintype.h index e9f11ba..e581e07 100644 --- a/common/domain/applicationdomaintype.h +++ b/common/domain/applicationdomaintype.h @@ -338,6 +338,14 @@ namespace Mail { }; }; +namespace SpecialPurpose { +namespace Mail { + static constexpr const char *inbox = "inbox"; + static constexpr const char *drafts = "drafts"; + static constexpr const char *trash = "trash"; +}; +}; + /** * All types need to be registered here an MUST return a different name. * diff --git a/common/specialpurposepreprocessor.cpp b/common/specialpurposepreprocessor.cpp index 0985880..b9ad94a 100644 --- a/common/specialpurposepreprocessor.cpp +++ b/common/specialpurposepreprocessor.cpp @@ -13,6 +13,7 @@ static QHash specialPurposeFolders() //FIXME localize hash.insert("drafts", "Drafts"); hash.insert("trash", "Trash"); + hash.insert("inbox", "Inbox"); return hash; } -- cgit v1.2.3