/[debian]/mimetic/trunk/mimetic/rfc822/messageid.h
ViewVC logotype

Contents of /mimetic/trunk/mimetic/rfc822/messageid.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 197 - (show annotations)
Sun Apr 16 12:21:05 2006 UTC (15 years, 3 months ago) by gregoa
File MIME type: text/plain
File size: 1678 byte(s)
New upstream release.

1 /***************************************************************************
2 copyright : (C) 2002-2005 by Stefano Barbato
3 email : stefano@codesink.org
4
5 $Id: messageid.h,v 1.13 2006/04/11 10:04:58 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_MESSAGEID_H_
17 #define _MIMETIC_MESSAGEID_H_
18 #ifdef HAVE_STDINT_H
19 #include <stdint.h>
20 #endif
21 #include <string>
22 #include <mimetic/config.h>
23 #ifdef HAVE_INTTYPES_H
24 #include <inttypes.h>
25 #endif
26 #include <mimetic/utils.h>
27 #include <mimetic/os/utils.h>
28 #include <mimetic/rfc822/fieldvalue.h>
29
30 namespace mimetic
31 {
32
33
34 /// Message-ID field value
35 /// On Win32 Winsock library must be initialized before using this class.
36 struct MessageId: public FieldValue
37 {
38 MessageId(uint32_t thread_id = 0 );
39 MessageId(const std::string&);
40 std::string str() const;
41 void set(const std::string&);
42 protected:
43 FieldValue* clone() const;
44 private:
45 static unsigned int ms_sequence_number;
46 std::string m_msgid;
47 };
48
49
50 }
51
52 #endif

  ViewVC Help
Powered by ViewVC 1.1.26