Main Page Class Hierarchy Alphabetical List Compound List Examples

contenttransferencoding.h
1/***************************************************************************
2 copyright : (C) 2002-2008 by Stefano Barbato
3 email : stefano@codesink.org
4
5 $Id: contenttransferencoding.h,v 1.12 2008-10-07 11:06:25 tat Exp $
6 ***************************************************************************/
7#ifndef _MIMETIC_CONTENT_TRANSFER_ENCODING_H_
8#define _MIMETIC_CONTENT_TRANSFER_ENCODING_H_
9#include <string>
10#include <mimetic/strutils.h>
11#include <mimetic/rfc822/fieldvalue.h>
12
13 namespace mimetic
14{
15
16
17/// Content-Transfer-Encoding field value
18 struct ContentTransferEncoding: public FieldValue
19{
20 static const char label[];
21 static const char base64[];
22 static const char quoted_printable[];
23 static const char binary[];
24 static const char sevenbit[];
25 static const char eightbit[];
26
27 ContentTransferEncoding();
28 ContentTransferEncoding(const char*);
29 ContentTransferEncoding(const std::string&);
30 const istring& mechanism() const;
31 void mechanism(const std::string&);
32
33 void set(const std::string&);
34 std::string str() const;
35 protected:
36 FieldValue* clone() const;
37 private:
38 istring m_mechanism;
39};
40
41}
42
43#endif
44
mimetic
Definition body.h:18