|
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 NMFAMESSAGECREATIONOPERATION_H_ |
|
19 #define NMFAMESSAGECREATIONOPERATION_H_ |
|
20 |
|
21 #include <nmmessagecreationoperation.h> |
|
22 #include <nmcommon.h> |
|
23 #include <CFSMailCommon.h> |
|
24 #include <MFSMailRequestObserver.h> |
|
25 |
|
26 class NmTestPlugin; |
|
27 class NmMessage; |
|
28 class CFSMailClient; |
|
29 |
|
30 class NmFwaMessageCreationOperation : public NmMessageCreationOperation, |
|
31 public MFSMailRequestObserver |
|
32 { |
|
33 Q_OBJECT |
|
34 public: |
|
35 NmFwaMessageCreationOperation( |
|
36 const NmId &mailboxId, |
|
37 CFSMailClient &mailClient); |
|
38 |
|
39 virtual ~NmFwaMessageCreationOperation(); |
|
40 |
|
41 NmMessage *getMessage(); |
|
42 NmId getMessageId(); |
|
43 |
|
44 // from MFSMailRequestObserver |
|
45 |
|
46 virtual void RequestResponseL(TFSProgress aEvent, TInt aRequestId); |
|
47 |
|
48 protected slots: |
|
49 virtual void runAsyncOperation(); |
|
50 |
|
51 protected: |
|
52 virtual void doCompleteOperation(); |
|
53 |
|
54 virtual void doCancelOperation(); |
|
55 |
|
56 protected: |
|
57 NmId mMailboxId; |
|
58 |
|
59 NmMessage *mMessage; |
|
60 |
|
61 CFSMailClient &mMailClient; |
|
62 |
|
63 TInt mRequestId; |
|
64 }; |
|
65 |
|
66 #endif /* NMFAMESSAGECREATIONOPERATION_H_ */ |