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

Contents of /mimetic/branches/upstream/current/mimetic/contentid.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: 1548 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: contentid.h,v 1.10 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_CONTENTID_H_
17 #define _MIMETIC_CONTENTID_H_
18 #include <string>
19 #include <mimetic/utils.h>
20 #include <mimetic/os/utils.h>
21 #include <mimetic/rfc822/fieldvalue.h>
22
23 namespace mimetic
24 {
25
26 /// Content-ID field value
27 struct ContentId: public FieldValue
28 {
29 // format: yyyymmgg.pid.seq@hostname
30 static const char label[];
31 ContentId();
32 ContentId(const char*);
33 ContentId(const std::string&);
34 void set(const std::string&);
35 std::string str() const;
36 protected:
37 FieldValue* clone() const;
38 private:
39 static unsigned int ms_sequence_number;
40 std::string m_cid;
41 };
42
43 }
44
45 #endif

  ViewVC Help
Powered by ViewVC 1.1.26