--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/multimediacommsengine/mmceshared/inc/mcecommediasink.h Tue Feb 02 01:04:58 2010 +0200
@@ -0,0 +1,141 @@
+/*
+* 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:
+*
+*/
+
+
+
+
+#ifndef CMCECOMMEDIASINK_H
+#define CMCECOMMEDIASINK_H
+
+#include "mcemediasink.h"
+#include "mcecomendpoint.h"
+
+// CONSTANTS
+const TMceSinkType KMceEmptySink = 100;
+const TMceEndpointCategory KMceCategorySink = 2;
+
+#ifdef MCE_COMMON_SERVER_SIDE
+
+class CMceMediaManager;
+
+#endif//MCE_COMMON_SERVER_SIDE
+
+class TMceComSinkFactory;
+class CMceComCodec;
+
+
+/**
+ *
+ *
+ * @lib
+ */
+class CMceComMediaSink : public CMceComEndpoint
+ {
+
+public: // Constructors and destructor
+
+ /**
+ * Constructor
+ */
+ static CMceComMediaSink* NewL();
+
+ /**
+ * Constructor
+ */
+ static CMceComMediaSink* NewLC();
+
+ /**
+ * Desctructor
+ */
+ ~CMceComMediaSink();
+
+public: // from CMceComEndpoint
+
+
+ /**
+ * Internalizes flat data
+ * @param aReadStream read stream
+ */
+ void InternalizeFlatL( RReadStream& aReadStream );
+
+ /**
+ * Externalizes flat data
+ * @param aWriteStream write stream
+ */
+ void ExternalizeFlatL( RWriteStream& aWriteStream );
+
+ /**
+ * Traversal event handler
+ * @param aEvent the event
+ * @return status, if event was consumed or not or object needs update
+ */
+ TInt EventReceivedL( TMceComEvent& aEvent );
+
+
+public: // virtual functions
+
+ /**
+ * Updates this object
+ * @param aUpdate object updates this
+ */
+ virtual void UpdateL( CMceComMediaSink& aUpdate );
+
+ /**
+ * Clones this object
+ * @return the cloned object
+ */
+ virtual CMceComMediaSink* CloneL();
+
+
+public: // new functions
+
+ /**
+ * Factory
+ * @return factory
+ */
+ static TMceComSinkFactory Factory();
+
+#ifdef MCE_COMMON_SERVER_SIDE
+
+ /**
+ * Sets SSRC
+ * @param aSSRC SSRC
+ */
+ virtual void SetSSRC( TUint32 aSSRC );
+
+ /**
+ * Returns mcc type for mcc endpoint
+ * @return mcc type
+ */
+ const TUid MccType();
+
+#endif//MCE_COMMON_SERVER_SIDE
+
+
+protected:
+
+ /**
+ * C++ default constructor.
+ * @param type of sink
+ */
+ CMceComMediaSink( TMceSinkType aType );
+
+
+ };
+
+
+#endif