00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef _MIMETIC_CONTENT_TRANSFER_ENCODING_H_
00017 #define _MIMETIC_CONTENT_TRANSFER_ENCODING_H_
00018 #include <string>
00019 #include <mimetic/strutils.h>
00020 #include <mimetic/rfc822/fieldvalue.h>
00021
00022 namespace mimetic
00023 {
00024
00025
00026
00027 struct ContentTransferEncoding: public FieldValue
00028 {
00029 static const char label[];
00030 ContentTransferEncoding();
00031 ContentTransferEncoding(const char*);
00032 ContentTransferEncoding(const std::string&);
00033 const istring& mechanism() const;
00034 void mechanism(const std::string&);
00035
00036 void set(const std::string&);
00037 std::string str() const;
00038 protected:
00039 FieldValue* clone() const;
00040 private:
00041 istring m_mechanism;
00042 };
00043
00044 }
00045
00046 #endif
00047