~ubuntu-branches/ubuntu/natty/mimetic/natty

« back to all changes in this revision

Viewing changes to mimetic/contenttransferencoding.cxx

  • Committer: Bazaar Package Importer
  • Author(s): gregor herrmann
  • Date: 2006-06-16 13:16:07 UTC
  • Revision ID: james.westby@ubuntu.com-20060616131607-245mqjypkjuahq6b
Tags: upstream-0.9.1
ImportĀ upstreamĀ versionĀ 0.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
    copyright            : (C) 2002-2005 by Stefano Barbato
 
3
    email                : stefano@codesink.org
 
4
 
 
5
    $Id: contenttransferencoding.cxx,v 1.2 2005/02/23 10:26:14 tat Exp $
 
6
 ***************************************************************************/
 
7
 
 
8
/***************************************************************************
 
9
 *                                                                         *
 
10
 *   This program is free software; you can redistribute it and/or modify  *
 
11
 *   it under the terms of the GNU General Public License as published by  *
 
12
 *   the Free Software Foundation; either version 2 of the License, or     *
 
13
 *   (at your option) any later version.                                   *
 
14
 *                                                                         *
 
15
 ***************************************************************************/
 
16
#include <mimetic/contenttransferencoding.h>
 
17
 
 
18
namespace mimetic
 
19
{
 
20
using namespace std;
 
21
 
 
22
const char ContentTransferEncoding::label[] = "Content-Transfer-Encoding";
 
23
 
 
24
ContentTransferEncoding::ContentTransferEncoding()
 
25
{
 
26
}
 
27
 
 
28
ContentTransferEncoding::ContentTransferEncoding(const char* cstr)
 
29
: m_mechanism(cstr)
 
30
{
 
31
}
 
32
 
 
33
 
 
34
ContentTransferEncoding::ContentTransferEncoding(const string& mechanism)
 
35
: m_mechanism(mechanism)
 
36
{
 
37
}
 
38
 
 
39
const istring& ContentTransferEncoding::mechanism() const
 
40
{    
 
41
    return m_mechanism;    
 
42
}
 
43
 
 
44
void ContentTransferEncoding::mechanism(const string& mechanism)
 
45
{    
 
46
    m_mechanism = mechanism;
 
47
}
 
48
 
 
49
void ContentTransferEncoding::set(const string& val)
 
50
{
 
51
    mechanism(val);
 
52
}
 
53
 
 
54
string ContentTransferEncoding::str() const
 
55
{
 
56
    return mechanism();
 
57
}
 
58
 
 
59
FieldValue* ContentTransferEncoding::clone() const
 
60
{
 
61
    return new ContentTransferEncoding(*this);
 
62
}
 
63
 
 
64
}
 
65