securitydialogs/SecUi/Inc/SecUiSystemLock.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:  System Lock interface
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef     __SECUISYSTEMLOCK_H
       
    20 #define     __SECUISYSTEMLOCK_H
       
    21 
       
    22 //  INCLUDES
       
    23 
       
    24 #include    <e32base.h>
       
    25 #include <e32property.h>
       
    26 #include <etelmm.h>
       
    27 #include	<rmmcustomapi.h>
       
    28 
       
    29 //  CLASS DEFINITIONS 
       
    30 class  CSystemLock : public CActive
       
    31     {
       
    32     public:
       
    33        /**
       
    34         * Creates instance of the CSystemLock class.
       
    35         *
       
    36 		* @return Returns the instance just created.
       
    37         */
       
    38 		IMPORT_C static CSystemLock* NewL();
       
    39 		/**
       
    40         * Destructor.
       
    41         */
       
    42         IMPORT_C ~CSystemLock();
       
    43     public:
       
    44          /**
       
    45 		* Sets the device as locked
       
    46 		*/
       
    47 		IMPORT_C void SetLockedL();
       
    48 	private:
       
    49 		/**
       
    50 		* C++ default constructor.
       
    51 		*/
       
    52 		CSystemLock();
       
    53 		/**
       
    54 		* Symbian OS constructor.
       
    55 		*/
       
    56 		void ConstructL();
       
    57 	private: // from CActive
       
    58         /** @see CActive::RunL() */
       
    59 		void RunL();
       
    60 		/** @see CActive::DoCancel() */
       
    61         void DoCancel();
       
    62 	private:  // data
       
    63 		/*****************************************************
       
    64 		*	Series 60 Customer / ETel
       
    65 		*	Series 60  ETel API
       
    66 		*****************************************************/
       
    67 		RTelServer			iServer;
       
    68 		RMobilePhone		iPhone;
       
    69         RProperty           iProperty;
       
    70 		RMmCustomAPI		iCustomPhone;
       
    71 	};
       
    72 #endif
       
    73 
       
    74 // End of file