1 /* |
|
2 * Copyright (c) 2009 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 * |
|
16 */ |
|
17 |
|
18 #ifndef NMAPIMESSAGEBODY_H |
|
19 #define NMAPIMESSAGEBODY_H |
|
20 |
|
21 #include <QExplicitlySharedDataPointer> |
|
22 #include <nmapidef.h> |
|
23 |
|
24 class QString; |
|
25 |
|
26 namespace EmailClientApi |
|
27 { |
|
28 |
|
29 class NmApiMessageBodyPrivate; |
|
30 |
|
31 class NMAPI_EXPORT NmApiMessageBody |
|
32 { |
|
33 public: |
|
34 /*! |
|
35 constructor for NmApiMessageBody |
|
36 */ |
|
37 NmApiMessageBody(); |
|
38 /*! |
|
39 copying constructor for NmApiMessageBody |
|
40 */ |
|
41 NmApiMessageBody(const NmApiMessageBody &apiMessageBody); |
|
42 |
|
43 /*! |
|
44 assignment operator for NmApiMessageBody |
|
45 */ |
|
46 NmApiMessageBody& operator=(const NmApiMessageBody &apiMessageBody); |
|
47 |
|
48 /*! |
|
49 Compare data from \a apiMessageBody |
|
50 */ |
|
51 bool operator==(const NmApiMessageBody &apiMessageBody); |
|
52 |
|
53 virtual ~NmApiMessageBody(); |
|
54 |
|
55 /*! |
|
56 getter for total size of message body in bytes |
|
57 */ |
|
58 quint64 totalSize() const; |
|
59 |
|
60 /*! |
|
61 getter for bytes available in local mailbox store |
|
62 */ |
|
63 quint64 fetchedSize() const; |
|
64 |
|
65 /*! |
|
66 getter for fetched content |
|
67 */ |
|
68 QString content() const; |
|
69 |
|
70 /*! |
|
71 setter for total size of message body in bytes |
|
72 */ |
|
73 void setTotalSize(quint64 size); |
|
74 |
|
75 /*! |
|
76 setter for bytes available on local mailbox store |
|
77 */ |
|
78 void setFetchedSize(quint64 size); |
|
79 |
|
80 /*! |
|
81 setter for content |
|
82 */ |
|
83 void setContent(const QString &content); |
|
84 |
|
85 private: |
|
86 QExplicitlySharedDataPointer<NmApiMessageBodyPrivate> d; |
|
87 }; |
|
88 } |
|
89 #endif |
|