sl@0: // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #ifndef __MMFBTAUDIOSERVERSESSION_H__ sl@0: #define __MMFBTAUDIOSERVERSESSION_H__ sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS sl@0: #include sl@0: #endif sl@0: #include "MmfBtAudioClientServer.h" sl@0: sl@0: sl@0: class CMMFAudioServer; sl@0: class CMMFDevSoundServer; sl@0: sl@0: class CMMFAudioServerSession : public CMmfIpcSession sl@0: /** sl@0: *@internalTechnology sl@0: */ sl@0: { sl@0: public: sl@0: static CMMFAudioServerSession* NewL(TName& aDevSoundServerName); sl@0: ~CMMFAudioServerSession(); sl@0: void CreateL(const CMmfIpcServer& aServer); sl@0: void ServiceL(const RMmfIpcMessage& aMessage); sl@0: TInt AudioServerSessionId(void) {return iAudioServerSessionId;}; sl@0: void SendEventToClient(/*TMMFAudioServerEvent& aEvent*/); sl@0: sl@0: private: sl@0: CMMFAudioServerSession(TName& aDevSoundServerName); sl@0: void ConstructL(); sl@0: TInt DoGetDevSoundServerNameLengthL(const RMmfIpcMessage& aMessage); sl@0: TInt DoGetDevSoundServerNameL(const RMmfIpcMessage& aMessage); sl@0: private: sl@0: TInt iAudioServerSessionId; sl@0: TName iDevSoundServerName; sl@0: CBufFlat* iDevSoundServerNameFlat; sl@0: }; sl@0: sl@0: #endif