multimediacommscontroller/mmccsubcontroller/src/mccsubthreadclientbase.cpp
branchrcs
changeset 49 64c62431ac08
parent 0 1bce908db942
equal deleted inserted replaced
44:fb024d5e35fa 49:64c62431ac08
    19 
    19 
    20 
    20 
    21 // INCLUDE FILES
    21 // INCLUDE FILES
    22 #include "mccsubthreadclientbase.h"
    22 #include "mccsubthreadclientbase.h"
    23 #include "mccrtpmanager.h"
    23 #include "mccrtpmanager.h"
       
    24 #include "mccmsrpmanager.h"
    24 #include "mccsubcontrollerlogs.h"
    25 #include "mccsubcontrollerlogs.h"
    25 #include "mccsymstreambase.h"
    26 #include "mccsymstreambase.h"
       
    27 #include "mmccinterfacedef.h"
    26 
    28 
    27 
    29 
    28 // ============================ MEMBER FUNCTIONS ===============================
    30 // ============================ MEMBER FUNCTIONS ===============================
    29 
    31 
    30 // -----------------------------------------------------------------------------
    32 // -----------------------------------------------------------------------------
    38     iObserver = NULL;
    40     iObserver = NULL;
    39     }
    41     }
    40 
    42 
    41 // -----------------------------------------------------------------------------
    43 // -----------------------------------------------------------------------------
    42 // CMccSubThreadClientBase::GetCodecL
    44 // CMccSubThreadClientBase::GetCodecL
       
    45 // Returns the used codec
       
    46 // -----------------------------------------------------------------------------
       
    47 void CMccSubThreadClientBase::GetCodecL( const TUint32 /*aStreamId*/,
       
    48                                          TMccCodecInfo& aCodec )
       
    49     {   
       
    50     TFourCC nullFourCC;
       
    51     if( nullFourCC == iCodecInfo.iFourCC )
       
    52         {
       
    53         //User::Leave( KErrNotReady );
       
    54         }
       
    55     else
       
    56         {
       
    57         aCodec = iCodecInfo;
       
    58         }
       
    59     }
       
    60 
       
    61 
       
    62 // -----------------------------------------------------------------------------
       
    63 // CMccSubThreadClientBase::CodecInformationL
    43 // Returns the used codec
    64 // Returns the used codec
    44 // -----------------------------------------------------------------------------
    65 // -----------------------------------------------------------------------------
    45 void CMccSubThreadClientBase::CodecInformationL( TUint32 aStreamId,
    66 void CMccSubThreadClientBase::CodecInformationL( TUint32 aStreamId,
    46                                                  TMccCodecInfo& aCodec )
    67                                                  TMccCodecInfo& aCodec )
    47     {
    68     {
   103     {
   124     {
   104     User::Leave( KErrNotSupported );    
   125     User::Leave( KErrNotSupported );    
   105     }
   126     }
   106 
   127 
   107 // -----------------------------------------------------------------------------
   128 // -----------------------------------------------------------------------------
       
   129 // CMccSubThreadClientBase::SetRemoteMsrpPathL
       
   130 // Sets the remote msrp path of uplink stream
       
   131 // -----------------------------------------------------------------------------
       
   132 void CMccSubThreadClientBase::SetRemoteMsrpPathL( TDes8& /*aRemAddr*/, TDes8& /*aConnStatus*/ )
       
   133     {
       
   134     User::Leave( KErrNotSupported );    
       
   135     }
       
   136 
       
   137 // -----------------------------------------------------------------------------
   108 // CMccSubThreadClientBase::InitializeLinkL
   138 // CMccSubThreadClientBase::InitializeLinkL
   109 // Creates the RTP session in the subthread, STEP #1
   139 // Creates the RTP session in the subthread, STEP #1
   110 // -----------------------------------------------------------------------------
   140 // -----------------------------------------------------------------------------
   111 //
   141 //
   112 void CMccSubThreadClientBase::InitializeLinkL( TRequestStatus& /*aStatus*/, 
   142 void CMccSubThreadClientBase::InitializeLinkL( TRequestStatus& /*aStatus*/, 
   113                                                TInt /*aIapId*/ )
   143                                                TInt /*aIapId*/ )
       
   144     {
       
   145     User::Leave( KErrNotSupported );    
       
   146     }
       
   147 
       
   148 // -----------------------------------------------------------------------------
       
   149 // CMccSubThreadClientBase::InitializeLinkL
       
   150 // Creates the MSRP session in the subthread, STEP #1
       
   151 // -----------------------------------------------------------------------------
       
   152 //
       
   153 void CMccSubThreadClientBase::InitializeLinkL( TRequestStatus& /*aStatus*/, 
       
   154                                                TInt /*aIapId*/,
       
   155                                                HBufC8*& /*aLocalMsrpPath*/ )
   114     {
   156     {
   115     User::Leave( KErrNotSupported );    
   157     User::Leave( KErrNotSupported );    
   116     }
   158     }
   117 
   159 
   118 // -----------------------------------------------------------------------------
   160 // -----------------------------------------------------------------------------
   134 // -----------------------------------------------------------------------------
   176 // -----------------------------------------------------------------------------
   135 //
   177 //
   136 void CMccSubThreadClientBase::SetLinkId( TUint32 aLinkId )
   178 void CMccSubThreadClientBase::SetLinkId( TUint32 aLinkId )
   137     {
   179     {
   138     iLinkId = aLinkId;
   180     iLinkId = aLinkId;
   139     if ( iRtpmanager )
   181     if(this->iLinkType == KMccLinkMessage)
   140         {
   182         {
   141         iRtpmanager->SetLinkId( aLinkId );
   183         iMsrpmanager->SetLinkId( aLinkId );
       
   184         }
       
   185     else
       
   186         {
       
   187         if ( iRtpmanager )
       
   188             {
       
   189             iRtpmanager->SetLinkId( aLinkId );
       
   190             }
   142         }
   191         }
   143     }
   192     }
   144 
   193 
   145 // -----------------------------------------------------------------------------
   194 // -----------------------------------------------------------------------------
   146 // CMccSubThreadClientBase::GetLinkIndex
   195 // CMccSubThreadClientBase::GetLinkIndex
   306         }
   355         }
   307     
   356     
   308     return KErrNotFound;
   357     return KErrNotFound;
   309     }
   358     }
   310 
   359 
       
   360 TInt CMccSubThreadClientBase::GetLinkType()
       
   361     {
       
   362     return iLinkType;
       
   363     }
       
   364 
       
   365 // -----------------------------------------------------------------------------
       
   366 // CMccUlDlClient::SetMsrpObject()
       
   367 // Sets CMSRP object
       
   368 // -----------------------------------------------------------------------------
       
   369 //
       
   370 void CMccSubThreadClientBase::SetMsrpObject(CMSRP* aMsrpObject)
       
   371     {
       
   372     iMsrpmanager->SetMsrpObject(aMsrpObject);
       
   373     }
       
   374 
   311 // ========================== OTHER EXPORTED FUNCTIONS =========================
   375 // ========================== OTHER EXPORTED FUNCTIONS =========================
   312 
   376 
   313 //  End of File  
   377 //  End of File