Annotation of parser3/src/types/pa_vmail.h, revision 1.23
1.1 paf 1: /** @file
2: Parser: @b mail class decls.
3:
1.23 ! moko 4: Copyright (c) 2001-2017 Art. Lebedev Studio (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.23 ! moko 11: #define IDENT_PA_VMAIL_H "$Id: pa_vmail.h,v 1.22 2015/10/26 01:22:02 moko Exp $"
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.19 misha 21: #define MAIL_DEBUG_NAME "print-debug"
1.1 paf 22:
23: // forwards
24:
1.10 paf 25: class Request_info;
1.1 paf 26:
27: /**
28: $mail:received letter
29: */
1.10 paf 30: class VMail: public VStateless_class {
31:
1.11 paf 32: VHash vreceived;
1.10 paf 33:
1.1 paf 34: public: // Value
35:
1.10 paf 36: override const char* type() const { return "mail"; }
1.1 paf 37:
1.21 misha 38: // mail: methods,received field
1.18 misha 39: Value* get_element(const String& aname);
1.1 paf 40:
41: public: // usage
42:
1.10 paf 43: VMail();
1.1 paf 44:
1.10 paf 45: void fill_received(Request& r);
46: const String& message_hash_to_string(Request& r,
47: HashStringValue* message_hash, int level,
1.16 paf 48: const String* & from, bool extract_to, String* & to);
1.1 paf 49:
50: };
51:
52: #endif
E-mail: