MIME.h

00001 // $Id: MIME.h 21 2010-09-05 04:18:17Z cschwarz1 $
00002 
00003 #ifndef BASE_MIME_H
00004 #define BASE_MIME_H
00005 
00006 #include "String.h"
00007 
00008 namespace base {
00010 
00014     class PPBASE_EXPORT MIME {
00015     public:
00017 
00021         static String decodeBase64(const String &in);
00022 
00024 
00028         static void decodeBase64(const String &in, String &out);
00029 
00031 
00038         static String encodeBase64(const char *str, size_t len, size_t linelen = 0, const char *eoln = NULL);
00039 
00041 
00047         static String encodeBase64(const String &str, size_t linelen = 0, const char *eoln = NULL);
00048 
00050 
00056         static void encodeBase64(const String &in, String &out, size_t linelen = 0, const char *eoln = NULL);
00057 
00059 
00064         static String encodeEMailHeader(const String &header, const String &charset);
00065 
00067 
00071         static String getEMailAddress(const String &s);
00072     };
00073 }
00074 
00075 #endif