summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-10-11 04:24:06 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-10-11 04:24:06 +0200
commitef972138204a76680c4a69c9f467d3e22b53e62a (patch)
treef3ec18dabc0db6b3f7037ad83e0df302b2c6435b /common
parent43d2b984523cb17f7b7886c3c911377beae7b504 (diff)
downloadsink-ef972138204a76680c4a69c9f467d3e22b53e62a.tar.gz
sink-ef972138204a76680c4a69c9f467d3e22b53e62a.zip
Define specialpurpose names
Diffstat (limited to 'common')
-rw-r--r--common/domain/applicationdomaintype.h8
-rw-r--r--common/specialpurposepreprocessor.cpp1
2 files changed, 9 insertions, 0 deletions
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 {
338}; 338};
339}; 339};
340 340
341namespace SpecialPurpose {
342namespace Mail {
343 static constexpr const char *inbox = "inbox";
344 static constexpr const char *drafts = "drafts";
345 static constexpr const char *trash = "trash";
346};
347};
348
341/** 349/**
342 * All types need to be registered here an MUST return a different name. 350 * All types need to be registered here an MUST return a different name.
343 * 351 *
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<QByteArray, QString> specialPurposeFolders()
13 //FIXME localize 13 //FIXME localize
14 hash.insert("drafts", "Drafts"); 14 hash.insert("drafts", "Drafts");
15 hash.insert("trash", "Trash"); 15 hash.insert("trash", "Trash");
16 hash.insert("inbox", "Inbox");
16 return hash; 17 return hash;
17} 18}
18 19