emailuis/nmframeworkadapter/inc/nmfwaremoveattachmentoperation.h
changeset 20 ecc8def7944a
parent 18 578830873419
child 23 2dc6caa42ec3
--- a/emailuis/nmframeworkadapter/inc/nmfwaremoveattachmentoperation.h	Fri Apr 16 14:51:52 2010 +0300
+++ b/emailuis/nmframeworkadapter/inc/nmfwaremoveattachmentoperation.h	Mon May 03 12:23:15 2010 +0300
@@ -21,11 +21,13 @@
 #include <QObject>
 #include <nmoperation.h>
 #include <nmcommon.h>
+#include <MFSMailRequestObserver.h>
 
 class NmMessage;
 class CFSMailClient;
 
-class NmFwaRemoveAttachmentOperation : public NmOperation
+class NmFwaRemoveAttachmentOperation : public NmOperation,
+                                       public MFSMailRequestObserver
 {
     Q_OBJECT
 public:
@@ -35,13 +37,23 @@
     
     virtual ~NmFwaRemoveAttachmentOperation();
 
-protected slots:
-    virtual void runAsyncOperation();
+public: // from MFSMailRequestObserver
+    virtual void RequestResponseL(TFSProgress aEvent, TInt aRequestId);
+    
+protected:
+    virtual void doRunAsyncOperation();
 
+protected:
+    virtual void doCancelOperation();
+    
+private:
+	void doRunAsyncOperationL();
+    
 private:
     const NmMessage &mMessage;
     NmId mAttachmentPartId;
     CFSMailClient &mMailClient;
+    TInt mRequestId;
 };
 
 #endif /* NMFWAREMOVEATTACHMENTOPERATION_H_ */