Main Page Class Hierarchy Alphabetical List Compound List Examples

header.h
1/***************************************************************************
2 copyright : (C) 2002-2008 by Stefano Barbato
3 email : stefano@codesink.org
4
5 $Id: header.h,v 1.12 2008-10-07 11:06:25 tat Exp $
6 ***************************************************************************/
7#ifndef _MIMETIC_HEADER_H_
8#define _MIMETIC_HEADER_H_
9#include <string>
10#include <algorithm>
11#include <mimetic/rfc822/header.h>
12#include <mimetic/mimeversion.h>
13#include <mimetic/contenttype.h>
14#include <mimetic/contentid.h>
15#include <mimetic/contenttransferencoding.h>
16#include <mimetic/contentdisposition.h>
17#include <mimetic/contentdescription.h>
18
19 namespace mimetic
20{
21
22/// MIME message header class
23 struct Header: public Rfc822Header
24{
25 const MimeVersion& mimeVersion() const;
26 MimeVersion& mimeVersion();
27 void mimeVersion(const MimeVersion&);
28
29 const ContentType& contentType() const;
30 ContentType& contentType();
31 void contentType(const ContentType&);
32
33 const ContentTransferEncoding& contentTransferEncoding() const;
34 ContentTransferEncoding& contentTransferEncoding();
35 void contentTransferEncoding(const ContentTransferEncoding&);
36
37 const ContentDisposition& contentDisposition() const;
38 ContentDisposition& contentDisposition();
39 void contentDisposition(const ContentDisposition&);
40
41 const ContentDescription& contentDescription() const;
42 ContentDescription& contentDescription();
43 void contentDescription(const ContentDescription&);
44
45 const ContentId& contentId() const;
46 ContentId& contentId();
47 void contentId(const ContentId&);
48};
49
50}
51
52#endif
mimetic::ContentType
Content-Type field value.
Definition contenttype.h:19
mimetic::Rfc822Header
RFC822 header class object.
Definition rfc822/header.h:34
mimetic
Definition body.h:18
mimetic::ContentDescription
Content-Description field value.
Definition contentdescription.h:17
mimetic::ContentDisposition
Content-Disposition field value.
Definition contentdisposition.h:21
mimetic::ContentId
Content-ID field value.
Definition contentid.h:19
mimetic::ContentTransferEncoding
Content-Transfer-Encoding field value.
Definition contenttransferencoding.h:19
mimetic::Header
MIME message header class.
Definition header.h:24
mimetic::MimeVersion
Mime-Version field value.
Definition mimeversion.h:21