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 |
* Api's email message private implementation.
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef NMAPIMESSAGE_P_H_
|
|
19 |
#define NMAPIMESSAGE_P_H_
|
|
20 |
|
|
21 |
namespace EmailClientApi
|
|
22 |
{
|
|
23 |
|
|
24 |
class NmApiMessagePrivate : public QSharedData
|
|
25 |
{
|
|
26 |
|
|
27 |
public:
|
|
28 |
NmApiMessagePrivate();
|
74
|
29 |
NmApiMessagePrivate(const NmApiMessagePrivate &other);
|
68
|
30 |
virtual ~NmApiMessagePrivate();
|
|
31 |
|
|
32 |
NmApiTextContent plainTextContent();
|
|
33 |
NmApiTextContent htmlContent();
|
|
34 |
bool isComplete();
|
|
35 |
QList<NmApiAttachment> attachments();
|
|
36 |
void addAttachment(NmApiAttachment &attachment);
|
|
37 |
NmApiMessageEnvelope& envelope();
|
|
38 |
void setPlainTextContent(NmApiTextContent &textContent);
|
|
39 |
void setHtmlContent(NmApiTextContent &textContent);
|
|
40 |
void setComplete(bool complete);
|
|
41 |
void setAttachments(QList<NmApiAttachment> &attachments);
|
|
42 |
void setEnvelope(NmApiMessageEnvelope &envelope);
|
|
43 |
|
|
44 |
private:
|
|
45 |
NmApiTextContent mPlainTextContent;
|
|
46 |
NmApiTextContent mHtmlContent;
|
|
47 |
bool mComplete;
|
|
48 |
QList<NmApiAttachment> mAttachments;
|
|
49 |
NmApiMessageEnvelope mEnvelope;
|
|
50 |
};
|
|
51 |
}
|
|
52 |
|
|
53 |
#endif /* NMAPIMESSAGE_P_H_ */
|