phoneuis/easydialing/edcontactor/src/edcontactor.cpp
branchRCL_3
changeset 3 8871b09be73b
equal deleted inserted replaced
2:c84cf270c54f 3:8871b09be73b
       
     1 /*
       
     2 * Copyright (c) 2010 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 the ccacontactor
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include "edcontactorheaders.h"
       
    21 
       
    22 // ============================ MEMBER FUNCTIONS ===============================
       
    23 
       
    24 // -----------------------------------------------------------------------------
       
    25 // EDContactor::ExecuteServiceL()
       
    26 // -----------------------------------------------------------------------------
       
    27 //
       
    28 void CEDContactor::ExecuteServiceL(VPbkFieldTypeSelectorFactory::TVPbkContactActionTypeSelector aCommMethod, const TDesC& aParam, const TDesC& aName, 
       
    29         TBool aForcedService, TUint32 aServiceId)
       
    30     {
       
    31     CEDContactorOperation* operation = 0;
       
    32     
       
    33     switch (aCommMethod)
       
    34         {
       
    35         case VPbkFieldTypeSelectorFactory::EVoiceCallSelector:
       
    36             operation = CEDContactorCallOperation::NewL(aParam, aForcedService);
       
    37             break;
       
    38             
       
    39         case VPbkFieldTypeSelectorFactory::EVideoCallSelector:
       
    40             operation = CEDContactorVideocallOperation::NewL(aParam);
       
    41             break;
       
    42         case VPbkFieldTypeSelectorFactory::EUniEditorSelector:
       
    43             operation = CEDContactorUniEditorOperation::NewL(aParam, aName);
       
    44             break;
       
    45         case VPbkFieldTypeSelectorFactory::EEmailEditorSelector:
       
    46             operation = CEDContactorEmailOperation::NewL(aParam, aName);
       
    47             break;
       
    48         case VPbkFieldTypeSelectorFactory::EVOIPCallSelector:
       
    49             operation = CEDContactorVOIPOperation::NewL(aParam, aServiceId);
       
    50             break;
       
    51         case VPbkFieldTypeSelectorFactory::EInstantMessagingSelector:
       
    52             operation = CEDContactorIMOperation::NewL(aParam);
       
    53             break;
       
    54         
       
    55         }
       
    56     if (operation)
       
    57         {
       
    58         operation->ExecuteLD();
       
    59         operation = NULL;
       
    60         }
       
    61     }
       
    62 // End of File
       
    63