systemswstubs/exampledsy/src/dsysae.cpp
changeset 0 0ce1b5ce9557
equal deleted inserted replaced
-1:000000000000 0:0ce1b5ce9557
       
     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 *    It implements the class CDosSaeExample.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #include <e32base.h>
       
    21 #include "DosEventManager.h"
       
    22 #include "DsySae.h"
       
    23 #include "DsyDebug.h"
       
    24 
       
    25 //
       
    26 // ---------------------------------------------------------
       
    27 // CDosSaeExample::NewL
       
    28 // ---------------------------------------------------------
       
    29 //  
       
    30 CDosSaeExample* CDosSaeExample::NewL()
       
    31 {
       
    32 	FLOG(_L("CDosSaeExample::NewL()"));
       
    33 
       
    34 	CDosSaeExample* result = new (ELeave) CDosSaeExample;
       
    35 
       
    36 	CleanupStack::PushL(result);
       
    37 	result->ConstructL();
       
    38 	CleanupStack::Pop();
       
    39 
       
    40 	return result;
       
    41 }
       
    42 
       
    43 
       
    44 //
       
    45 // ---------------------------------------------------------
       
    46 // CDosSaeExample::ConstructL
       
    47 // ---------------------------------------------------------
       
    48 //  
       
    49 void CDosSaeExample::ConstructL()
       
    50 {
       
    51 	FLOG(_L("CDosSaeExample::ConstructL()"));
       
    52 }
       
    53 
       
    54 
       
    55 //
       
    56 // ---------------------------------------------------------
       
    57 // CDosSaeExample::StartSaeL
       
    58 // ---------------------------------------------------------
       
    59 //  
       
    60 TInt CDosSaeExample::StartSaeL()
       
    61 {
       
    62 	FLOG(_L("CDosSaeExample::StartSaeL()"));
       
    63 
       
    64 	EventManager()->PhonePowerOn();
       
    65 	EventManager()->SimState(ESimStateOk);
       
    66 	EventManager()->SecurityCode(EPSSecurityCodeNotRequired);
       
    67 	EventManager()->SimPresentStateChangedL(ESimPresentTrue);
       
    68 
       
    69 	return KErrNone;
       
    70 }
       
    71