diff -r 000000000000 -r 3553901f7fa8 telephonyserverplugins/common_tsy/commontsy/inc/mmtsy/cmmdatalinetsy.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/telephonyserverplugins/common_tsy/commontsy/inc/mmtsy/cmmdatalinetsy.h Tue Feb 02 01:41:59 2010 +0200 @@ -0,0 +1,134 @@ +/* +* Copyright (c) 2006-2009 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: +* +*/ + + + +#ifndef CMMDATALINETSY_H +#define CMMDATALINETSY_H + +//INCLUDES +#include "cmmlinetsy.h" +#include "MmTsy_Csd_Defs.h" + +// FORWARD DECLARATIONS +class CMmCallExtInterface; + +// CLASS DECLARATION + +/** + * CMmDataLineTsy implements mode dependent Data Line based functionality + * (defined by Symbian) + */ +NONSHARABLE_CLASS( CMmDataLineTsy ) : public CMmLineTsy + { + public: // Constructors and destructor + + /** + * Two-phased constructor. + * @param aMmPhone Pointer to the Phone object + * @param aMode Line mode + * @param aName Name of this line + * @param aMessageManager Pointer to the MessageManager + * @return Created line object + */ + static CMmDataLineTsy* NewL( CMmPhoneTsy* aMmPhone, + RMobilePhone::TMobileService aMode, const TDesC& aName, + CMmMessageManagerBase* aMessageManager ); + + /** + * Destructor. + */ + ~CMmDataLineTsy(); + + // Functions from base classes + + /** + * This method is used for notifying a client about an incoming call. + * + * + * @param aDataPackage Package containing information about the + * incoming call + */ + void CompleteNotifyIncomingCall( CMmDataPackage* aDataPackage ); + + /** + * This method is used for notifying a line of a call entering + * Dialling state + * + * + * @param aDataPackage Package containing information about the call + */ + void CompleteNotifyDiallingStatus( CMmDataPackage* aDataPackage ); + + /** + * This function creates a new name for a call and opens a new call. + * + * + * @param aName Name of the new call. + * @return CTelObject* Call object that was opened. + */ + CTelObject* OpenNewObjectL( TDes& aNewName ); + + private: // Constructors and destructor + + /** + * C++ default constructor. + */ + CMmDataLineTsy(); + + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(); + + private: // Functions from base classes + + /** + * Creates a call object for the call that has been initiated + * bypassingTSY + * + * + * @param aCallId: Call id of the new call + * @param aCallMode: Call mode + * @param aCallStatus: Call status + * @return CMmCallTsy*: Pointer to created call object + */ + CMmCallTsy* CreateGhostCallObject( + TInt aCallId, + RMobilePhone::TMobileService /*aCallMode*/, + RMobileCall::TMobileCallStatus aCallStatus ); + + /** + * Initialises miscellaneous internal attributes + * + * + */ + void InitInternalAttributesL(); + + /** + * Creates and stores a Call object for incoming call + * + * + * @return TInt Success/failure value + */ + TInt CreateCallObjectForIncomingCall(); + + }; + +#endif // CMMDATALINETSY_H + +// End of File