Annotation of parser3/src/types/pa_vmail.h, revision 1.10
1.1 paf 1: /** @file
2: Parser: @b mail class decls.
3:
1.10 ! paf 4: Copyright (c) 2001-2003 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.10 ! paf 11: static const char* IDENT_VMAIL_H="$Date: 2003/03/26 13:47:00 $";
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"
20:
21: // forwards
22:
1.10 ! paf 23: class Request_info;
1.1 paf 24:
25: /**
26: $mail:received letter
27: */
1.10 ! paf 28: class VMail: public VStateless_class {
! 29:
! 30: VHash* vreceived;
! 31:
1.1 paf 32: public: // Value
33:
1.10 ! paf 34: override const char* type() const { return "mail"; }
1.1 paf 35:
36: // mail: CLASS,methods,received field
1.10 ! paf 37: Value* get_element(const String& aname, Value& aself, bool /*looking_up*/);
1.1 paf 38:
39: public: // usage
40:
1.10 ! paf 41: VMail();
1.1 paf 42:
1.10 ! paf 43: void fill_received(Request& r);
! 44: const String& message_hash_to_string(Request& r,
! 45: HashStringValue* message_hash, int level,
! 46: const String* & from, bool extract_to, String* & to);
1.1 paf 47:
48: };
49:
50: #endif
E-mail: