phoneuis/easydialing/edcontactor/inc/edphonecall.h
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:  Launching Calls. 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __EDPHONECALL_H__
       
    20 #define __EDPHONECALL_H__
       
    21 
       
    22 #include <e32base.h>                             
       
    23 
       
    24 // CLASS DECLARATION
       
    25 class CAiwDialDataExt;
       
    26 
       
    27 
       
    28 /**
       
    29  * Helper class for launching calls (voice, voip & video)
       
    30  *
       
    31  *  @code
       
    32  *   ?good_class_usage_example(s)
       
    33  *  @endcode
       
    34  *
       
    35  *  @lib
       
    36  *  @since S60 v5.0
       
    37  */
       
    38 class CEDPhoneCall : public CBase
       
    39 	{
       
    40 public:
       
    41     
       
    42     /**
       
    43      * Type of call
       
    44      */
       
    45     enum TEDPhoneCallType { ECCACallTypeVoice, ECCACallTypeVoIP, ECCACallTypeVideo };
       
    46 
       
    47 	/**
       
    48 	 * Establish a call by using a phone number (or voip address)
       
    49 	 *
       
    50 	 * @param TDesC8& Phone number
       
    51 	 * @param aCallType Is this a cellular Voice, VoIP, or Video call
       
    52 	 * @param aForceCallType Whether to execute call type as forced one. 
       
    53      *                       Currently only voice call type can be variated with this.
       
    54 	 *
       
    55 	 * @return void 
       
    56 	 */
       
    57 	static void ExecuteL( const TDesC& aPhoneNumber, TEDPhoneCallType aCallType, 
       
    58 	        TBool aForcedCallType, 
       
    59 	        TUint32 aServiceId = 0);
       
    60 
       
    61 private:
       
    62 
       
    63 	/**
       
    64 	 * Establish a call by using a phone number
       
    65 	 *
       
    66 	 * @param TDesC8& Phone number
       
    67 	 * @param TBool Is this a VoIP call
       
    68 	 *
       
    69 	 * @return void 
       
    70 	 */
       
    71 	static void DoAIWCallL( CAiwDialDataExt& aDialData);
       
    72 	};
       
    73 
       
    74 #endif // __EDPHONECALL_H__
       
    75 // End of File