systemswstubs/exampledsy/src/dsysysutils.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 CDosSysUtilsExample.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #include "DsySysUtils.h"
       
    21 #include "DsyDebug.h"
       
    22 
       
    23 //
       
    24 // ---------------------------------------------------------
       
    25 // CDosSysUtilsExample::NewL
       
    26 // ---------------------------------------------------------
       
    27 //  
       
    28 CDosSysUtilsExample* CDosSysUtilsExample::NewL()
       
    29 {
       
    30 	FLOG(_L("CDosSysUtilsExample::NewL()"));
       
    31 
       
    32 	CDosSysUtilsExample* result = new (ELeave) CDosSysUtilsExample;
       
    33 
       
    34 	CleanupStack::PushL(result);
       
    35 	result->ConstructL();
       
    36 	CleanupStack::Pop();
       
    37 
       
    38 	return result;
       
    39 }
       
    40 
       
    41 
       
    42 //
       
    43 // ---------------------------------------------------------
       
    44 // CDosSysUtilsExample::ConstructL
       
    45 // ---------------------------------------------------------
       
    46 //  
       
    47 void CDosSysUtilsExample::ConstructL()
       
    48 {
       
    49 	FLOG(_L("CDosSysUtilsExample::ConstructL()"));
       
    50 }
       
    51 
       
    52 //
       
    53 // ---------------------------------------------------------
       
    54 // CDosSysUtilsExample::GetSimLanguageL
       
    55 // ---------------------------------------------------------
       
    56 //  
       
    57 TInt CDosSysUtilsExample::GetSimLanguageL(TInt& aSimLanguage)
       
    58 {
       
    59 	FLOG(_L("CDosSysUtilsExample::GetSimLanguageL()"));
       
    60 
       
    61 	//Checks the default language in the SIM card and returns it.
       
    62 
       
    63 	aSimLanguage = 1;
       
    64   
       
    65 	return KErrNone;
       
    66 }
       
    67 
       
    68 //
       
    69 // ---------------------------------------------------------
       
    70 // CDosSysUtilsExample::PerformDosRfsL
       
    71 // ---------------------------------------------------------
       
    72 //  
       
    73 void CDosSysUtilsExample::PerformDosRfsL(TUint /*aReason*/, const RMessagePtr2 aMessage)
       
    74 {
       
    75 	FLOG(_L("CDosSysUtilsExample::PerformDosRfsL()"));
       
    76 
       
    77 	RequestComplete(aMessage,KErrNone);
       
    78 }
       
    79 
       
    80 
       
    81 //
       
    82 // ---------------------------------------------------------
       
    83 // CDosSysUtilsExample::SetDosAlarmL
       
    84 // ---------------------------------------------------------
       
    85 //  
       
    86 TInt CDosSysUtilsExample::SetDosAlarmL(TTime* /*aAlarmTime*/)
       
    87 {
       
    88 	FLOG(_L("CDosSysUtilsExample::SetDosAlarmL()"));
       
    89 
       
    90 	return KErrNone;
       
    91 }
       
    92 
       
    93