Annotation of parser3/src/types/pa_vmail.h, revision 1.9.2.3

1.1       paf         1: /** @file
                      2:        Parser: @b mail class decls.
                      3: 
1.9.2.2   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.9.2.3 ! paf        11: static const char* IDENT_VMAIL_H="$Date: 2003/01/31 12:34:43 $";
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: 
                     23: class Request;
                     24: 
                     25: /**
                     26:        $mail:received letter
                     27: */
1.9.2.1   paf        28: class VMail: public VStateless_class {
1.9.2.3 ! paf        29: 
        !            30:        VHash vreceived;
        !            31: 
1.1       paf        32: public: // Value
                     33:        
1.9.2.2   paf        34:        override const char* type() const { return "mail"; }
1.1       paf        35:        
                     36:        // mail: CLASS,methods,received field
1.9.2.1   paf        37:        ValuePtr get_element(StringPtr aname, Value& aself, bool /*looking_up*/);
1.1       paf        38: 
                     39: public: // usage
                     40: 
1.9.2.1   paf        41:        VMail();
1.1       paf        42:        
1.9.2.3 ! paf        43:        void fill_received(Pool& pool, Request_info& request_info);
1.9.2.1   paf        44:        StringPtr message_hash_to_string(Request& r, const String *source, 
1.1       paf        45:                Hash *message_hash, int level, 
1.8       paf        46:                const String **from=0, String **to=0);
1.1       paf        47: 
                     48: };
1.9.2.3 ! paf        49: DECLARE_OBJECT_PTR(VMail);
1.1       paf        50: 
                     51: #endif

E-mail: