phonebookui/Phonebook2/ccapplication/ccacontactorservice/inc/ccaphonecall.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 25 May 2010 12:26:45 +0300
branchRCL_3
changeset 35 4ae315f230bc
parent 0 e686773b3f54
child 64 c1e8ba0c2b16
permissions -rw-r--r--
Revision: 201019 Kit: 2010121

/*
* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Launching Calls. 
 *
*/


#ifndef __CCAPHONECALL_H__
#define __CCAPHONECALL_H__

#include <e32base.h>                             

// CLASS DECLARATION
class CAiwDialDataExt;


/**
 * Helper class for launching calls (voice, voip & video)
 *
 *  @code
 *   ?good_class_usage_example(s)
 *  @endcode
 *
 *  @lib
 *  @since S60 v5.0
 */
class CCCAPhoneCall : public CBase
	{
public:
    
    /**
     * Type of call
     */
    enum TCCAPhoneCallType { ECCACallTypeVoice, ECCACallTypeVoIP, ECCACallTypeVideo };

	/**
	 * Establish a call by using a phone number (or voip address)
	 *
	 * @param TDesC8& Phone number
	 * @param aContactLinkArray Streamed contact link array of contact to be communicated at
	 * @param aCallType Is this a cellular Voice, VoIP, or Video call
	 *
	 * @return void 
	 */
	static void ExecuteL( const TDesC& aPhoneNumber,const TDesC8& aContactLinkArray,
	        TCCAPhoneCallType aCallType = ECCACallTypeVoice, TUint32 aServiceId = 0);

private:

	/**
	 * Establish a call by using a phone number
	 *
	 * @param TDesC8& Phone number
	 * @param TBool Is this a VoIP call
	 *
	 * @return void 
	 */
	static void DoAIWCallL( CAiwDialDataExt& aDialData);
	};

#endif // __CCAPHONECALL_H__
// End of File