diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-11-11 13:06:27 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-11-11 15:26:32 +0100 |
commit | 4e6b3ce7d1ce97c3e1fb9ae53c5b2be1787acc6b (patch) | |
tree | 08d80bbe1cc890f949110a760cba18e8f2b5249b /examples/imapresource/imapserverproxy.h | |
parent | e5bec3abfe2f2463244d65386dbd1088bf56f5f3 (diff) | |
download | sink-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.h | 16 |
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 | ||
60 | struct Folder { | 60 | struct 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 | ||
79 | struct SelectResult { | 93 | struct SelectResult { |