summaryrefslogtreecommitdiffstats
path: root/examples/imapresource/imapserverproxy.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-11-11 13:06:27 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-11-11 15:26:32 +0100
commit4e6b3ce7d1ce97c3e1fb9ae53c5b2be1787acc6b (patch)
tree08d80bbe1cc890f949110a760cba18e8f2b5249b /examples/imapresource/imapserverproxy.h
parente5bec3abfe2f2463244d65386dbd1088bf56f5f3 (diff)
downloadsink-4e6b3ce7d1ce97c3e1fb9ae53c5b2be1787acc6b.tar.gz
sink-4e6b3ce7d1ce97c3e1fb9ae53c5b2be1787acc6b.zip
Prepared new query based synchronization API
Diffstat (limited to 'examples/imapresource/imapserverproxy.h')
-rw-r--r--examples/imapresource/imapserverproxy.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/examples/imapresource/imapserverproxy.h b/examples/imapresource/imapserverproxy.h
index 8b39f23..6e6626e 100644
--- a/examples/imapresource/imapserverproxy.h
+++ b/examples/imapresource/imapserverproxy.h
@@ -58,6 +58,20 @@ struct Message {
58}; 58};
59 59
60struct Folder { 60struct Folder {
61 Folder() = default;
62 Folder(QList<QString> pathParts_, const QString &path_, const QChar &separator_, bool noselect_)
63 : pathParts(pathParts_),
64 path(path_),
65 separator(separator_),
66 noselect(noselect_)
67 {
68 }
69
70 Folder(const QString &path_)
71 : path(path_)
72 {
73 }
74
61 QString normalizedPath() const 75 QString normalizedPath() const
62 { 76 {
63 return pathParts.join('/'); 77 return pathParts.join('/');
@@ -73,7 +87,7 @@ struct Folder {
73 QList<QString> pathParts; 87 QList<QString> pathParts;
74 QString path; 88 QString path;
75 QChar separator; 89 QChar separator;
76 bool noselect; 90 bool noselect = false;
77}; 91};
78 92
79struct SelectResult { 93struct SelectResult {