68
|
1 |
/*
|
|
2 |
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
* Email message content private implementation.
|
|
16 |
*/
|
|
17 |
|
|
18 |
#include "nmapiheaders.h"
|
|
19 |
|
|
20 |
namespace EmailClientApi
|
|
21 |
{
|
|
22 |
|
|
23 |
/*!
|
|
24 |
Constructor for NmApiMessageContentPrivate
|
|
25 |
*/
|
|
26 |
NmApiMessageContentPrivate::NmApiMessageContentPrivate()
|
|
27 |
{
|
|
28 |
NM_FUNCTION;
|
|
29 |
}
|
|
30 |
|
|
31 |
/*!
|
74
|
32 |
Class copy constructor.
|
|
33 |
*/
|
|
34 |
NmApiMessageContentPrivate::NmApiMessageContentPrivate(const NmApiMessageContentPrivate &messagecontentprivate)
|
|
35 |
: QSharedData(messagecontentprivate),
|
|
36 |
mContentType(messagecontentprivate.mContentType),
|
|
37 |
mComplete(messagecontentprivate.mComplete),
|
|
38 |
mSize(messagecontentprivate.mSize),
|
|
39 |
mId(messagecontentprivate.mId)
|
|
40 |
{
|
|
41 |
NM_FUNCTION;
|
|
42 |
}
|
|
43 |
|
|
44 |
/*!
|
68
|
45 |
Destructor for NmApiMessageContentPrivate
|
|
46 |
*/
|
|
47 |
NmApiMessageContentPrivate::~NmApiMessageContentPrivate()
|
|
48 |
{
|
|
49 |
NM_FUNCTION;
|
|
50 |
}
|
|
51 |
|
|
52 |
/*!
|
|
53 |
Getter for content type
|
|
54 |
*/
|
|
55 |
QString NmApiMessageContentPrivate::contentType() const
|
|
56 |
{
|
|
57 |
NM_FUNCTION;
|
|
58 |
return mContentType;
|
|
59 |
}
|
|
60 |
|
|
61 |
/*!
|
|
62 |
Getter for is complete
|
|
63 |
*/
|
|
64 |
bool NmApiMessageContentPrivate::isComplete()
|
|
65 |
{
|
|
66 |
NM_FUNCTION;
|
|
67 |
return mComplete;
|
|
68 |
}
|
|
69 |
|
|
70 |
/*!
|
|
71 |
Getter for size
|
|
72 |
*/
|
|
73 |
quint32 NmApiMessageContentPrivate::size() const
|
|
74 |
{
|
|
75 |
NM_FUNCTION;
|
|
76 |
return mSize;
|
|
77 |
}
|
|
78 |
|
|
79 |
/*!
|
|
80 |
Getter for id
|
|
81 |
*/
|
|
82 |
quint64 NmApiMessageContentPrivate::id() const
|
|
83 |
{
|
|
84 |
NM_FUNCTION;
|
|
85 |
return mId;
|
|
86 |
}
|
|
87 |
|
|
88 |
/*!
|
|
89 |
Setter for content type
|
|
90 |
*/
|
|
91 |
void NmApiMessageContentPrivate::setContentType(const QString &contentType)
|
|
92 |
{
|
|
93 |
NM_FUNCTION;
|
|
94 |
mContentType = contentType;
|
|
95 |
}
|
|
96 |
|
|
97 |
/*!
|
|
98 |
Setter for is complete
|
|
99 |
*/
|
|
100 |
void NmApiMessageContentPrivate::setComplete(bool complete)
|
|
101 |
{
|
|
102 |
NM_FUNCTION;
|
|
103 |
mComplete = complete;
|
|
104 |
}
|
|
105 |
|
|
106 |
/*!
|
|
107 |
Setter for size
|
|
108 |
*/
|
|
109 |
void NmApiMessageContentPrivate::setSize(quint32 size)
|
|
110 |
{
|
|
111 |
NM_FUNCTION;
|
|
112 |
mSize = size;
|
|
113 |
}
|
|
114 |
|
|
115 |
/*!
|
|
116 |
Setter for id
|
|
117 |
*/
|
|
118 |
void NmApiMessageContentPrivate::setId(quint64 id)
|
|
119 |
{
|
|
120 |
NM_FUNCTION;
|
|
121 |
mId = id;
|
|
122 |
}
|
|
123 |
|
|
124 |
}
|