Main Page Class Hierarchy Alphabetical List Compound List Examples

contentdisposition.h
1/***************************************************************************
2 copyright : (C) 2002-2008 by Stefano Barbato
3 email : stefano@codesink.org
4
5 $Id: contentdisposition.h,v 1.12 2008-10-07 11:06:25 tat Exp $
6 ***************************************************************************/
7#ifndef _MIMETIC_CONTENT_DISPOSITION_H_
8#define _MIMETIC_CONTENT_DISPOSITION_H_
9#include <string>
10#include <iostream>
11#include <mimetic/fieldparam.h>
12#include <mimetic/rfc822/fieldvalue.h>
13
14 namespace mimetic
15{
16
17
18
19/// Content-Disposition field value
20 struct ContentDisposition: public FieldValue
21{
22 typedef FieldParam Param;
23 typedef FieldParamList ParamList;
24 public:
25 static const char label[];
26 ContentDisposition();
27 ContentDisposition(const char*);
28 ContentDisposition(const std::string&);
29
30 void type(const std::string&);
31 const istring& type() const;
32
33 const ParamList& paramList() const;
34 ParamList& paramList();
35
36 const std::string& param(const std::string&) const;
37 void param(const std::string&, const std::string&);
38
39 void set(const std::string&);
40 std::string str() const;
41
42 std::ostream& write(std::ostream& os, int fold = 0) const;
43 protected:
44 FieldValue* clone() const;
45 private:
46 istring m_type;
47 ParamList m_paramList;
48};
49
50}
51
52#endif
53
mimetic
Definition body.h:18
mimetic::FieldParam
Field param.
Definition fieldparam.h:19