|
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 /*! |
|
32 Destructor for NmApiMessageContentPrivate |
|
33 */ |
|
34 NmApiMessageContentPrivate::~NmApiMessageContentPrivate() |
|
35 { |
|
36 NM_FUNCTION; |
|
37 } |
|
38 |
|
39 /*! |
|
40 Getter for content type |
|
41 */ |
|
42 QString NmApiMessageContentPrivate::contentType() const |
|
43 { |
|
44 NM_FUNCTION; |
|
45 return mContentType; |
|
46 } |
|
47 |
|
48 /*! |
|
49 Getter for is complete |
|
50 */ |
|
51 bool NmApiMessageContentPrivate::isComplete() |
|
52 { |
|
53 NM_FUNCTION; |
|
54 return mComplete; |
|
55 } |
|
56 |
|
57 /*! |
|
58 Getter for size |
|
59 */ |
|
60 quint32 NmApiMessageContentPrivate::size() const |
|
61 { |
|
62 NM_FUNCTION; |
|
63 return mSize; |
|
64 } |
|
65 |
|
66 /*! |
|
67 Getter for id |
|
68 */ |
|
69 quint64 NmApiMessageContentPrivate::id() const |
|
70 { |
|
71 NM_FUNCTION; |
|
72 return mId; |
|
73 } |
|
74 |
|
75 /*! |
|
76 Setter for content type |
|
77 */ |
|
78 void NmApiMessageContentPrivate::setContentType(const QString &contentType) |
|
79 { |
|
80 NM_FUNCTION; |
|
81 mContentType = contentType; |
|
82 } |
|
83 |
|
84 /*! |
|
85 Setter for is complete |
|
86 */ |
|
87 void NmApiMessageContentPrivate::setComplete(bool complete) |
|
88 { |
|
89 NM_FUNCTION; |
|
90 mComplete = complete; |
|
91 } |
|
92 |
|
93 /*! |
|
94 Setter for size |
|
95 */ |
|
96 void NmApiMessageContentPrivate::setSize(quint32 size) |
|
97 { |
|
98 NM_FUNCTION; |
|
99 mSize = size; |
|
100 } |
|
101 |
|
102 /*! |
|
103 Setter for id |
|
104 */ |
|
105 void NmApiMessageContentPrivate::setId(quint64 id) |
|
106 { |
|
107 NM_FUNCTION; |
|
108 mId = id; |
|
109 } |
|
110 |
|
111 } |