ipsservices/ipssosplugin/inc/ipsplgbaseoperation.h
changeset 20 ecc8def7944a
parent 18 578830873419
child 23 2dc6caa42ec3
--- a/ipsservices/ipssosplugin/inc/ipsplgbaseoperation.h	Fri Apr 16 14:51:52 2010 +0300
+++ b/ipsservices/ipssosplugin/inc/ipsplgbaseoperation.h	Mon May 03 12:23:15 2010 +0300
@@ -18,86 +18,60 @@
 #ifndef IPSPLGBASEOPERATION_H
 #define IPSPLGBASEOPERATION_H
 
+class CMsvOperation;
 
-class CMsvOperation;
 /**
 * class CIpsPlgBaseOperation
-*
-* Common base class for email online operations.
+* Common base class for email operations
 */
 NONSHARABLE_CLASS ( CIpsPlgBaseOperation ) : public CMsvOperation
     {
 public:
-    /**
-    *
-    */
     virtual ~CIpsPlgBaseOperation();
 
     /**
-    *
-    */
-    virtual const TDesC8& ProgressL()=0;
-
-    /**
     * For reporting if DoRunL leaves
+    * All operations must implement this
     */
     virtual const TDesC8& GetErrorProgressL(TInt aError) = 0;
 
     /**
-    * 
+    * Returns pending asynchronous request status to caller
+    * All operations must implement this
     */
     virtual TFSProgress GetFSProgressL() const = 0;
 
     /**
-    *
+    * returns request id
+    * (given by caller during instantiation)
+    * @return request id
     */
 	TInt FSRequestId() const;
 	
 	/**
-	*
+	* returns mailbox id that this operation is related to
+	* (given by caller during instantiation)
 	*/
 	TFSMailMsgId FSMailboxId() const;
     
     /**
-    *
+    * All concrete derived classes must have a type identifier
+    * @return operation type
     */
-    virtual TInt IpsOpType() const;
+    virtual TIpsOpType IpsOpType() const = 0; // <qmail>
 	
 protected:
 
-    /**
-    * C++ constructor
-    */
-    // Construction.
+    // <qmail> priority parameter has been removed
     CIpsPlgBaseOperation(
         CMsvSession& aMsvSession,
-        TInt aPriority,
         TRequestStatus& aObserverRequestStatus,
         TInt aFSRequestId,
         TFSMailMsgId aFSMailboxId );
 
-
-    /**
-    * From CActive
-    */
-    virtual void DoCancel()=0;
-
-    /**
-    * From CActive
-    */
-    virtual void RunL()=0;
-
-    /**
-    * From CActive
-    */
-    virtual TInt RunError( TInt aError )=0;
-
-        
 protected:
-        
     TInt            iFSRequestId;
     TFSMailMsgId    iFSMailboxId;
-        
+    };
 
-    };
-#endif//IPSPLGBASEOPERATION_H
+#endif // IPSPLGBASEOPERATION_H