securitydialogs/Autolock/inc/AutoLockLockObserverPS.h
branchRCL_3
changeset 21 09b1ac925e3f
parent 20 63339781d179
child 22 03674e5abf46
equal deleted inserted replaced
20:63339781d179 21:09b1ac925e3f
     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 *		Obsererver for Set System Locked event  
       
    16 *
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef     __AUTOLOCKLOCKOBSERVERPS_H
       
    22 #define     __AUTOLOCKLOCKOBSERVERPS_H
       
    23 
       
    24 #include <e32svr.h>
       
    25 #include <e32property.h>
       
    26 #include "AutolockAppUiPS.h"
       
    27 
       
    28 class   CLockObserver: public CActive
       
    29     {
       
    30     public:
       
    31 		/**
       
    32         * Creates instance of the CLockObserver class.
       
    33         *
       
    34 		* @param aAppUi (pointer to autolock appui)
       
    35 		* @return Returns the instance just created.
       
    36         */
       
    37         static CLockObserver* NewL(CAutolockAppUi* aAppUi);
       
    38 		/**
       
    39         * Destructor.
       
    40         */
       
    41 		~CLockObserver();    
       
    42 	private:
       
    43         /**
       
    44         * Starts asynchronic listening KUidAutolockStatus event
       
    45         *
       
    46 		* @return KErrNone: if no errors
       
    47         * @return KErrInUse: if already listening
       
    48 		*/
       
    49 		TInt Start();            
       
    50     private: // constructors
       
    51 		/**
       
    52         * C++ default constructor.
       
    53 		*
       
    54 		* @param aAppUi (pointer to autolock appui)
       
    55         */
       
    56         CLockObserver(CAutolockAppUi* aAppUi);
       
    57 		 /**
       
    58         * Symbian OS constructor.
       
    59         */
       
    60         void ConstructL();
       
    61     private: // from CActive
       
    62          /** @see CActive::RunL() */
       
    63 		void RunL();
       
    64 		/** @see CActive::DoCancel() */
       
    65         void DoCancel();
       
    66     private: // data
       
    67     	CAutolockAppUi*      iAppUi; //not owned!
       
    68       RProperty            iProperty;
       
    69  
       
    70     };
       
    71 
       
    72 #endif 
       
    73 // End of file