aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/abstract/MCAbstractMultipart.h
blob: ecb514bfd17a07fb93c7c0cf1273c0cf469a155f (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
#ifndef __MAILCORE_MCABSTRACTMULTIPART_H

#define __MAILCORE_MCABSTRACTMULTIPART_H

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

#ifdef __cplusplus

namespace mailcore {
    
    class AbstractMultipart : public AbstractPart {
    public:
        AbstractMultipart();
        virtual ~AbstractMultipart();
        
        virtual Array * parts();
        virtual void setParts(Array * parts);
        
    public: //subclass behavior
        AbstractMultipart(AbstractMultipart * 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:
        Array * mParts;
        void init();
    };
    
}

#endif

#endif