/[debian]/mimetic/branches/upstream/current/mimetic/contentdisposition.h
ViewVC logotype

Contents of /mimetic/branches/upstream/current/mimetic/contentdisposition.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 128 - (show annotations)
Sat Feb 25 16:49:20 2006 UTC (15 years, 5 months ago) by gregoa
File MIME type: text/plain
File size: 1955 byte(s)
[svn-inject] Installing original source of mimetic
1 /***************************************************************************
2 copyright : (C) 2002-2005 by Stefano Barbato
3 email : stefano@codesink.org
4
5 $Id: contentdisposition.h,v 1.11 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 #ifndef _MIMETIC_CONTENT_DISPOSITION_H_
17 #define _MIMETIC_CONTENT_DISPOSITION_H_
18 #include <string>
19 #include <iostream>
20 #include <mimetic/fieldparam.h>
21 #include <mimetic/rfc822/fieldvalue.h>
22
23 namespace mimetic
24 {
25
26
27
28 /// Content-Disposition field value
29 struct ContentDisposition: public FieldValue
30 {
31 typedef FieldParam Param;
32 typedef FieldParamList ParamList;
33 public:
34 static const char label[];
35 ContentDisposition();
36 ContentDisposition(const char*);
37 ContentDisposition(const std::string&);
38
39 void type(const std::string&);
40 const istring& type() const;
41
42 const ParamList& paramList() const;
43 ParamList& paramList();
44
45 const std::string& param(const std::string&) const;
46 void param(const std::string&, const std::string&);
47
48 void set(const std::string&);
49 std::string str() const;
50
51 std::ostream& write(std::ostream& os, int fold = 0) const;
52 protected:
53 FieldValue* clone() const;
54 private:
55 istring m_type;
56 ParamList m_paramList;
57 };
58
59 }
60
61 #endif
62

  ViewVC Help
Powered by ViewVC 1.1.26