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 | ||