multimediacommsengine/mmceshared/src/mcecomexternalsink.cpp
author vnuitven <>
Mon, 06 Sep 2010 17:32:13 +0530
branchrcs
changeset 49 64c62431ac08
child 50 1d8943dd8be6
permissions -rw-r--r--
RCS feature support in MCE/MCC. Provides APIs to do RCS chat and file transfer as per RCS specificaitons. For both os these MCE uses the MSRP protocol.

/*
* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:    
*
*/




#include "mcecomexternalsink.h"
#include "mceexternalsink.h"
#include "mcecommediastream.h"
#include "mcecomsession.h"

#ifdef MCE_COMMON_SERVER_SIDE

#include <mmccInterface.h>
#include "mcesdpsession.h"
#include "mcemediamanager.h"

#endif//MCE_COMMON_SERVER_SIDE

// ============================ MEMBER FUNCTIONS ===============================



// -----------------------------------------------------------------------------
// CMceComAvSink::NewL
// -----------------------------------------------------------------------------
//
CMceComExternalSink* CMceComExternalSink::NewL()
    {
    CMceComExternalSink* self = NewLC();
    CleanupStack::Pop( self );
    return self;
    }

// -----------------------------------------------------------------------------
// CMceComExternalSink::NewLC
// -----------------------------------------------------------------------------
//
CMceComExternalSink* CMceComExternalSink::NewLC()
    {
    CMceComExternalSink* self = new (ELeave) CMceComExternalSink();
    CleanupStack::PushL( self );		
    return self;
    }

// -----------------------------------------------------------------------------
// CMceComExternalSink::~CMceComExternalSink
// -----------------------------------------------------------------------------
//
CMceComExternalSink::~CMceComExternalSink()
    {   
    }

// -----------------------------------------------------------------------------
// CMceComExternalSink::CMceComExternalSink
// -----------------------------------------------------------------------------
//
CMceComExternalSink::CMceComExternalSink()
  : CMceComMediaSink( KMceExternalSink )
    {
    }
	

// -----------------------------------------------------------------------------
// CMceComExternalSink::CloneL
// -----------------------------------------------------------------------------
//
CMceComMediaSink* CMceComExternalSink::CloneL()
    {
    CMceComExternalSink* copy = new (ELeave) CMceComExternalSink();
    Mem::Copy( copy, this, sizeof(CMceComExternalSink) );
    copy->Zero();    
    return copy;
        
    }


// -----------------------------------------------------------------------------
// CMceComExternalSink::InternalizeFlatL
// -----------------------------------------------------------------------------
//
void CMceComExternalSink::InternalizeFlatL( RReadStream& aReadStream )
    {
    CMceComMediaSink::InternalizeFlatL( aReadStream );
    }

// -----------------------------------------------------------------------------
// CMceComExternalSink::ExternalizeFlatL
// -----------------------------------------------------------------------------
//
void CMceComExternalSink::ExternalizeFlatL( RWriteStream& aWriteStream )
    {
    CMceComMediaSink::ExternalizeFlatL( aWriteStream );
    }

#ifdef MCE_COMMON_SERVER_SIDE

// -----------------------------------------------------------------------------
// CMceComExternalSink::MccType
// -----------------------------------------------------------------------------
//
const TUid CMceComExternalSink::MccType()
    {
    return KUidMccAnySink;
    }


// -----------------------------------------------------------------------------
// CMceComExternalSink::PrepareL
// -----------------------------------------------------------------------------
//
void CMceComExternalSink::PrepareL()
    {
    //NOP  // Not required as the data path for message stream will be handled by applications
    }
   
#endif//MCE_COMMON_SERVER_SIDE