telutils/phoneparser/src/CPhoneGsmSsCallHandler.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:  Handler for call concerned SS procedures.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include    "CPhoneGsmSsCallHandler.h"
       
    21 #include    "CPhoneGsmSsCallParser.h"
       
    22 #include    "CPhoneGsmParserResult.h"
       
    23 
       
    24 // ============================ MEMBER FUNCTIONS ===============================
       
    25 
       
    26 // -----------------------------------------------------------------------------
       
    27 // CPhoneGsmSsCallHandler::ProcessL
       
    28 // -----------------------------------------------------------------------------
       
    29 //
       
    30 EXPORT_C void CPhoneGsmSsCallHandler::ProcessL( 
       
    31             CPhoneGsmParserResult& aResult )
       
    32     {
       
    33     switch ( aResult.Uid() )
       
    34         {
       
    35         case KPhoneUidCommand0:
       
    36             ProcessEndOrRejectL();
       
    37             break;
       
    38 
       
    39         case KPhoneUidCommand1:
       
    40             {
       
    41             TInt value = aResult.AuxInformation();
       
    42 
       
    43             if ( !value )
       
    44                 {
       
    45                 ProcessEndAndAcceptL();
       
    46                 }
       
    47             else
       
    48                 {
       
    49                 value--;
       
    50                 ProcessEndCallL( value );
       
    51                 }
       
    52             }
       
    53             break;
       
    54 
       
    55         case KPhoneUidCommand2:
       
    56             {
       
    57             TInt value = aResult.AuxInformation();
       
    58 
       
    59             if ( !value )
       
    60                 {
       
    61                 ProcessSwapL();
       
    62                 }
       
    63             else
       
    64                 {
       
    65                 value--;
       
    66                 ProcessHoldAllCallsExceptL( value );
       
    67                 }
       
    68             }
       
    69             break;
       
    70 
       
    71         case KPhoneUidCommand3:
       
    72             ProcessJoinL();
       
    73             break;
       
    74 
       
    75         case KPhoneUidCommand4:
       
    76             ProcessExplicitCallTransferL();
       
    77             break;
       
    78 
       
    79         default:
       
    80             break;
       
    81         }
       
    82     }   
       
    83 
       
    84 //  End of File