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_H_ |
|
19 #define NMAPIMESSAGEMANAGER_H_ |
|
20 |
|
21 #include <QObject> |
|
22 #include <QList> |
|
23 #include <QVariant> |
|
24 |
|
25 #include <nmapidef.h> |
|
26 #include <nmapimessage.h> |
|
27 |
|
28 namespace EmailClientApi { |
|
29 |
|
30 class NmApiMessageManagerPrivate; |
|
31 |
|
32 class NMAPI_EXPORT NmApiMessageManager : public QObject |
|
33 { |
|
34 Q_OBJECT |
|
35 public: |
|
36 NmApiMessageManager(QObject *parent,quint64 mailboxId); |
|
37 |
|
38 virtual ~NmApiMessageManager(); |
|
39 |
|
40 public slots: |
|
41 bool createDraftMessage(const QVariant *initData); |
|
42 |
|
43 bool createForwardMessage(NmApiMessage *orig,const QVariant *initData); |
|
44 |
|
45 bool createReplyMessage(const NmApiMessage *orig,const QVariant *initData,bool replyAll); |
|
46 |
|
47 bool moveMessages(const QList<quint64> messageIds,quint64 sourceFolderId,quint64 targetFolderId); |
|
48 |
|
49 bool saveMessage(const NmApiMessage &message); |
|
50 |
|
51 bool deleteMessages(const QList<quint64> messageIds); |
|
52 |
|
53 bool fetchMessage(quint64 messageId); |
|
54 |
|
55 bool sendMessage(const NmApiMessage &message); |
|
56 |
|
57 bool createAttachment(NmApiMessage &message,const QVariant &attachmenSpec); |
|
58 |
|
59 bool removeAttachment(NmApiMessage &message,quint64 attachmentId); |
|
60 |
|
61 bool fetchAttachment(const NmApiMessage &relatedMessage,quint64 attachmentId); |
|
62 |
|
63 private: |
|
64 NmApiMessageManagerPrivate* d; |
|
65 }; |
|
66 |
|
67 } // namespace EmailClientApi |
|
68 #endif /*NMAPIMESSAGEMANAGER_H_ */ |
|