securitydialogs/Securityobserver/Inc/SecSimLockObserver.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:  Observer for Sim Locking events.
       
    15 *               Shows "Sim restriction on" note if necessary.
       
    16 *
       
    17 *
       
    18 */
       
    19 
       
    20 #ifndef     __SECSIMLOCKOBSERVER_H
       
    21 #define     __SECSIMLOCKOBSERVER_H
       
    22 
       
    23 #include <e32svr.h>
       
    24 #include    <e32property.h>
       
    25 
       
    26 class CSecObsNotify;
       
    27 
       
    28 class   CSimLockObserver: public CActive
       
    29     {
       
    30     public:
       
    31         /* Creates instance of the CSimLockObserve class.
       
    32         *
       
    33         * @param aNotifierController CSecObsNotify* pointer to launch differend security
       
    34         *  notifiers
       
    35         * @return Returns the instance just created.
       
    36         */
       
    37         static CSimLockObserver* NewL(CSecObsNotify* aNotifierController);
       
    38         /**
       
    39         * Destructor.
       
    40         */
       
    41         ~CSimLockObserver();
       
    42     public:
       
    43         /**
       
    44         * Starts asynchronic listening of Sim lock events
       
    45         *
       
    46         * @return KErrNone: if no errors
       
    47         * @return KErrInUse: if already listening
       
    48         */
       
    49         TInt Start();
       
    50         /**
       
    51         * Stops asynchronic listening of Sim lock events
       
    52         *
       
    53         */
       
    54         void Stop();
       
    55     private: // constructors
       
    56         /**
       
    57         * C++ default constructor.
       
    58         *
       
    59         * @param aNotifierController CSecObsNotify* pointer to launch differend security
       
    60         *  notifiers
       
    61         */
       
    62         CSimLockObserver(CSecObsNotify* aNotifierController);
       
    63         /**
       
    64         * Symbian OS constructor.
       
    65         */
       
    66         void ConstructL();
       
    67     private: // from CActive
       
    68         /** @see CActive::RunL() */
       
    69         void RunL();
       
    70         /** @see CActive::DoCancel() */
       
    71         void DoCancel();
       
    72     private:  //data
       
    73         CSecObsNotify*       iNotifierController; // not owned !
       
    74         RProperty            iProperty;
       
    75     };
       
    76 
       
    77 #endif
       
    78 
       
    79 // End of file