aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/abstract/MCAbstractMessagePart.h
blob: bd2ac4e0b6aa641868c751dd3f8bb17ee71a4616 (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
#ifndef __MAILCORE_MCABSTRACTMESSAGEPART_H_

#define __MAILCORE_MCABSTRACTMESSAGEPART_H_

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

#ifdef __cplusplus

namespace mailcore {
	
	class MessageHeader;
	
	class 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 AbstractPart * partForContentID(String * contentID);
        virtual AbstractPart * partForUniqueID(String * uniqueID);
        
	private:
		AbstractPart * mMainPart;
		MessageHeader * mHeader;
		void init();
	};
}

#endif

#endif