aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/abstract/MCAbstractMessagePart.h
blob: 74be7579717e1cacbe58ad40b516c0c56746361e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef MAILCORE_MCABSTRACTMESSAGEPART_H

#define MAILCORE_MCABSTRACTMESSAGEPART_H

#include <MailCore/MCBaseTypes.h>
#include <MailCore/MCAbstractPart.h>

#ifdef __cplusplus

namespace mailcore {
    
    class MessageHeader;
    
    class MAILCORE_EXPORT AbstractMessagePart : public AbstractPart {
    public:
        AbstractMessagePart();
        virtual ~AbstractMessagePart();
        
        virtual MessageHeader * header();
        virtual void setHeader(MessageHeader * header);
        
        virtual AbstractPart * mainPart();
        virtual void setMainPart(AbstractPart * mainPart);
        
    public: //subclass behavior
        AbstractMessagePart(AbstractMessagePart * other);
        virtual String * description();
        virtual Object * copy();
        virtual HashMap * serializable();
        virtual void importSerializable(HashMap * serializable);
        
        virtual AbstractPart * partForContentID(String * contentID);
        virtual AbstractPart * partForUniqueID(String * uniqueID);
        
    private:
        AbstractPart * mMainPart;
        MessageHeader * mHeader;
        void init();
    };
    
}

#endif

#endif