diff -r 000000000000 -r 71ca22bcf22a mmserv/tms/tmsserver/inc/tmsserversession.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mmserv/tms/tmsserver/inc/tmsserversession.h Tue Feb 02 01:08:46 2010 +0200 @@ -0,0 +1,84 @@ +/* + * 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 __TMSSERVERSESSION_H +#define __TMSSERVERSESSION_H + +// INCLUDES +#include +#include +#include "tmsserver.h" +#include "tmsshared.h" + +namespace TMS { + +// FORWARD DECLARATIONS +class TMSServerThread; + +// ----------------------------------------------------------------------------- +// Class Name: TMSServerSession +// +// TMS server session class. +// ----------------------------------------------------------------------------- +class TMSServerSession : public CSession2 + { +public: + + // Constractor + static TMSServerSession* NewL(TMSServer &aServer); + + // Destructor + ~TMSServerSession(); + + void HandleGlobalEffectChange(TInt globalevent); + void HandleRoutingChange(TRoutingMsgBufPckg routinginfo); + +private: + + // Symbian constructors + void ConstructL(); + TMSServerSession(TMSServer& aServer); + + // Client-server message handlers + void ServiceL(const RMessage2& aMessage); + void DispatchMessageL(const RMessage2& aMessage); + void SetMessageQueueHandleL(const RMessage2& aMessage); + void GetTMSCallSessionHandleL(const RMessage2& aMessage); + void GetCodecsCountL(const RMessage2& aMessage, TMSStreamType strmType); + void GetSupportedCodecsL(const RMessage2& aMessage, TMSStreamType strmType); + void SetOutput(const RMessage2& aMessage); + void SetVolLevel(const RMessage2& aMessage); + void SetMicGain(const RMessage2& aMessage); + + // Send notification to the client + void NotifyClient(); + +private: + TMSServer& iServer; + RHandleBase iTMSCallSessionHandle; + TSharedData iShared; + CMMFDevSound* iDevSound; // To get supported codecs + TBool iMsgQueued; + RMsgQueue iMsgQueue; + TmsMsgBuf iMsgBuffer; + }; + +} //namespace TMS + +#endif //__TMSSERVERSESSION_H + +// End of file