diff -r 6862383cf555 -r 5ffdb8f2067f featuremgmt/featuremgr/test/rtest/inc/t_fmgrbursim.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/featuremgmt/featuremgr/test/rtest/inc/t_fmgrbursim.h Sat Feb 20 00:33:55 2010 +0200 @@ -0,0 +1,68 @@ +// Copyright (c) 2010 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: +// + +/** + @file + @test + @internalComponent +*/ + +#if (!defined __T_FMGRBURSIM__) +#define __T_FMGRBURSIM__ + +#include "t_fmgrburdefs.h" +#include +#include + +/** + * Simulation base class for simulating a backup and restore operation. + * The functionality allows copying and restoring a feature.dat file, and + * checking that the registration file exists. + */ +class CFeatMgrBURSim: public CBase + { +public: + virtual ~CFeatMgrBURSim(); + + static CFeatMgrBURSim* NewLC(); +public: + + /** Use external API to start a backup. */ + void Simulate_StartBackupL(); + /** Use external API to stop a backup. */ + void Simulate_EndBackupL( TBool aNormal = ETrue ); + /** Use external API to start a restore. */ + void Simulate_StartRestoreL(); + /** Use external API to stop a restore. */ + void Simulate_EndRestoreL( TBool aNormal = ETrue ); + + + void Simulate_StartUndefinedL(); + void Simulate_EndUndefinedL( TBool aNormal = ETrue ); + + /** + * Confirm that the registration.xml file is present. + * @leave KErrNotFound if file not present. + */ + void Simulate_CheckRegFileL(); + +private: + CFeatMgrBURSim(); + void ConstructL(); +private: + CBaBackupSessionWrapper* iBackupClient; + }; + +#endif