securitydialogs/Autolock/inc/AutolockFpsStatusObserver.h
changeset 0 164170e6151a
equal deleted inserted replaced
-1:000000000000 0:164170e6151a
       
     1 /*
       
     2 * Copyright (c) 2002 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 *     Declares UI class for application.
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef AUTOLOCKFPSOBSERVER_H_
       
    20 #define AUTOLOCKFPSOBSERVER_H_
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <e32property.h>
       
    24 #include <w32std.h>
       
    25 #include <hwrmdomainpskeys.h>
       
    26 
       
    27 
       
    28 class MAutolockFpsStatusObserver
       
    29     {
       
    30     public:
       
    31         /**
       
    32          * Implement this method to be notified when Fps status
       
    33          * changes.
       
    34          */
       
    35         IMPORT_C virtual TInt DeviceFpsLock(TInt iStatus) = 0;
       
    36         IMPORT_C virtual TInt DeviceLockStatus() = 0;
       
    37     };
       
    38 
       
    39 class CAutolockFpsStatusObserver : public CActive
       
    40     {
       
    41     public:
       
    42         IMPORT_C static CAutolockFpsStatusObserver* NewL( MAutolockFpsStatusObserver* aObserver, RWsSession& aSession );
       
    43 
       
    44         void RunL();
       
    45         void DoCancel();
       
    46         ~CAutolockFpsStatusObserver();
       
    47     
       
    48     private:
       
    49         void ConstructL( MAutolockFpsStatusObserver* aObserver );   
       
    50         CAutolockFpsStatusObserver( RWsSession& aSession );
       
    51         void FpsStatusChangedL( TInt aFpsStatus );
       
    52 
       
    53     private:
       
    54         MAutolockFpsStatusObserver* iObserver;
       
    55         RProperty iFpsStatus;
       
    56         RWsSession& iSession;
       
    57     };
       
    58 
       
    59 
       
    60 #endif