securitydialogs/Autolock/inc/AutolockGripStatusObserver.h
branchRCL_3
changeset 22 03674e5abf46
equal deleted inserted replaced
21:09b1ac925e3f 22:03674e5abf46
       
     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 AUTOLOCKGRIPOBSERVER_H_
       
    20 #define AUTOLOCKGRIPOBSERVER_H_
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <e32property.h>
       
    24 #include <w32std.h>
       
    25 #include <hwrmdomainpskeys.h>
       
    26 
       
    27 class MAutolockAppUiInterface;
       
    28 
       
    29 class CAutolockGripStatusObserver : public CActive
       
    30     {
       
    31     public:
       
    32         IMPORT_C static CAutolockGripStatusObserver* NewL( MAutolockAppUiInterface* aObserver, RWsSession& aSession );
       
    33 
       
    34         void RunL();
       
    35         void DoCancel();
       
    36         ~CAutolockGripStatusObserver();
       
    37     
       
    38     private:
       
    39         void ConstructL( MAutolockAppUiInterface* aObserver );   
       
    40         CAutolockGripStatusObserver( RWsSession& aSession );
       
    41         void GripStatusChangedL( TInt aGripStatus );
       
    42 
       
    43     private:
       
    44         MAutolockAppUiInterface* iObserver;
       
    45         RProperty iGripStatus;
       
    46         RWsSession& iSession;
       
    47     };
       
    48 
       
    49 
       
    50 #endif