os/ossrv/lowlevellibsandfws/pluginfw/Framework/RegistryDataTest/PolicyObserverStub.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/lowlevellibsandfws/pluginfw/Framework/RegistryDataTest/PolicyObserverStub.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,81 @@
     1.4 +// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +// Stub of the MPolicyObserver interface which is required by 
    1.18 +// CRegistryData.
    1.19 +// 
    1.20 +//
    1.21 +
    1.22 +#ifndef __POLICYOBSERVERSTUB_H__
    1.23 +#define __POLICYOBSERVERSTUB_H__
    1.24 +
    1.25 +#include "PolicyObserver.h"
    1.26 +
    1.27 +class CRegistryData_UnitTestContext;
    1.28 +
    1.29 +// ______________________________________________________________________________
    1.30 +//
    1.31 +/**
    1.32 +	@internalComponent
    1.33 +	Comments : Stub providing the MPolicyObserver functionality which is required by 
    1.34 +	CRegistryData.
    1.35 + */
    1.36 +class TPolicyObserverStub : public MPolicyObserver
    1.37 +	{
    1.38 +public:
    1.39 +/**
    1.40 +	@fn				TPolicyObserverStub(CRegistryData_UnitTestContext& aUTContext)
    1.41 +	Intended Usage	: Constructor
    1.42 +	@leave  		KErrNoMemory
    1.43 +	@since			7.0
    1.44 +	@param			aUTContext The context within which this stub is being used.
    1.45 +*/
    1.46 +	
    1.47 +	TPolicyObserverStub(CRegistryData_UnitTestContext& aUTContext);
    1.48 +
    1.49 +/**
    1.50 +	@fn				DllDeletedL(CUnloadPolicy*& aUnloadPolicy)
    1.51 +	Intended Usage	: Called to indicate that a dll has been removed from the registry
    1.52 +	Error Condition	: Leaves with an error code depending on implementation
    1.53 +	@since			7.0
    1.54 +	@param			aUnloadPolicy The CUnloadPolicy of the dll which has been removed
    1.55 +*/
    1.56 +	
    1.57 +	void DllDeletedL(CUnloadPolicy*& aUnloadPolicy);
    1.58 +
    1.59 +/**
    1.60 +	@fn				DllAdded(const CEcomEntry& aDllInfo)
    1.61 +	Intended Usage	: Called to indicate that a dll has been added to the registry
    1.62 +	Error Condition	: None
    1.63 +	@since			7.0
    1.64 +	@param			aDllInfo Information on the dll which has been added to the registry
    1.65 +	@return			The unload policy for the dll if one exists, NULL otherwise
    1.66 +*/
    1.67 +	
    1.68 +	CUnloadPolicy* DllAdded(const CEComEntry& aDllInfo);
    1.69 +
    1.70 +/**
    1.71 +	@fn				UpdatePolicyIndexL()
    1.72 +	Intended Usage	: Called to indicate the index of unload policies will be out of date 
    1.73 +	Error Condition	: Leaves with an error code depending on implementation
    1.74 +	@since			7.0
    1.75 +	@param			aDllInfo Information on the dll which has been added to the registry
    1.76 +*/
    1.77 +	
    1.78 +	void UpdatePolicyIndexL();
    1.79 +
    1.80 +private:
    1.81 +	CRegistryData_UnitTestContext& iUTContext;
    1.82 +	};	// TPolicyObserverStub
    1.83 +
    1.84 +#endif		// __POLICYOBSERVERSTUB_H__