/[debian]/mimetic/branches/upstream/current/mimetic/contenttransferencoding.cxx
ViewVC logotype

Contents of /mimetic/branches/upstream/current/mimetic/contenttransferencoding.cxx

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2647 - (show annotations)
Sat Sep 10 15:09:38 2011 UTC (10 years ago) by gregoa
File size: 1514 byte(s)
[svn-upgrade] new version mimetic (0.9.7)
1 /***************************************************************************
2 copyright : (C) 2002-2008 by Stefano Barbato
3 email : stefano@codesink.org
4
5 $Id: contenttransferencoding.cxx,v 1.3 2008-10-07 11:06:25 tat Exp $
6 ***************************************************************************/
7 #include <mimetic/contenttransferencoding.h>
8
9 namespace mimetic
10 {
11 using namespace std;
12
13 const char ContentTransferEncoding::label[] = "Content-Transfer-Encoding";
14 const char ContentTransferEncoding::base64[] = "base64";
15 const char ContentTransferEncoding::quoted_printable[] = "quoted-printable";
16 const char ContentTransferEncoding::binary[] = "binary";
17 const char ContentTransferEncoding::sevenbit[] = "7bit";
18 const char ContentTransferEncoding::eightbit[] = "8bit";
19
20 ContentTransferEncoding::ContentTransferEncoding()
21 {
22 }
23
24 ContentTransferEncoding::ContentTransferEncoding(const char* cstr)
25 : m_mechanism(cstr)
26 {
27 }
28
29
30 ContentTransferEncoding::ContentTransferEncoding(const string& mechanism)
31 : m_mechanism(mechanism)
32 {
33 }
34
35 const istring& ContentTransferEncoding::mechanism() const
36 {
37 return m_mechanism;
38 }
39
40 void ContentTransferEncoding::mechanism(const string& mechanism)
41 {
42 m_mechanism = mechanism;
43 }
44
45 void ContentTransferEncoding::set(const string& val)
46 {
47 mechanism(val);
48 }
49
50 string ContentTransferEncoding::str() const
51 {
52 return mechanism();
53 }
54
55 FieldValue* ContentTransferEncoding::clone() const
56 {
57 return new ContentTransferEncoding(*this);
58 }
59
60 }
61

  ViewVC Help
Powered by ViewVC 1.1.26