diff -r 000000000000 -r 71ca22bcf22a mmserv/tms/tmsimpl/inc/tmsclientsinkbodyimpl.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mmserv/tms/tmsimpl/inc/tmsclientsinkbodyimpl.h Tue Feb 02 01:08:46 2010 +0200 @@ -0,0 +1,74 @@ +/* + * Copyright (c) 2009 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: Telephony Multimedia Service + * + */ + +#ifndef TMS_CLIENT_SINK_BODY_IMPL_H +#define TMS_CLIENT_SINK_BODY_IMPL_H + +#include +#include "tmsclientsinkbody.h" +#include "tmsqueuehandler.h" + +namespace TMS { + +// FORWARD DECLARATIONS +class TMSClientSinkObserver; +class TMSBuffer; +class TMSCallProxy; + +// TMSClientSinkBodyImpl class +class TMSClientSinkBodyImpl : public TMSClientSinkBody, + public MQueueHandlerObserver + { +public: + static gint Create(TMSClientSinkBody*& bodyimpl); + // From TMSClientSinkBody begins + + virtual ~TMSClientSinkBodyImpl(); + + virtual gint AddObserver(TMSClientSinkObserver& obsrvr, + gpointer user_data); + + virtual gint RemoveObserver(TMSClientSinkObserver& obsrvr); + + // Push mode + virtual gint BufferProcessed(TMSBuffer* buffer); + + virtual gint GetType(TMSSinkType& sinktype); + + // From TMSClientSinkBody ends + + // From MQueueHandlerObserver starts + virtual void QueueEvent(TInt aEventType, TInt aError, void* user_data); + // From MQueueHandlerObserver ends + + void SetProxy(TMSCallProxy* aProxy, gpointer queuehandler); + +private: + TMSClientSinkBodyImpl(); + gint PostConstruct(); + +private: + TMSClientSinkObserver* iObserver; + gpointer iUserData; + TMSCallProxy* iProxy; + }; + +} //namespace TMS + +#endif // TMS_CLIENT_SINK_BODY_IMPL_H + +// End of file