|
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 implementation. |
|
16 */ |
|
17 |
|
18 #include "nmapiheaders.h" |
|
19 |
|
20 namespace EmailClientApi |
|
21 { |
|
22 |
|
23 /*! |
|
24 Constructor for NmApiMessageContent |
|
25 */ |
|
26 NmApiMessageContent::NmApiMessageContent() |
|
27 { |
|
28 NM_FUNCTION; |
|
29 d = new NmApiMessageContentPrivate(); |
|
30 } |
|
31 |
|
32 /*! |
|
33 Destructor for NmApiMessageContent |
|
34 */ |
|
35 NmApiMessageContent::~NmApiMessageContent() |
|
36 { |
|
37 NM_FUNCTION; |
|
38 } |
|
39 |
|
40 /*! |
|
41 Getter for content type |
|
42 */ |
|
43 QString NmApiMessageContent::contentType() const |
|
44 { |
|
45 NM_FUNCTION; |
|
46 return d->contentType(); |
|
47 } |
|
48 |
|
49 /*! |
|
50 Getter for is complete |
|
51 */ |
|
52 bool NmApiMessageContent::isComplete() |
|
53 { |
|
54 NM_FUNCTION; |
|
55 return d->isComplete(); |
|
56 } |
|
57 |
|
58 /*! |
|
59 Getter for size |
|
60 */ |
|
61 quint32 NmApiMessageContent::size() const |
|
62 { |
|
63 NM_FUNCTION; |
|
64 return d->size(); |
|
65 } |
|
66 |
|
67 /*! |
|
68 Getter for id |
|
69 */ |
|
70 quint64 NmApiMessageContent::id() const |
|
71 { |
|
72 NM_FUNCTION; |
|
73 return d->id(); |
|
74 } |
|
75 |
|
76 /*! |
|
77 Setter for content type |
|
78 */ |
|
79 void NmApiMessageContent::setContentType(const QString &contentType) |
|
80 { |
|
81 NM_FUNCTION; |
|
82 d->setContentType(contentType); |
|
83 } |
|
84 |
|
85 /*! |
|
86 Setter for is complete |
|
87 */ |
|
88 void NmApiMessageContent::setComplete(bool complete) |
|
89 { |
|
90 NM_FUNCTION; |
|
91 d->setComplete(complete); |
|
92 } |
|
93 |
|
94 /*! |
|
95 Setter for size |
|
96 */ |
|
97 void NmApiMessageContent::setSize(quint32 size) |
|
98 { |
|
99 NM_FUNCTION; |
|
100 d->setSize(size); |
|
101 } |
|
102 |
|
103 /*! |
|
104 Setter for id |
|
105 */ |
|
106 void NmApiMessageContent::setId(quint64 id) |
|
107 { |
|
108 NM_FUNCTION; |
|
109 d->setId(id); |
|
110 } |
|
111 |
|
112 } |