multimediacommsengine/mmceshared/src/mcecommessagesource.cpp
branchrcs
changeset 49 64c62431ac08
child 50 1d8943dd8be6
equal deleted inserted replaced
44:fb024d5e35fa 49:64c62431ac08
       
     1 /*
       
     2 * Copyright (c) 2005 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 
       
    21 #include "mcecommessagesource.h"
       
    22 #include "mcemessagesource.h"
       
    23 #include "mcecommediastream.h"
       
    24 #include "mcecomsession.h"
       
    25 #include "mmccinterface.h"
       
    26 
       
    27 #ifdef MCE_COMMON_SERVER_SIDE
       
    28 
       
    29 #include <mmccInterface.h>
       
    30 #include "mcesdpsession.h"
       
    31 #include "mcemediamanager.h"
       
    32 
       
    33 #endif//MCE_COMMON_SERVER_SIDE
       
    34 
       
    35 // ============================ MEMBER FUNCTIONS ===============================
       
    36 
       
    37 
       
    38 
       
    39 // -----------------------------------------------------------------------------
       
    40 // CMceComMessageSink::NewL
       
    41 // -----------------------------------------------------------------------------
       
    42 //
       
    43 CMceComMessageSource* CMceComMessageSource::NewL()
       
    44     {
       
    45     CMceComMessageSource* self = NewLC();
       
    46     CleanupStack::Pop( self );
       
    47     return self;
       
    48     }
       
    49 
       
    50 // -----------------------------------------------------------------------------
       
    51 // CMceComMessageSource::NewLC
       
    52 // -----------------------------------------------------------------------------
       
    53 //
       
    54 CMceComMessageSource* CMceComMessageSource::NewLC()
       
    55     {
       
    56     CMceComMessageSource* self = new (ELeave) CMceComMessageSource();
       
    57     CleanupStack::PushL( self );
       
    58     return self;
       
    59     }
       
    60 
       
    61 // -----------------------------------------------------------------------------
       
    62 // CMceComMessageSource::~CMceComMessageSource
       
    63 // -----------------------------------------------------------------------------
       
    64 //
       
    65 CMceComMessageSource::~CMceComMessageSource()
       
    66     {   
       
    67     }
       
    68 
       
    69 // -----------------------------------------------------------------------------
       
    70 // CMceComMessageSource::CMceComMessageSource
       
    71 // -----------------------------------------------------------------------------
       
    72 //
       
    73 CMceComMessageSource::CMceComMessageSource()
       
    74   : CMceComMediaSource( KMceMessageSource )
       
    75     {
       
    76     }
       
    77 
       
    78 // -----------------------------------------------------------------------------
       
    79 // CMceComMessageSource::CloneL
       
    80 // -----------------------------------------------------------------------------
       
    81 //
       
    82 CMceComMediaSource* CMceComMessageSource::CloneL()
       
    83     {
       
    84     CMceComMessageSource* copy = new (ELeave) CMceComMessageSource();
       
    85     Mem::Copy( copy, this, sizeof(CMceComMediaSource) );
       
    86     return copy;        
       
    87     }
       
    88 
       
    89 
       
    90 // -----------------------------------------------------------------------------
       
    91 // CMceComMessageSource::InternalizeFlatL
       
    92 // -----------------------------------------------------------------------------
       
    93 //
       
    94 void CMceComMessageSource::InternalizeFlatL( RReadStream& aReadStream )
       
    95     {
       
    96     CMceComMediaSource::InternalizeFlatL( aReadStream );
       
    97     }
       
    98 
       
    99 // -----------------------------------------------------------------------------
       
   100 // CMceComMessageSource::ExternalizeFlatL
       
   101 // -----------------------------------------------------------------------------
       
   102 //
       
   103 void CMceComMessageSource::ExternalizeFlatL( RWriteStream& aWriteStream )
       
   104     {
       
   105     CMceComMediaSource::ExternalizeFlatL( aWriteStream );
       
   106     }
       
   107 
       
   108 #ifdef MCE_COMMON_SERVER_SIDE
       
   109 
       
   110 // -----------------------------------------------------------------------------
       
   111 // CMceComMessageSource::MccType
       
   112 // -----------------------------------------------------------------------------
       
   113 //
       
   114 const TUid CMceComMessageSource::MccType()
       
   115     {
       
   116     return KUidMccAnySource;
       
   117     }
       
   118 
       
   119 // -----------------------------------------------------------------------------
       
   120 // CMceComMsrpSource::PrepareL
       
   121 // -----------------------------------------------------------------------------
       
   122 //
       
   123 void CMceComMessageSource::PrepareL()
       
   124     {
       
   125     //NOP  
       
   126     // Not required as the data path for message stream will be handled by applications
       
   127     }
       
   128    
       
   129 #endif//MCE_COMMON_SERVER_SIDE
       
   130