os/ossrv/lowlevellibsandfws/pluginfw/Framework/RegistryDataTest/PolicyObserverStub.h
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 // Stub of the MPolicyObserver interface which is required by
19 #ifndef __POLICYOBSERVERSTUB_H__
20 #define __POLICYOBSERVERSTUB_H__
22 #include "PolicyObserver.h"
24 class CRegistryData_UnitTestContext;
26 // ______________________________________________________________________________
30 Comments : Stub providing the MPolicyObserver functionality which is required by
33 class TPolicyObserverStub : public MPolicyObserver
37 @fn TPolicyObserverStub(CRegistryData_UnitTestContext& aUTContext)
38 Intended Usage : Constructor
41 @param aUTContext The context within which this stub is being used.
44 TPolicyObserverStub(CRegistryData_UnitTestContext& aUTContext);
47 @fn DllDeletedL(CUnloadPolicy*& aUnloadPolicy)
48 Intended Usage : Called to indicate that a dll has been removed from the registry
49 Error Condition : Leaves with an error code depending on implementation
51 @param aUnloadPolicy The CUnloadPolicy of the dll which has been removed
54 void DllDeletedL(CUnloadPolicy*& aUnloadPolicy);
57 @fn DllAdded(const CEcomEntry& aDllInfo)
58 Intended Usage : Called to indicate that a dll has been added to the registry
59 Error Condition : None
61 @param aDllInfo Information on the dll which has been added to the registry
62 @return The unload policy for the dll if one exists, NULL otherwise
65 CUnloadPolicy* DllAdded(const CEComEntry& aDllInfo);
68 @fn UpdatePolicyIndexL()
69 Intended Usage : Called to indicate the index of unload policies will be out of date
70 Error Condition : Leaves with an error code depending on implementation
72 @param aDllInfo Information on the dll which has been added to the registry
75 void UpdatePolicyIndexL();
78 CRegistryData_UnitTestContext& iUTContext;
79 }; // TPolicyObserverStub
81 #endif // __POLICYOBSERVERSTUB_H__