1
/***************************************************************************
2
copyright : (C) 2002-2005 by Stefano Barbato
3
email : stefano@codesink.org
5
$Id: mimeversion.h,v 1.11 2005/02/23 10:26:14 tat Exp $
6
***************************************************************************/
8
/***************************************************************************
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. *
15
***************************************************************************/
16
#ifndef _MIMETIC_MIMEVERSION_H_
17
#define _MIMETIC_MIMEVERSION_H_
20
#include <mimetic/rfc822/fieldvalue.h>
21
#include <mimetic/version.h>
25
// major & minor are macro defined in /usr/include/sys/sysmacros.h (linux)
26
// so we'll better use maj & min instead
28
/// Mime-Version field value
29
struct MimeVersion: public Version, public FieldValue
31
static const char label[];
34
MimeVersion(const std::string&);
35
MimeVersion(ver_type, ver_type);
37
void set(const std::string&);
38
std::string str() const;
40
FieldValue* clone() const;