diff -r 000000000000 -r 6a9f87576119 filemanager/bkupengine/inc/CMMCScBkupStateFactory.h --- /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 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