diff options
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 { |