phoneplugins/csplugin/src/csprovider.cpp
changeset 64 6aaf0276100e
parent 21 92ab7f8d0eab
child 65 2a5d4ab426d3
equal deleted inserted replaced
56:5bcb308bd24d 64:6aaf0276100e
    52 
    52 
    53 // ---------------------------------------------------------------------------
    53 // ---------------------------------------------------------------------------
    54 // CSProvider::CSProvider
    54 // CSProvider::CSProvider
    55 // ---------------------------------------------------------------------------
    55 // ---------------------------------------------------------------------------
    56 //
    56 //
    57 CSProvider::CSProvider(): iImplementationUid( KCSPImplementationUid )
    57 CSProvider::CSProvider(): iImplementationUid( KCSPImplementationUid ),
       
    58         iCCPObserver( NULL ),
       
    59         iSsObserver( NULL ),
       
    60         iDTMFProvider( NULL ),
       
    61         iIncomingVoiceCallMonitor( NULL ),
       
    62         iIncomingDataCallMonitor( NULL ),
       
    63         iIncomingAuxCallMonitor( NULL ),
       
    64         iCallArray( NULL ),
       
    65         iServiceHandler( NULL ),
       
    66         iInitialized( EFalse ),
       
    67         iCallAddedHandler( NULL ),
       
    68         iServiceId( 0 ),
       
    69         iAudioHandler( NULL ),
       
    70         iCwRequester( NULL ),
       
    71         iSsMonitor( NULL ),
       
    72         iCipheringStatusMonitor( NULL ),
       
    73         iSsSettingsHandler( NULL ),
       
    74         iSimStatusListener( NULL ),
       
    75         iCallCommandHandler( NULL ),
       
    76         iRemoteAlertingToneListener( NULL ),
       
    77         iConferenceStatusMonitor( NULL ),
       
    78         iConferenceCall( NULL )
    58     {
    79     {
    59     CSPLOGSTRING(CSPOBJECT, "CSProvider::CSProvider");
    80     CSPLOGSTRING(CSPOBJECT, "CSProvider::CSProvider");
    60     iInitialized = EFalse;
       
    61     }
    81     }
    62 
    82 
    63 // ---------------------------------------------------------------------------
    83 // ---------------------------------------------------------------------------
    64 // CSProvider::~CSProvider
    84 // CSProvider::~CSProvider
    65 // ---------------------------------------------------------------------------
    85 // ---------------------------------------------------------------------------
   137 void CSProvider::NotifySsEvent( 
   157 void CSProvider::NotifySsEvent( 
   138                     RMmCustomAPI::TSsTypeAndMode& aSsTypeAndMode,
   158                     RMmCustomAPI::TSsTypeAndMode& aSsTypeAndMode,
   139                     RMmCustomAPI::TSsInfo& aSsInfo )
   159                     RMmCustomAPI::TSsInfo& aSsInfo )
   140     {
   160     {
   141     CSPLOGSTRING(CSPINT, "CSProvider::NotifySsEvent <");
   161     CSPLOGSTRING(CSPINT, "CSProvider::NotifySsEvent <");
   142     TBuf<10> addr;
   162     const TDesC& addr = KNullDesC;
   143     
   163     
   144     switch( aSsTypeAndMode.iSsType )
   164     switch( aSsTypeAndMode.iSsType )
   145         {
   165         {
   146         case RMmCustomAPI::ESsAllSs:
   166         case RMmCustomAPI::ESsAllSs:
   147             {
   167             {
   643 // ---------------------------------------------------------------------------
   663 // ---------------------------------------------------------------------------
   644 // From MCSPIncomingCallObserver
   664 // From MCSPIncomingCallObserver
   645 // CSProvider::IncomingCallArrived
   665 // CSProvider::IncomingCallArrived
   646 // ---------------------------------------------------------------------------
   666 // ---------------------------------------------------------------------------
   647 //
   667 //
   648 void CSProvider::IncomingCallArrived( RMobileLine& aLine, TName aCallName,
   668 void CSProvider::IncomingCallArrived( RMobileLine& aLine, const TName& aCallName,
   649                                       RCSPLineContainer::TCSPLineId aLineId )
   669                                       RCSPLineContainer::TCSPLineId aLineId )
   650     {
   670     {
   651     RMobileLine::TLineInfo lineInfo;
   671     RMobileLine::TLineInfo lineInfo;
   652     aLine.GetInfo( lineInfo );
   672     aLine.GetInfo( lineInfo );
   653     CSPLOGSTRING2(CSPINT, "CSProvider::IncomingCallArrived < line id   %d", aLineId );
   673     CSPLOGSTRING2(CSPINT, "CSProvider::IncomingCallArrived < line id   %d", aLineId );
   944 // ---------------------------------------------------------------------------
   964 // ---------------------------------------------------------------------------
   945 // CSProvider::HandleDivertOrBarring
   965 // CSProvider::HandleDivertOrBarring
   946 // Helper method.
   966 // Helper method.
   947 // ---------------------------------------------------------------------------
   967 // ---------------------------------------------------------------------------
   948 //
   968 //
   949 void CSProvider::HandleDivertOrBarring(TDesC& addr, RMmCustomAPI::TSsTypeAndMode& aSsTypeAndMode)
   969 void CSProvider::HandleDivertOrBarring(
       
   970         const TDesC& addr,
       
   971         RMmCustomAPI::TSsTypeAndMode& aSsTypeAndMode )
   950     {
   972     {
   951     CSPLOGSTRING(CSPINT, "CSProvider::HandleDivertOrBarring <");
   973     CSPLOGSTRING(CSPINT, "CSProvider::HandleDivertOrBarring <");
   952     switch ( aSsTypeAndMode.iSsType )
   974     switch ( aSsTypeAndMode.iSsType )
   953         {
   975         {
   954         // MO unconditional diverts
   976         // MO unconditional diverts