telutils/phoneparser/src/CPhoneGsmMiscHandler.cpp
changeset 0 ff3b6d0fd310
child 19 7d48bed6ce0c
equal deleted inserted replaced
-1:000000000000 0:ff3b6d0fd310
       
     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:  Implementation of handlers for USSD and IMEI.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include    "CPhoneGsmMiscHandler.h"
       
    21 #include    "CPhoneGsmParserBase.h"
       
    22 #include    "CPhoneGsmParserResult.h"
       
    23 
       
    24 // ============================ MEMBER FUNCTIONS ===============================
       
    25 
       
    26 // -----------------------------------------------------------------------------
       
    27 // CPhoneGsmMiscHandler::ProcessL
       
    28 // -----------------------------------------------------------------------------
       
    29 //
       
    30 EXPORT_C void CPhoneGsmMiscHandler::ProcessL( 
       
    31         CPhoneGsmParserResult& aResult )
       
    32     {
       
    33     TUint uid = aResult.Uid();
       
    34 
       
    35     switch ( uid )
       
    36         {
       
    37         case KPhoneUidUnstructuredService:
       
    38             if ( aResult.CountParameters() )
       
    39                 {
       
    40                 // First parameter is ussd string.
       
    41                 ProcessUssdL( aResult.ParameterAt( 0 ) );
       
    42                 }
       
    43             break;
       
    44 
       
    45         case KPhoneUidIMEI:
       
    46             ProcessShowIMEIL();
       
    47             break;
       
    48 
       
    49         default:
       
    50             break;
       
    51         }
       
    52     }   
       
    53 
       
    54 //  End of File