os/ossrv/lowlevellibsandfws/pluginfw/Framework/RegistrarTest/RegistrarStateAccessor.inl
Update contrib.
1 // Copyright (c) 1997-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.
14 // Implementation of the state accessor class for the CRegistrar class
18 // ______________________________________________________________________________
20 inline TInt TRegistrar_StateAccessor::InvariantTest(TAny* aTestObject)
22 CRegistrar* registrar = REINTERPRET_CAST(CRegistrar*, aTestObject);
24 // The only invariants over all cases
25 if( registrar == NULL ||
26 registrar->iDiscoverer == NULL)
27 return KTestBedFailedInvariant;
31 inline TInt TRegistrar_StateAccessor::Internalize(TAny* /* aTestObject */)
37 inline TInt TRegistrar_StateAccessor::Externalize(TAny* /* aTestObject */)
39 // No persistent state yet
43 inline void TRegistrar_StateAccessor::ParseL(CRegistrar& aRegistrar,
44 CRegistryData::CDllData& aDll,
45 const TDesC& aRscFileName)
47 aRegistrar.ParseL(aDll, aRscFileName);
50 inline void TRegistrar_StateAccessor::ParseRegistrationDataL(CRegistrar& aRegistrar,
52 const TDesC& aRscFileName,
53 const TDriveUnit& aDrive,
55 TInt aRegistryDriveIndex)
57 aRegistrar.ParseRegistrationDataL(aEntry, aRscFileName, aDrive, aUpdate, aRegistryDriveIndex);
60 inline void TRegistrar_StateAccessor::DiscoveriesBegin(CRegistrar& aRegistrar)
62 aRegistrar.DiscoveriesBegin();
65 inline void TRegistrar_StateAccessor::DiscoveriesComplete(CRegistrar& aRegistrar, TBool aSuccessful)
67 aRegistrar.DiscoveriesComplete(aSuccessful);
70 inline void TRegistrar_StateAccessor::DriveRemoved(CRegistrar& aRegistrar, TDriveUnit aDrive)
72 aRegistrar.DriveRemovedL(aDrive);
75 inline void TRegistrar_StateAccessor::DriveReinstatedL(CRegistrar& aRegistrar,
78 aRegistrar.DriveReinstatedL(aDrive);
81 void TRegistrar_StateAccessor::RegisterDiscoveryL(CRegistrar& aRegistrar, const TEntry& aEntry)
83 aRegistrar.RegisterDiscoveryL(aEntry);