perfapps/perfmon/engine/src/perfmon_powerlistener_stub.cpp
changeset 52 36d60d12b4af
equal deleted inserted replaced
51:b048e15729d6 52:36d60d12b4af
       
     1 /*
       
     2  * Copyright (c) 2009 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:  
       
    15  *
       
    16  */
       
    17 
       
    18 // INCLUDE FILES
       
    19 #include "perfmon_powerlistener.h"
       
    20 
       
    21 // Power monitoring not supported. Use stub implementation.
       
    22 TBool CPerfMonPowerListener::iIsSupported = EFalse;
       
    23 
       
    24 /*
       
    25  *
       
    26  * class CPerfMonPowerListener stub implementation
       
    27  * 
       
    28  */
       
    29 
       
    30 CPerfMonPowerListener* CPerfMonPowerListener::NewL()
       
    31     {
       
    32     CPerfMonPowerListener* self = new ( ELeave ) CPerfMonPowerListener();
       
    33     CleanupStack::PushL( self );
       
    34     self->ConstructL();
       
    35     CleanupStack::Pop();
       
    36     return self;
       
    37     }
       
    38 
       
    39 CPerfMonPowerListener::CPerfMonPowerListener() :
       
    40     iPowerListenerImpl(NULL)
       
    41     {
       
    42     }
       
    43 
       
    44 void CPerfMonPowerListener::ConstructL()
       
    45     {
       
    46     }
       
    47 
       
    48 CPerfMonPowerListener::~CPerfMonPowerListener()
       
    49     {
       
    50     DeActivate();
       
    51     }
       
    52 
       
    53 TInt CPerfMonPowerListener::Activate()
       
    54     {
       
    55     return KErrNotSupported;
       
    56     }
       
    57 
       
    58 void CPerfMonPowerListener::DeActivate()
       
    59     {
       
    60     }
       
    61 
       
    62 TInt CPerfMonPowerListener::GetPower()
       
    63     {
       
    64     return 0;
       
    65     }
       
    66 
       
    67 TInt CPerfMonPowerListener::GetMaxPower()
       
    68     {
       
    69     return 0;
       
    70     }
       
    71 
       
    72 // End of File