systemswstubs/hwrmstubplugins/inc/PowerStatePlugin.h
changeset 39 65e91466a14b
parent 31 931072794a66
child 40 b7e5ed8c1342
equal deleted inserted replaced
31:931072794a66 39:65e91466a14b
     1 /*
       
     2 * Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Hardware Resource Manager stub plugins PowerState plugin header
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __POWERSTATEPLUGIN_H_
       
    20 #define __POWERSTATEPLUGIN_H_
       
    21 
       
    22 #include <hwrmpowerstateplugin.h>
       
    23 
       
    24 
       
    25 class CPowerStatePlugin : public CHWRMPowerStatePlugin
       
    26     {
       
    27     public:
       
    28 
       
    29         static CPowerStatePlugin* NewL();
       
    30         ~CPowerStatePlugin();
       
    31         
       
    32         // Callback used by CPeriodic
       
    33         static TInt Callback(TAny* aPtr);
       
    34 
       
    35     private: // Construction
       
    36 
       
    37         CPowerStatePlugin();
       
    38         void ConstructL();
       
    39         
       
    40         // Helper to increment the key and/or the value
       
    41         // to cover all cases.
       
    42         void IncrementKeyAndValue();
       
    43         
       
    44         // Timer used to fire notifications
       
    45         CPeriodic* iPeriodic;
       
    46         
       
    47         // key name for next notification
       
    48         TUint32 iKey;
       
    49         // Value for key
       
    50         TInt iKeyValue;
       
    51     };
       
    52 
       
    53 #endif // __POWERSTATEPLUGIN_H_