multimediacommscontroller/mmccsubcontroller/src/mccsymstreambase.cpp
branchrcs
changeset 49 64c62431ac08
parent 0 1bce908db942
--- a/multimediacommscontroller/mmccsubcontroller/src/mccsymstreambase.cpp	Mon Aug 23 17:50:26 2010 +0300
+++ b/multimediacommscontroller/mmccsubcontroller/src/mccsymstreambase.cpp	Mon Sep 06 17:32:13 2010 +0530
@@ -47,6 +47,7 @@
     MMccResources* aMccResources,
     CMccRtpManager* aManager, 
     TInt aStreamType ) : 
+    iMsrpmanager( NULL ),
     iDatapath( NULL ), 
     iEventhandler( aEventhandler ), 
     iMccResources( aMccResources ),
@@ -59,6 +60,34 @@
     iType( aStreamType )
     {
     }
+    
+    
+    
+// -----------------------------------------------------------------------------
+// CMccSymStreamBase::CMccSymStreamBase
+// C++ default constructor can NOT contain any code, that
+// might leave.
+// -----------------------------------------------------------------------------
+//
+CMccSymStreamBase::CMccSymStreamBase( 
+    TUint32 aMccStreamId, 
+    MAsyncEventHandler* aEventhandler, 
+    MMccResources* aMccResources,
+    CMccMsrpManager* aManager, 
+    TInt aStreamType ) : 
+    iMsrpmanager( aManager ),
+    iDatapath( NULL ), 
+    iEventhandler( aEventhandler ), 
+    iMccResources( aMccResources ),
+    iDatasink( NULL ), 
+    iDatasource( NULL ), 
+    iFmtpAttr( NULL ), 
+    iSoundDevice( NULL ), 
+    iMccStreamId( aMccStreamId ), 
+    iType( aStreamType )
+    {
+    }
+        
 
 // -----------------------------------------------------------------------------
 // CMccSymStreamBase::~CMccSymStreamBase
@@ -477,6 +506,18 @@
         {
         type = KUidMediaTypeVideo;
         }
+    else if (iType == KMccMessageUplinkStream)
+        {
+        
+        static const TUid KUidMediaTypeMessage    = {0x10289999};  //KImplUidMsrpPayloadFormatEncode
+        type = KUidMediaTypeMessage;
+        }
+    else if (iType == KMccMessageDownlinkStream)
+        {
+        
+        static const TUid KUidMediaTypeMessage    = {0x10288888};  //KImplUidMsrpPayloadFormatDecode
+        type = KUidMediaTypeMessage;
+        }
         
     return type;
     }
@@ -487,7 +528,7 @@
 //     
 TBool CMccSymStreamBase::LocalStream() const
     {
-    return ( iType == KMccVideoLocalStream || iType == KMccAudioLocalStream );
+    return ( iType == KMccVideoLocalStream || iType == KMccAudioLocalStream || iType == KMccMessageLocalStream );
     }
 
 // -----------------------------------------------------------------------------