diff -r 6b1d113cdff3 -r 6638e7f4bd8f telephonyserverplugins/common_tsy/commontsy/inc/mmtsy/cmmdatalinetsy.h --- a/telephonyserverplugins/common_tsy/commontsy/inc/mmtsy/cmmdatalinetsy.h Mon May 03 13:37:20 2010 +0300 +++ b/telephonyserverplugins/common_tsy/commontsy/inc/mmtsy/cmmdatalinetsy.h Thu May 06 15:10:38 2010 +0100 @@ -1,134 +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 +/* +* 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