Update contrib.
1 // Copyright (c) 2007-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 the License "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 // e32test\resourceman\dynamicresource.h
18 #ifndef __DYNAMICRESOURCE_H__
19 #define __DYNAMICRESOURCE_H__
21 //Class definitions of dynamic resource
22 //Binary single postive dynamic resource
23 NONSHARABLE_CLASS(DBIGISSPDynamicResource) : public DDynamicPowerResource
26 DBIGISSPDynamicResource();
27 TInt DoRequest(TPowerRequest &req);
28 TInt GetInfo(TDes8* aInfo) const;
35 //Multilevel shared negative dynamic resource
36 NONSHARABLE_CLASS(DMLIGLSSHNDynamicResource) : public DDynamicPowerResource
39 DMLIGLSSHNDynamicResource();
40 TInt DoRequest(TPowerRequest &req);
41 TInt GetInfo(TDes8* aInfo) const;
49 //Binary shared negative dynamic resource
50 NONSHARABLE_CLASS(DBLGLSSHNDynamicResource) : public DDynamicPowerResource
53 DBLGLSSHNDynamicResource();
54 TInt DoRequest(TPowerRequest &req);
55 TInt GetInfo(TDes8* aInfo) const;
63 //Multilevel shared postive dynamic resource
64 NONSHARABLE_CLASS(DMLLGLSSHPDynamicResource) : public DDynamicPowerResource
67 DMLLGLSSHPDynamicResource();
68 TInt DoRequest(TPowerRequest &req);
69 TInt GetInfo(TDes8* aInfo) const;
77 //Multilevel single positive dynamic dependent resource
78 NONSHARABLE_CLASS(DDynamicResourceD01) : public DDynamicPowerResourceD
81 DDynamicResourceD01();
82 TInt DoRequest(TPowerRequest &req);
83 TInt GetInfo(TDes8* aInfo) const;
84 TChangePropagationStatus TranslateDependentState(TInt aDepId, TInt aDepState, TInt& aResState);
92 //Binary shared positive dynamic dependent resource
93 NONSHARABLE_CLASS(DDynamicResourceD02) : public DDynamicPowerResourceD
96 DDynamicResourceD02();
97 TInt DoRequest(TPowerRequest &req);
98 TInt GetInfo(TDes8* aInfo) const;
99 TChangePropagationStatus TranslateDependentState(TInt aDepId, TInt aDepState, TInt& aResState);
107 //Multilevel shared negative dependent resource
108 NONSHARABLE_CLASS(DDynamicResourceD03) : public DDynamicPowerResourceD
111 DDynamicResourceD03();
112 TInt DoRequest(TPowerRequest &req);
113 TInt GetInfo(TDes8* aInfo) const;
114 TChangePropagationStatus TranslateDependentState(TInt aDepId, TInt aDepState, TInt& aResState);
122 //Binary single positive dependent resource
123 NONSHARABLE_CLASS(DDynamicResourceD04) : public DDynamicPowerResourceD
126 DDynamicResourceD04();
127 TInt DoRequest(TPowerRequest &req);
128 TInt GetInfo(TDes8* aInfo) const;
129 TChangePropagationStatus TranslateDependentState(TInt aDepId, TInt aDepState, TInt& aResState);
137 #endif /*__DYANMICRESOURCE_H__*/