Diffstat (limited to 'noncore/net/mail/libmailwrapper/mailwrapper.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/mailwrapper.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/net/mail/libmailwrapper/mailwrapper.cpp b/noncore/net/mail/libmailwrapper/mailwrapper.cpp index 9bf2fd3..eddc0b9 100644 --- a/noncore/net/mail/libmailwrapper/mailwrapper.cpp +++ b/noncore/net/mail/libmailwrapper/mailwrapper.cpp | |||
@@ -12,24 +12,25 @@ | |||
12 | 12 | ||
13 | #define UNDEFINED 64 | 13 | #define UNDEFINED 64 |
14 | #define MAXLINE 76 | 14 | #define MAXLINE 76 |
15 | #define UTF16MASK 0x03FFUL | 15 | #define UTF16MASK 0x03FFUL |
16 | #define UTF16SHIFT 10 | 16 | #define UTF16SHIFT 10 |
17 | #define UTF16BASE 0x10000UL | 17 | #define UTF16BASE 0x10000UL |
18 | #define UTF16HIGHSTART 0xD800UL | 18 | #define UTF16HIGHSTART 0xD800UL |
19 | #define UTF16HIGHEND 0xDBFFUL | 19 | #define UTF16HIGHEND 0xDBFFUL |
20 | #define UTF16LOSTART 0xDC00UL | 20 | #define UTF16LOSTART 0xDC00UL |
21 | #define UTF16LOEND 0xDFFFUL | 21 | #define UTF16LOEND 0xDFFFUL |
22 | 22 | ||
23 | 23 | ||
24 | using namespace Opie::Core; | ||
24 | Attachment::Attachment( DocLnk lnk ) | 25 | Attachment::Attachment( DocLnk lnk ) |
25 | { | 26 | { |
26 | doc = lnk; | 27 | doc = lnk; |
27 | size = QFileInfo( doc.file() ).size(); | 28 | size = QFileInfo( doc.file() ).size(); |
28 | } | 29 | } |
29 | 30 | ||
30 | Folder::Folder(const QString&tmp_name, const QString&sep ) | 31 | Folder::Folder(const QString&tmp_name, const QString&sep ) |
31 | { | 32 | { |
32 | name = tmp_name; | 33 | name = tmp_name; |
33 | nameDisplay = name; | 34 | nameDisplay = name; |
34 | separator = sep; | 35 | separator = sep; |
35 | prefix = ""; | 36 | prefix = ""; |
@@ -146,25 +147,25 @@ QString IMAPFolder::decodeFolderName( const QString &name ) | |||
146 | } | 147 | } |
147 | } | 148 | } |
148 | /* skip over trailing '-' in modified UTF-7 encoding */ | 149 | /* skip over trailing '-' in modified UTF-7 encoding */ |
149 | if (src[srcPtr] == '-') | 150 | if (src[srcPtr] == '-') |
150 | ++srcPtr; | 151 | ++srcPtr; |
151 | } | 152 | } |
152 | } | 153 | } |
153 | 154 | ||
154 | return QString::fromUtf8( dst.data() ); | 155 | return QString::fromUtf8( dst.data() ); |
155 | } | 156 | } |
156 | 157 | ||
157 | Mail::Mail() | 158 | Mail::Mail() |
158 | :Opie::ORefCount(),name(""), mail(""), to(""), cc(""), bcc(""), reply(""), subject(""), message("") | 159 | :Opie::Core::ORefCount(),name(""), mail(""), to(""), cc(""), bcc(""), reply(""), subject(""), message("") |
159 | { | 160 | { |
160 | } | 161 | } |
161 | 162 | ||
162 | MHFolder::MHFolder(const QString&disp_name,const QString&mbox) | 163 | MHFolder::MHFolder(const QString&disp_name,const QString&mbox) |
163 | : Folder( disp_name,"/" ) | 164 | : Folder( disp_name,"/" ) |
164 | { | 165 | { |
165 | separator = "/"; | 166 | separator = "/"; |
166 | name = mbox; | 167 | name = mbox; |
167 | if (!disp_name.startsWith("/") && disp_name.length()>0) | 168 | if (!disp_name.startsWith("/") && disp_name.length()>0) |
168 | name+="/"; | 169 | name+="/"; |
169 | name+=disp_name; | 170 | name+=disp_name; |
170 | if (disp_name.length()==0) { | 171 | if (disp_name.length()==0) { |