telutils/phoneparser/src/CPhoneVoipNumberHandler.cpp
changeset 0 ff3b6d0fd310
child 19 7d48bed6ce0c
equal deleted inserted replaced
-1:000000000000 0:ff3b6d0fd310
       
     1 /*
       
     2 * Copyright (c) 2008 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 voip numbers.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include    "CPhoneVoipNumberHandler.h"
       
    21 #include    "CPhoneVoipNumberParser.h"
       
    22 #include    "CPhoneGsmParserResult.h"
       
    23 
       
    24 // CONSTANTS
       
    25 const TInt KPhoneVoipNumberDialParam = 0;
       
    26 const TInt KPhoneVoipNumberPostfixParam = 1;
       
    27 
       
    28 // ============================ MEMBER FUNCTIONS ===============================
       
    29 
       
    30 // -----------------------------------------------------------------------------
       
    31 // CPhoneVoipNumberHandler::ProcessL
       
    32 // -----------------------------------------------------------------------------
       
    33 //
       
    34 EXPORT_C void CPhoneVoipNumberHandler::ProcessL( 
       
    35             CPhoneGsmParserResult& aResult )
       
    36     {
       
    37     if ( aResult.Uid() == KPhoneUidVoipNumber )
       
    38         {
       
    39         TPtrC number( aResult.ParameterAt( KPhoneVoipNumberDialParam ) );
       
    40         TPtrC postfix( aResult.ParameterAt( KPhoneVoipNumberPostfixParam ) );
       
    41         ProcessDialToVoipNumberL( number, postfix );
       
    42         }
       
    43     }   
       
    44 
       
    45 //  End of File