Update contrib.
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __T_BACKUPSRVDEFECTS_H__
17 #define __T_BACKUPSRVDEFECTS_H__
23 enum BUDefectTestMachineStates
26 EMachineCloseAllsEndSameClient,
27 EMachineCloseAllsEndOtherClient,
28 EMachineCloseAllsEndCloseFile,
31 class CBackupFileObserver;
33 // The class to schedule the CBaBackupSessionWrapper requests for the Backup server defect tests.
34 class CBUDefectTestMachine : public CActive
37 static CBUDefectTestMachine* NewL();
38 ~CBUDefectTestMachine();
42 void SetFileObserver(CBackupFileObserver* aBackupFileObserver);
44 CBUDefectTestMachine();
48 CBaBackupSessionWrapper* iWrapper;
49 CBackupFileObserver* iBackupFileObserver;
52 BUDefectTestMachineStates iNextState;
56 class CBackupFileObserver : public CActive, public MBackupObserver
59 static CBackupFileObserver* NewL(CBUDefectTestMachine& aTestMachine, const TDesC& aLockedFileName);
60 ~CBackupFileObserver();
63 void ChangeFileLockL(const TDesC& aFileName,TFileLockFlags aFlags);
64 void CloseAll(MBackupObserver::TFileLockFlags aFlags);
65 void CloseFileL(const TDesC& aFileName,MBackupObserver::TFileLockFlags aFlags);
68 CBackupFileObserver(CBUDefectTestMachine& aTestMachine, const TDesC& aLockedFileName);
71 CBUDefectTestMachine& iTestMachine;
72 CBaBackupSessionWrapper* iWrapper;
73 const TDesC& iLockedFileName;
75 #endif // __T_BACKUPSRVDEFECTS_H__