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

1.1       paf         1: /** @file
                      2:        Parser: @b mail class decls.
                      3: 
                      4:        Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com)
                      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.4     ! paf        11: static const char* IDENT_VMAIL_H="$Date: 2002/08/01 11:41:24 $";
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: */
                     28: class VMail : public VStateless_class {
                     29: public: // Value
                     30:        
                     31:        const char *type() const { return "mail"; }
                     32:        
                     33:        // mail: CLASS,methods,received field
1.4     ! paf        34:        Value *get_element(const String& aname, Value *aself);
1.1       paf        35: 
                     36: public: // usage
                     37: 
                     38:        VMail(Pool& apool);
                     39:        
                     40:        void fill_received(Request& request);
                     41:        const String& message_hash_to_string(Request& r, const String *source, 
                     42:                Hash *message_hash, int level, 
                     43:                const String **from=0, const String **to=0);
                     44: 
                     45: private:
                     46: 
                     47:        VHash vreceived;
                     48: 
                     49: };
                     50: 
                     51: #endif

E-mail: