blob: 9862bc29f59301af5753985d06c5e667dfef48cc (
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
46
47
48
49
50
51
|
#include "MCMessagePart.h"
#include "MCDefines.h"
using namespace mailcore;
MessagePart::MessagePart()
{
init();
}
MessagePart::MessagePart(MessagePart * other) : AbstractMessagePart(other)
{
init();
setPartID(other->partID());
}
void MessagePart::init()
{
mPartID = NULL;
}
MessagePart::~MessagePart()
{
MC_SAFE_RELEASE(mPartID);
}
void MessagePart::setPartID(String * partID)
{
MC_SAFE_REPLACE_COPY(String, mPartID, partID);
}
String * MessagePart::partID()
{
return mPartID;
}
Object * MessagePart::copy()
{
return new MessagePart(this);
}
static void * createObject()
{
return new MessagePart();
}
INITIALIZE(MessagePart)
{
Object::registerObjectConstructor("mailcore::MessagePart", &createObject);
}
|