os/kernelhwsrv/kerneltest/e32test/resourceman/dynamicresource.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of the License "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
// e32test\resourceman\dynamicresource.h
sl@0
    15
// 
sl@0
    16
//
sl@0
    17
sl@0
    18
#ifndef __DYNAMICRESOURCE_H__
sl@0
    19
#define __DYNAMICRESOURCE_H__
sl@0
    20
sl@0
    21
//Class definitions of dynamic resource
sl@0
    22
//Binary single postive dynamic resource
sl@0
    23
NONSHARABLE_CLASS(DBIGISSPDynamicResource) : public DDynamicPowerResource
sl@0
    24
	{
sl@0
    25
public:
sl@0
    26
	DBIGISSPDynamicResource();
sl@0
    27
	TInt DoRequest(TPowerRequest &req);
sl@0
    28
	TInt GetInfo(TDes8* aInfo) const;
sl@0
    29
private:
sl@0
    30
	TInt iMinLevel;
sl@0
    31
	TInt iMaxLevel;
sl@0
    32
	TInt iCurrentLevel;
sl@0
    33
	};
sl@0
    34
sl@0
    35
//Multilevel shared negative dynamic resource
sl@0
    36
NONSHARABLE_CLASS(DMLIGLSSHNDynamicResource) : public DDynamicPowerResource
sl@0
    37
	{
sl@0
    38
public:
sl@0
    39
	DMLIGLSSHNDynamicResource();
sl@0
    40
	TInt DoRequest(TPowerRequest &req);
sl@0
    41
	TInt GetInfo(TDes8* aInfo) const;
sl@0
    42
private:
sl@0
    43
	TInt iMinLevel;
sl@0
    44
	TInt iMaxLevel;
sl@0
    45
	TInt iCurrentLevel;
sl@0
    46
	TInt iBlockTime;
sl@0
    47
	};
sl@0
    48
sl@0
    49
//Binary shared negative dynamic resource
sl@0
    50
NONSHARABLE_CLASS(DBLGLSSHNDynamicResource) : public DDynamicPowerResource
sl@0
    51
	{
sl@0
    52
public:
sl@0
    53
	DBLGLSSHNDynamicResource();
sl@0
    54
	TInt DoRequest(TPowerRequest &req);
sl@0
    55
	TInt GetInfo(TDes8* aInfo) const;
sl@0
    56
private:
sl@0
    57
	TInt iMinLevel;
sl@0
    58
	TInt iMaxLevel;
sl@0
    59
	TInt iCurrentLevel;
sl@0
    60
	TInt iBlockTime;
sl@0
    61
	};
sl@0
    62
sl@0
    63
//Multilevel shared postive dynamic resource
sl@0
    64
NONSHARABLE_CLASS(DMLLGLSSHPDynamicResource) : public DDynamicPowerResource
sl@0
    65
	{
sl@0
    66
public:
sl@0
    67
	DMLLGLSSHPDynamicResource();
sl@0
    68
	TInt DoRequest(TPowerRequest &req);
sl@0
    69
	TInt GetInfo(TDes8* aInfo) const;
sl@0
    70
private:
sl@0
    71
	TInt iMinLevel;
sl@0
    72
	TInt iMaxLevel;
sl@0
    73
	TInt iCurrentLevel;
sl@0
    74
	TInt iBlockTime;
sl@0
    75
	};
sl@0
    76
sl@0
    77
//Multilevel single positive dynamic dependent resource
sl@0
    78
NONSHARABLE_CLASS(DDynamicResourceD01) : public DDynamicPowerResourceD
sl@0
    79
	{
sl@0
    80
public:
sl@0
    81
	DDynamicResourceD01();
sl@0
    82
	TInt DoRequest(TPowerRequest &req);
sl@0
    83
	TInt GetInfo(TDes8* aInfo) const;
sl@0
    84
	TChangePropagationStatus TranslateDependentState(TInt aDepId, TInt aDepState, TInt& aResState);
sl@0
    85
private:
sl@0
    86
	TInt iMinLevel;
sl@0
    87
	TInt iMaxLevel;
sl@0
    88
	TInt iCurrentLevel;
sl@0
    89
	TInt iBlockTime;
sl@0
    90
	};
sl@0
    91
	
sl@0
    92
//Binary shared positive dynamic dependent resource
sl@0
    93
NONSHARABLE_CLASS(DDynamicResourceD02) : public DDynamicPowerResourceD
sl@0
    94
	{
sl@0
    95
public:
sl@0
    96
	DDynamicResourceD02();
sl@0
    97
	TInt DoRequest(TPowerRequest &req);
sl@0
    98
	TInt GetInfo(TDes8* aInfo) const;
sl@0
    99
	TChangePropagationStatus TranslateDependentState(TInt aDepId, TInt aDepState, TInt& aResState);
sl@0
   100
private:
sl@0
   101
	TInt iMinLevel;
sl@0
   102
	TInt iMaxLevel;
sl@0
   103
	TInt iCurrentLevel;
sl@0
   104
	TInt iBlockTime;
sl@0
   105
	};
sl@0
   106
sl@0
   107
//Multilevel shared negative dependent resource
sl@0
   108
NONSHARABLE_CLASS(DDynamicResourceD03) : public DDynamicPowerResourceD
sl@0
   109
	{
sl@0
   110
public:
sl@0
   111
	DDynamicResourceD03();
sl@0
   112
	TInt DoRequest(TPowerRequest &req);
sl@0
   113
	TInt GetInfo(TDes8* aInfo) const;
sl@0
   114
	TChangePropagationStatus TranslateDependentState(TInt aDepId, TInt aDepState, TInt& aResState);
sl@0
   115
private:
sl@0
   116
	TInt iMinLevel;
sl@0
   117
	TInt iMaxLevel;
sl@0
   118
	TInt iCurrentLevel;
sl@0
   119
	TInt iBlockTime;
sl@0
   120
	};
sl@0
   121
sl@0
   122
//Binary single positive dependent resource
sl@0
   123
NONSHARABLE_CLASS(DDynamicResourceD04) : public DDynamicPowerResourceD
sl@0
   124
	{
sl@0
   125
public:
sl@0
   126
	DDynamicResourceD04();
sl@0
   127
	TInt DoRequest(TPowerRequest &req);
sl@0
   128
	TInt GetInfo(TDes8* aInfo) const;
sl@0
   129
	TChangePropagationStatus TranslateDependentState(TInt aDepId, TInt aDepState, TInt& aResState);
sl@0
   130
private:
sl@0
   131
	TInt iMinLevel;
sl@0
   132
	TInt iMaxLevel;
sl@0
   133
	TInt iCurrentLevel;
sl@0
   134
	TInt iBlockTime;
sl@0
   135
	};
sl@0
   136
sl@0
   137
#endif /*__DYANMICRESOURCE_H__*/