tdeioslave/imap4

rfcdecoder.h
1#ifndef RFCDECODER_H
2#define RFCDECODER_H
3/**********************************************************************
4 *
5 * rfcdecoder.h - handler for various rfc/mime encodings
6 * Copyright (C) 2000 s.carstens@gmx.de
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 *
22 * Send comments and bug fixes to s.carstens@gmx.de
23 *
24 *********************************************************************/
25
26#include <tqstring.h>
27
28class TQTextCodec;
29
37{
38
39public:
40
43 static TQString fromIMAP (const TQString & src);
46 static TQString toIMAP (const TQString & inSrc);
48 static TQString quoteIMAP (const TQString & src);
49
53 static TQString decodeQuoting(const TQString &aStr);
54
59 static TQTextCodec *codecForName (const TQString &);
60
61 // decoder for RFC2047 and RFC1522
63 static const TQString decodeRFC2047String (const TQString & _str,
64 TQString & charset,
65 TQString & language);
67 static const TQString decodeRFC2047String (const TQString & _str,
68 TQString & charset);
70 static const TQString decodeRFC2047String (const TQString & _str);
71
72 // encoder for RFC2047 and RFC1522
74 static const TQString encodeRFC2047String (const TQString & _str,
75 TQString & charset,
76 TQString & language);
78 static const TQString encodeRFC2047String (const TQString & _str,
79 TQString & charset);
81 static const TQString encodeRFC2047String (const TQString & _str);
82
84 static const TQString encodeRFC2231String (const TQString & _str);
86 static const TQString decodeRFC2231String (const TQString & _str);
87};
88
89#endif
handler for various rfc/mime encodings
Definition: rfcdecoder.h:37
static const TQString decodeRFC2047String(const TQString &_str, TQString &charset, TQString &language)
decode a RFC2047 String
Definition: rfcdecoder.cpp:337
static const TQString encodeRFC2231String(const TQString &_str)
encode a RFC2231 String
Definition: rfcdecoder.cpp:575
static TQString decodeQuoting(const TQString &aStr)
remove \ from a string
Definition: rfcdecoder.cpp:295
static TQString toIMAP(const TQString &inSrc)
Convert Unicode path to modified UTF-7 IMAP mailbox.
Definition: rfcdecoder.cpp:175
static const TQString encodeRFC2047String(const TQString &_str, TQString &charset)
encode a RFC2047 String
static TQTextCodec * codecForName(const TQString &)
fetch a codec by name
Definition: rfcdecoder.cpp:309
static TQString quoteIMAP(const TQString &src)
replace " with \" and \ with \\ " and \ characters
Definition: rfcdecoder.cpp:158
static const TQString decodeRFC2231String(const TQString &_str)
decode a RFC2231 String
Definition: rfcdecoder.cpp:629
static TQString fromIMAP(const TQString &src)
Convert an IMAP mailbox to a Unicode path.
Definition: rfcdecoder.cpp:55
static const TQString encodeRFC2047String(const TQString &_str, TQString &charset, TQString &language)
encode a RFC2047 String