47
|
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 related operations
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef NMAPIMESSAGEMANAGER_P_H_
|
|
19 |
#define NMAPIMESSAGEMANAGER_P_H_
|
|
20 |
|
|
21 |
#include <QObject>
|
74
|
22 |
#include <QPointer>
|
|
23 |
|
|
24 |
#include <CFSMailCommon.h>
|
47
|
25 |
#include <nmapimessagemanager.h>
|
|
26 |
|
74
|
27 |
class NmApiEngine;
|
|
28 |
class CFSMailBox;
|
|
29 |
class CFSMailPlugin;
|
47
|
30 |
|
|
31 |
namespace EmailClientApi
|
|
32 |
{
|
|
33 |
|
|
34 |
class NmApiMessageManagerPrivate : public QObject
|
|
35 |
{
|
|
36 |
Q_OBJECT
|
|
37 |
public:
|
68
|
38 |
NmApiMessageManagerPrivate(QObject *parent,quint64 mailboxId);
|
47
|
39 |
virtual ~NmApiMessageManagerPrivate();
|
|
40 |
|
74
|
41 |
public slots:
|
|
42 |
QPointer<NmApiOperation> createDraftMessage(const QVariant *initData);
|
|
43 |
QPointer<NmApiOperation> sendMessage(const NmApiMessage &message);
|
|
44 |
QPointer<NmApiOperation> saveMessage(const NmApiMessage &message);
|
|
45 |
|
47
|
46 |
private:
|
74
|
47 |
void initialise();
|
47
|
48 |
|
|
49 |
private:
|
74
|
50 |
TFSMailMsgId mMailBoxId;
|
|
51 |
CFSMailBox *mMailBox;
|
|
52 |
CFSMailPlugin *mMailPlugin; //not owned
|
|
53 |
NmApiEngine *mEngine;
|
47
|
54 |
};
|
|
55 |
|
|
56 |
}
|
|
57 |
|
|
58 |
#endif /*NMAPIMESSAGEMANAGER_P_H_ */
|