equal
deleted
inserted
replaced
|
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 NMFASTOREMESSAGEOPERATION_H_ |
|
19 #define NMFASTOREMESSAGEOPERATION_H_ |
|
20 |
|
21 #include <nmoperation.h> |
|
22 #include <nmcommon.h> |
|
23 #include <MFSMailRequestObserver.h> |
|
24 |
|
25 class CFSMailClient; |
|
26 class CFSMailMessage; |
|
27 |
|
28 class NmFwaStoreMessageOperation : public NmOperation, |
|
29 public MFSMailRequestObserver |
|
30 { |
|
31 Q_OBJECT |
|
32 public: |
|
33 NmFwaStoreMessageOperation( |
|
34 CFSMailMessage *messages, |
|
35 CFSMailClient &mailClient); |
|
36 |
|
37 virtual ~NmFwaStoreMessageOperation(); |
|
38 |
|
39 virtual void RequestResponseL(TFSProgress aEvent, TInt aRequestId); |
|
40 |
|
41 protected slots: |
|
42 virtual void runAsyncOperation(); |
|
43 |
|
44 protected: |
|
45 virtual void doCompleteOperation(); |
|
46 virtual void doCancelOperation(); |
|
47 |
|
48 private: |
|
49 |
|
50 enum TStatus |
|
51 { |
|
52 EStoreHeader, |
|
53 EStoreSubParts, |
|
54 EComplete |
|
55 }; |
|
56 |
|
57 CFSMailMessage *mMessage; //owned |
|
58 CFSMailClient &mMailClient; |
|
59 TInt mRequestId; |
|
60 TStatus mStatus; |
|
61 }; |
|
62 |
|
63 #endif //NMFASTOREMESSAGEOPERATION_H_ |