diff -r 000000000000 -r 71ca22bcf22a mmserv/tms/tmsimpl/inc/tmsglobalroutingbodyimpl.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mmserv/tms/tmsimpl/inc/tmsglobalroutingbodyimpl.h Tue Feb 02 01:08:46 2010 +0200 @@ -0,0 +1,65 @@ +/* + * 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_GLOBAL_ROUTING_BODY_IMPL_H +#define TMS_GLOBAL_ROUTING_BODY_IMPL_H + +#include +#include "tmsglobalroutingbody.h" +#include "tmsqueuehandler.h" +#include "tmsclientserver.h" + +namespace TMS { + +// FORWARD DECLARATIONS +class TMSGlobalRoutingObserver; +class TMSProxy; + +// TMSGlobalRoutingBodyImpl class +class TMSGlobalRoutingBodyImpl : public TMSGlobalRoutingBody + { +public: + static gint Create(TMSGlobalRoutingBody*& bodyimpl); + + // From TMSGlobalRoutingBody + virtual ~TMSGlobalRoutingBodyImpl(); + virtual gint AddObserver(TMSGlobalRoutingObserver& obsrvr, + gpointer user_data); + virtual gint RemoveObserver(TMSGlobalRoutingObserver& obsrvr); + virtual gint SetOutput(const TMSAudioOutput output); + virtual gint GetOutput(TMSAudioOutput& output); + virtual gint GetPreviousOutput(TMSAudioOutput& output); + virtual gint GetAvailableOutputs(OutputVector& outputs); + +private: + TMSGlobalRoutingBodyImpl(); + gint PostConstruct(); + +private: + TMSGlobalRoutingObserver* iObserver; + gint iClientId; + TPckgBuf iIntPckg; + RPointerArray iObserversList; // (not owned) + gpointer iUserData; + TMSProxy* iProxy; + }; + +} //namespace TMS + +#endif // TMS_GLOBAL_ROUTING_BODY_IMPL_H + +// End of file