filemanager/bkupengine/inc/CMMCScBkupStateFactory.h
changeset 0 6a9f87576119
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/filemanager/bkupengine/inc/CMMCScBkupStateFactory.h	Mon Jan 18 20:09:41 2010 +0200
@@ -0,0 +1,107 @@
+/*
+* Copyright (c) 2005 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: Declaration for CMMCScBkupStateFactory
+*     
+*
+*/
+
+#ifndef __CMMCSCBKUPSTATEFACTORY_H__
+#define __CMMCSCBKUPSTATEFACTORY_H__
+
+// User includes
+#include "MMCScBkupStateIds.h"
+#include "MMCScBkupOperations.h"
+
+// Classes referenced
+class CMMCScBkupState;
+class MMMCScBkupDriver;
+
+// Type definitions
+typedef RPointerArray<CMMCScBkupState> RMMCScBkupStateArray;
+
+
+
+/**
+*
+*
+* @since 3.0
+*/
+class CMMCScBkupStateFactory : public CBase
+    {
+    public:
+        /**
+        *
+        */
+        static CMMCScBkupStateFactory* FactoryByOperationTypeLC( TMMCScBkupOperationType aOperationType );
+
+    protected:
+
+        /**
+        *
+        */
+        CMMCScBkupStateFactory();
+
+    public: // From CMMCScBkupStateFactory
+
+        /**
+        * 
+        */
+        virtual CMMCScBkupState* GetStateLC(TMMCScBkupStateId aCurrentState, MMMCScBkupDriver& aDriver) = 0;
+    };
+
+
+
+/**
+*
+*
+* @since 3.0
+*/
+NONSHARABLE_CLASS(CMMCScBkupStateFactoryBackup) : public CMMCScBkupStateFactory
+    {
+    public:
+        static CMMCScBkupStateFactoryBackup* NewL();
+    
+    private:
+        CMMCScBkupStateFactoryBackup();
+
+    public: // From CMMCScBkupStateFactory
+        CMMCScBkupState* GetStateLC(TMMCScBkupStateId aRequiredType, MMMCScBkupDriver& aDriver);
+    };
+
+
+
+
+/**
+*
+*
+* @since 3.0
+*/
+NONSHARABLE_CLASS(CMMCScBkupStateFactoryRestore) : public CMMCScBkupStateFactory
+    {
+    public:
+        static CMMCScBkupStateFactoryRestore* NewL();
+    
+    private:
+        CMMCScBkupStateFactoryRestore();
+
+    public: // From CMMCScBkupStateFactory
+        CMMCScBkupState* GetStateLC(TMMCScBkupStateId aRequiredType, MMMCScBkupDriver& aDriver);
+    };
+
+
+
+
+#endif // __CMMCSCBKUPSTATEFACTORY_H__
+
+//End of File