author | conber <conber> | 2002-06-15 09:46:14 (UTC) |
---|---|---|
committer | conber <conber> | 2002-06-15 09:46:14 (UTC) |
commit | 7f2eef29708380844922f34f59ba4e9beefbf7c3 (patch) (unidiff) | |
tree | f57125fbaabddecc35d6677f1b9e48a4594165d5 /noncore/unsupported/mail2/libmail/miscfunctions.h | |
parent | 0acbdd392814589df303b6e50c79d9822e3db27a (diff) | |
download | opie-7f2eef29708380844922f34f59ba4e9beefbf7c3.zip opie-7f2eef29708380844922f34f59ba4e9beefbf7c3.tar.gz opie-7f2eef29708380844922f34f59ba4e9beefbf7c3.tar.bz2 |
initial checkin
Diffstat (limited to 'noncore/unsupported/mail2/libmail/miscfunctions.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/unsupported/mail2/libmail/miscfunctions.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/noncore/unsupported/mail2/libmail/miscfunctions.h b/noncore/unsupported/mail2/libmail/miscfunctions.h new file mode 100644 index 0000000..a13e1e3 --- a/dev/null +++ b/noncore/unsupported/mail2/libmail/miscfunctions.h | |||
@@ -0,0 +1,27 @@ | |||
1 | #ifndef MISCFUNCTIONS_H | ||
2 | #define MISCFUNCTIONS_H | ||
3 | |||
4 | #include <qobject.h> | ||
5 | |||
6 | class MiscFunctions : public QObject | ||
7 | { | ||
8 | Q_OBJECT | ||
9 | |||
10 | public: | ||
11 | static QString encodeQPrintable(const QString &src); | ||
12 | static QString decodeQPrintable(const QString &src); | ||
13 | static QString encodeBase64(const QString &src); | ||
14 | static QString decodeBase64(const QString &src); | ||
15 | static QString uniqueString(); | ||
16 | static QString rfcDate(); | ||
17 | static QString smtpAuthCramMd5(const QString &data, const QString &key); | ||
18 | |||
19 | protected: | ||
20 | MiscFunctions() : QObject() { } | ||
21 | |||
22 | static void encodeBase64Base(char *src, QString *dest, int len); | ||
23 | static int decodeBase64Base(char *src, char *bufOut); | ||
24 | |||
25 | }; | ||
26 | |||
27 | #endif | ||