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

« back to all changes in this revision

Viewing changes to mimetic/mimeversion.h

  • 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: mimeversion.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_MIMEVERSION_H_
 
17
#define _MIMETIC_MIMEVERSION_H_
 
18
#include <string>
 
19
#include <iostream>
 
20
#include <mimetic/rfc822/fieldvalue.h>
 
21
#include <mimetic/version.h>
 
22
namespace mimetic
 
23
{
 
24
 
 
25
// major & minor are macro defined in /usr/include/sys/sysmacros.h (linux)
 
26
// so we'll better use maj & min instead
 
27
 
 
28
/// Mime-Version field value
 
29
struct MimeVersion: public Version, public FieldValue
 
30
{
 
31
    static const char label[];
 
32
    
 
33
    MimeVersion();
 
34
    MimeVersion(const std::string&);
 
35
    MimeVersion(ver_type, ver_type);
 
36
 
 
37
    void set(const std::string&);
 
38
    std::string str() const;
 
39
protected:
 
40
    FieldValue* clone() const;
 
41
};
 
42
 
 
43
}
 
44
#endif