Annotation of parser3/src/types/pa_vmail.h, revision 1.16
1.1 paf 1: /** @file
2: Parser: @b mail class decls.
3:
1.14 paf 4: Copyright (c) 2001-2004 ArtLebedev Group (http://www.artlebedev.com)
1.1 paf 5: Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
6: */
7:
8: #ifndef PA_VMAIL_H
9: #define PA_VMAIL_H
1.2 paf 10:
1.16 ! paf 11: static const char * const IDENT_VMAIL_H="$Date: 2004/02/24 11:25:38 $";
1.1 paf 12:
13: #include "classes.h"
14: #include "pa_common.h"
15: #include "pa_vhash.h"
16:
17: // defines
18:
19: #define MAIL_RECEIVED_ELEMENT_NAME "received"
1.12 paf 20: #define MAIL_OPTIONS_NAME "options"
1.1 paf 21:
22: // forwards
23:
1.10 paf 24: class Request_info;
1.1 paf 25:
26: /**
27: $mail:received letter
28: */
1.10 paf 29: class VMail: public VStateless_class {
30:
1.11 paf 31: VHash vreceived;
1.10 paf 32:
1.1 paf 33: public: // Value
34:
1.10 paf 35: override const char* type() const { return "mail"; }
1.1 paf 36:
37: // mail: CLASS,methods,received field
1.10 paf 38: Value* get_element(const String& aname, Value& aself, bool /*looking_up*/);
1.1 paf 39:
40: public: // usage
41:
1.10 paf 42: VMail();
1.1 paf 43:
1.10 paf 44: void fill_received(Request& r);
45: const String& message_hash_to_string(Request& r,
46: HashStringValue* message_hash, int level,
1.16 ! paf 47: const String* & from, bool extract_to, String* & to);
1.1 paf 48:
49: };
50:
51: #endif
E-mail: