aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/imap/MCIMAPMessagePart.cc
blob: bd97657c4e1e7d4a0033b492126f2609bd309c34 (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
#include "MCIMAPMessagePart.h"

using namespace mailcore;

IMAPMessagePart::IMAPMessagePart()
{
    init();
}

IMAPMessagePart::IMAPMessagePart(IMAPMessagePart * other) : AbstractMessagePart(other)
{
    init();
    MC_SAFE_REPLACE_COPY(String, mPartID, other->mPartID);
}

IMAPMessagePart::~IMAPMessagePart()
{
    MC_SAFE_RELEASE(mPartID);
}

Object * IMAPMessagePart::copy()
{
    return new IMAPMessagePart(this);
}

void IMAPMessagePart::init()
{
    mPartID = NULL;
}

void IMAPMessagePart::setPartID(String * partID)
{
    MC_SAFE_REPLACE_COPY(String, mPartID, partID);
}

String * IMAPMessagePart::partID()
{
    return mPartID;
}