telephonyserverplugins/common_tsy/commontsy/inc/mmtsy/cmmdatalinetsy.h
changeset 0 3553901f7fa8
child 24 6638e7f4bd8f
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 /*
       
     2 * Copyright (c) 2006-2009 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:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CMMDATALINETSY_H
       
    21 #define CMMDATALINETSY_H
       
    22 
       
    23 //INCLUDES
       
    24 #include "cmmlinetsy.h"
       
    25 #include "MmTsy_Csd_Defs.h"
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CMmCallExtInterface;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33  * CMmDataLineTsy implements mode dependent Data Line based functionality 
       
    34  * (defined by Symbian)
       
    35  */
       
    36 NONSHARABLE_CLASS( CMmDataLineTsy ) : public CMmLineTsy
       
    37     {
       
    38     public:  // Constructors and destructor
       
    39         
       
    40         /**
       
    41          * Two-phased constructor.
       
    42          * @param aMmPhone Pointer to the Phone object
       
    43          * @param aMode Line mode
       
    44          * @param aName Name of this line
       
    45          * @param aMessageManager Pointer to the MessageManager
       
    46          * @return Created line object 
       
    47          */
       
    48         static CMmDataLineTsy* NewL( CMmPhoneTsy* aMmPhone, 
       
    49             RMobilePhone::TMobileService aMode, const TDesC& aName, 
       
    50             CMmMessageManagerBase* aMessageManager );
       
    51         
       
    52         /**
       
    53          * Destructor.
       
    54          */
       
    55         ~CMmDataLineTsy();
       
    56 
       
    57         // Functions from base classes
       
    58 
       
    59         /**
       
    60          * This method is used for notifying a client about an incoming call.
       
    61          *          
       
    62          *
       
    63          * @param aDataPackage Package containing information about the 
       
    64          * incoming call
       
    65          */
       
    66         void CompleteNotifyIncomingCall( CMmDataPackage* aDataPackage );
       
    67 
       
    68         /**
       
    69          * This method is used for notifying a line of a call entering 
       
    70          * Dialling  state
       
    71          *          
       
    72          *
       
    73          * @param aDataPackage Package containing information about the call
       
    74          */
       
    75         void CompleteNotifyDiallingStatus( CMmDataPackage* aDataPackage );
       
    76 
       
    77         /**
       
    78          * This function creates a new name for a call and opens a new call.
       
    79          *          
       
    80          *
       
    81          * @param aName Name of the new call.
       
    82          * @return CTelObject* Call object that was opened.
       
    83          */
       
    84         CTelObject* OpenNewObjectL( TDes& aNewName );
       
    85         
       
    86     private:  // Constructors and destructor
       
    87 
       
    88         /**
       
    89          * C++ default constructor.
       
    90          */
       
    91         CMmDataLineTsy();
       
    92 
       
    93         /**
       
    94          * By default Symbian 2nd phase constructor is private.
       
    95          */
       
    96         void ConstructL();
       
    97 
       
    98     private:  // Functions from base classes
       
    99 
       
   100         /**
       
   101          * Creates a call object for the call that has been initiated  
       
   102          * bypassingTSY
       
   103          *          
       
   104          *
       
   105          * @param aCallId: Call id of the new call
       
   106          * @param aCallMode: Call mode
       
   107          * @param aCallStatus: Call status
       
   108          * @return CMmCallTsy*: Pointer to created call object
       
   109          */
       
   110         CMmCallTsy* CreateGhostCallObject(
       
   111             TInt aCallId, 
       
   112             RMobilePhone::TMobileService /*aCallMode*/,
       
   113             RMobileCall::TMobileCallStatus aCallStatus );
       
   114 
       
   115         /**
       
   116          * Initialises miscellaneous internal attributes
       
   117          *          
       
   118          *
       
   119          */
       
   120         void InitInternalAttributesL();
       
   121 
       
   122         /**
       
   123          * Creates and stores a Call object for incoming call
       
   124          *          
       
   125          *
       
   126          * @return TInt Success/failure value
       
   127          */
       
   128         TInt CreateCallObjectForIncomingCall();
       
   129         
       
   130     };
       
   131 
       
   132 #endif // CMMDATALINETSY_H
       
   133             
       
   134 // End of File