ipsservices/ipssosplugin/inc/ipsplgmailstoreroperation.h
changeset 18 578830873419
child 20 ecc8def7944a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ipsservices/ipssosplugin/inc/ipsplgmailstoreroperation.h	Fri Apr 16 14:51:52 2010 +0300
@@ -0,0 +1,116 @@
+/*
+* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: This file defines classes CIpsPlgSearch, TSearchParams, TMsgContainer
+*
+*/
+#include <e32std.h>
+#include <e32base.h>
+#include <msvapi.h>
+
+#ifndef CIPSPLGMAILSTOREROPERATION_H
+#define CIPSPLGMAILSTOREROPERATION_H
+
+class CFSMailPlugin;
+class CFSMailMessage;
+class MFSMailRequestObserver;
+
+NONSHARABLE_CLASS( CIpsPlgMailStorerOperation ) :
+    public CMsvOperation
+    {
+public:
+    /**
+     * Symbian 2nd phase construcror
+     *
+     * @return None
+     */
+    static CIpsPlgMailStorerOperation* NewL(
+        CMsvSession& aMsvSession,
+        TRequestStatus& aObserverRequestStatus,
+        CFSMailPlugin& aPlugin,
+        RPointerArray<CFSMailMessage> &messages,
+        MFSMailRequestObserver& aFSOperationObserver,
+        const TInt aRequestId);
+
+    /**
+     * Symbian 2nd phase construcror
+     *
+     * @return None
+     */
+    static CIpsPlgMailStorerOperation* NewLC(
+        CMsvSession& aMsvSession,
+        TRequestStatus& aObserverRequestStatus,
+        CFSMailPlugin& aPlugin,
+        RPointerArray<CFSMailMessage> &messages,
+        MFSMailRequestObserver& aFSOperationObserver,
+        const TInt aRequestId );
+
+    /**
+     * Class destructor
+     *
+     * @return
+     */
+    virtual ~CIpsPlgMailStorerOperation();
+
+    /**
+     * Cancels operation
+     *
+     */
+    void DoCancel();
+
+    /**
+     * From CMsvOperation
+     */
+    virtual const TDesC8& ProgressL();
+
+protected:
+
+    /**
+     *
+     *
+     */
+    CIpsPlgMailStorerOperation(
+        CMsvSession& aMsvSession,
+        TRequestStatus& aObserverRequestStatus,
+        CFSMailPlugin& aPlugin,
+        RPointerArray<CFSMailMessage> &aMessages,
+        MFSMailRequestObserver& aFSOperationObserver,
+        const TInt aRequestId );
+
+private:
+
+    /**
+     *
+     */
+    void ConstructL();
+
+    /**
+     *
+     */
+    void RunL();
+
+    /**
+     *
+     */
+    TInt RunError();
+
+private://data
+    TInt                        iError;
+    TInt                        iExecutionIndex;
+    CFSMailPlugin&              iPlugin;
+    RPointerArray<CFSMailMessage>     &iMessages;
+    MFSMailRequestObserver&     iFSOperationObserver;
+    const TInt                        iRequestId;
+    };
+
+#endif //CIpsPlgMailStorerOperation_H