phoneengine/callhandling/src/cpegprstermination.cpp
changeset 22 6bb1b21d2484
parent 21 92ab7f8d0eab
child 51 f39ed5e045e0
equal deleted inserted replaced
21:92ab7f8d0eab 22:6bb1b21d2484
    14 * Description:  GPRS termination active object implementation.
    14 * Description:  GPRS termination active object implementation.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 // <-- QT PHONE START --> 
       
    20 // INCLUDE FILES
    19 // INCLUDE FILES
    21 #include "cpegprstermination.h"
    20 #include "cpegprstermination.h"
    22 // #include<ccoutlinterface.h> <CCoUtlInterface.h>
       
    23 #include <talogger.h>
    21 #include <talogger.h>
    24 
    22 
    25 // ============================ MEMBER FUNCTIONS ===============================
    23 // ============================ MEMBER FUNCTIONS ===============================
    26 
    24 
    27 // -----------------------------------------------------------------------------
    25 // -----------------------------------------------------------------------------
    41 //
    39 //
    42 CPEGprsTermination::~CPEGprsTermination()
    40 CPEGprsTermination::~CPEGprsTermination()
    43     {
    41     {
    44     TEFLOGSTRING( KTAOBJECT, "cpecall: CPEGprsTermination::~CPEGprsTermination" );
    42     TEFLOGSTRING( KTAOBJECT, "cpecall: CPEGprsTermination::~CPEGprsTermination" );
    45     Cancel();
    43     Cancel();
    46     //delete iInterface;
       
    47     }
    44     }
    48 
    45 
    49 // -----------------------------------------------------------------------------
    46 // -----------------------------------------------------------------------------
    50 // CPEGprsTermination::StartL
    47 // CPEGprsTermination::StartL
    51 // -----------------------------------------------------------------------------
    48 // -----------------------------------------------------------------------------
    52 //
    49 //
    53 void CPEGprsTermination::StartL()
    50 void CPEGprsTermination::StartL()
    54     {
    51     {
    55     TEFLOGSTRING( KTAINT, "cpecall: CPEGprsTermination::StartL" );
    52     TEFLOGSTRING( KTAINT, "cpecall: CPEGprsTermination::StartL" );
    56 
       
    57     /*Cancel();
       
    58     delete iInterface;
       
    59     iInterface = NULL;
       
    60 
       
    61     iInterface = CCoUtlInterface::NewL();
       
    62     TEFLOGSTRING( KTAREQOUT, "cpecall: CPEGprsTermination::StartL CCoUtlInterface::Terminate()" );
       
    63     iInterface->Terminate( iStatus );
       
    64     SetActive();*/
       
    65     }
    53     }
    66 
    54 
    67 // -----------------------------------------------------------------------------
    55 // -----------------------------------------------------------------------------
    68 // CPEGprsTermination::IsTerminating
    56 // CPEGprsTermination::IsTerminating
    69 // -----------------------------------------------------------------------------
    57 // -----------------------------------------------------------------------------
    70 //
    58 //
    71 TBool CPEGprsTermination::IsTerminating() const
    59 TBool CPEGprsTermination::IsTerminating() const
    72     {
    60     {
    73     TEFLOGSTRING( KTAINT, "cpecall: CPEGprsTermination::IsTerminating" );
    61     TEFLOGSTRING( KTAINT, "cpecall: CPEGprsTermination::IsTerminating" );
    74     /*if ( !iInterface )
       
    75         {
       
    76         return EFalse;
       
    77         }
       
    78     else
       
    79         {
       
    80         CCoUtlInterface::TState current = 
       
    81             iInterface->CurrentState();
       
    82             
       
    83         return 
       
    84             ( current != CCoUtlInterface::EIdle ) &&
       
    85             ( current != CCoUtlInterface::EConfirm );
       
    86         }*/
       
    87     
       
    88     return EFalse;
    62     return EFalse;
    89     }
    63     }
    90 
    64 
    91 // -----------------------------------------------------------------------------
    65 // -----------------------------------------------------------------------------
    92 // CPEGprsTermination::RunL
    66 // CPEGprsTermination::RunL
    93 // -----------------------------------------------------------------------------
    67 // -----------------------------------------------------------------------------
    94 //
    68 //
    95 void CPEGprsTermination::RunL()
    69 void CPEGprsTermination::RunL()
    96     {
    70     {
    97     TEFLOGSTRING2( KTAREQEND, "cpecall: CPEGprsTermination::RunL status: %d", iStatus.Int() );
    71     TEFLOGSTRING2( KTAREQEND, "cpecall: CPEGprsTermination::RunL status: %d", iStatus.Int() );
    98     /*delete iInterface;
       
    99     iInterface = NULL;*/
       
   100     }
    72     }
   101 
    73 
   102 // -----------------------------------------------------------------------------
    74 // -----------------------------------------------------------------------------
   103 // CPEGprsTermination::DoCancel
    75 // CPEGprsTermination::DoCancel
   104 // -----------------------------------------------------------------------------
    76 // -----------------------------------------------------------------------------
   105 //
    77 //
   106 void CPEGprsTermination::DoCancel()
    78 void CPEGprsTermination::DoCancel()
   107     {
    79     {
   108     TEFLOGSTRING( KTAREQEND, "cpecall: CPEGprsTermination::DoCancel" );
    80     TEFLOGSTRING( KTAREQEND, "cpecall: CPEGprsTermination::DoCancel" );
   109     /*if( iInterface )
       
   110         {
       
   111         iInterface->Cancel();
       
   112         }*/
       
   113     }
    81     }
   114 
    82 
   115 // <-- QT PHONE END -->
       
   116  
       
   117 //  End of File  
    83 //  End of File