|
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". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Stub of the MPolicyObserver interface which is required by |
|
15 // CRegistryData. |
|
16 // |
|
17 // |
|
18 |
|
19 #ifndef __POLICYOBSERVERSTUB_H__ |
|
20 #define __POLICYOBSERVERSTUB_H__ |
|
21 |
|
22 #include "PolicyObserver.h" |
|
23 |
|
24 class CRegistryData_UnitTestContext; |
|
25 |
|
26 // ______________________________________________________________________________ |
|
27 // |
|
28 /** |
|
29 @internalComponent |
|
30 Comments : Stub providing the MPolicyObserver functionality which is required by |
|
31 CRegistryData. |
|
32 */ |
|
33 class TPolicyObserverStub : public MPolicyObserver |
|
34 { |
|
35 public: |
|
36 /** |
|
37 @fn TPolicyObserverStub(CRegistryData_UnitTestContext& aUTContext) |
|
38 Intended Usage : Constructor |
|
39 @leave KErrNoMemory |
|
40 @since 7.0 |
|
41 @param aUTContext The context within which this stub is being used. |
|
42 */ |
|
43 |
|
44 TPolicyObserverStub(CRegistryData_UnitTestContext& aUTContext); |
|
45 |
|
46 /** |
|
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 |
|
50 @since 7.0 |
|
51 @param aUnloadPolicy The CUnloadPolicy of the dll which has been removed |
|
52 */ |
|
53 |
|
54 void DllDeletedL(CUnloadPolicy*& aUnloadPolicy); |
|
55 |
|
56 /** |
|
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 |
|
60 @since 7.0 |
|
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 |
|
63 */ |
|
64 |
|
65 CUnloadPolicy* DllAdded(const CEComEntry& aDllInfo); |
|
66 |
|
67 /** |
|
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 |
|
71 @since 7.0 |
|
72 @param aDllInfo Information on the dll which has been added to the registry |
|
73 */ |
|
74 |
|
75 void UpdatePolicyIndexL(); |
|
76 |
|
77 private: |
|
78 CRegistryData_UnitTestContext& iUTContext; |
|
79 }; // TPolicyObserverStub |
|
80 |
|
81 #endif // __POLICYOBSERVERSTUB_H__ |