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: // MMFDevSoundCIDeMuxUtility.cpp sl@0: // sl@0: // sl@0: sl@0: #ifndef MMFDEVSOUNDCIDEMUXUTILITY_H sl@0: #define MMFDEVSOUNDCIDEMUXUTILITY_H sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: #include "MmfDevSoundServerStart.h" sl@0: #include "MmfAudioClientServer.h" sl@0: #include sl@0: sl@0: sl@0: /** sl@0: * @internalTechnology sl@0: * @file sl@0: */ sl@0: sl@0: class CMMFDevSoundCIDeMuxUtility; sl@0: NONSHARABLE_CLASS( CMMFDevSoundCIDeMuxUtility ) : public CBase, sl@0: public MMMFDevSoundCustomInterfaceDeMuxUtility sl@0: { sl@0: public: sl@0: static CMMFDevSoundCIDeMuxUtility* NewL(MMMFDevSoundCustomInterfaceDeMuxInterface* aInterface); sl@0: virtual ~CMMFDevSoundCIDeMuxUtility(); sl@0: void ConstructL(); sl@0: sl@0: // create a custom interface Mux implementation sl@0: MMMFDevSoundCustomInterfaceDeMuxPlugin* CreateCustomInterfaceDeMuxL(TUid aInterfaceId); sl@0: sl@0: // check and process custom commands sl@0: TInt ProcessCustomInterfaceCommandL(const RMmfIpcMessage& aMessage); sl@0: sl@0: // utility functions from MMMFDevSoundCustomInterfaceDeMuxUtility sl@0: // get all settings at once into client supplied package sl@0: virtual void GetSyncMessageDataL(const RMmfIpcMessage& aMessage, TMMFDevSoundCIMessageData& aData); sl@0: virtual void GetAsyncMessageDataL(const RMmfIpcMessage& aMessage, TMMFDevSoundCIMessageData& aData); sl@0: sl@0: // read and write to input and output descriptors sl@0: virtual TInt InputDesLength(const RMmfIpcMessage& aMessage); sl@0: virtual void ReadFromInputDesL(const RMmfIpcMessage& aMessage, TDes8* aBufToFill); sl@0: virtual void WriteToOutputDesL(const RMmfIpcMessage& aMessage, TDesC8& aBufToWrite); sl@0: sl@0: // message related sl@0: virtual void CompleteMessage(const RMmfIpcMessage& aMessage, TInt aError); sl@0: private: sl@0: CMMFDevSoundCIDeMuxUtility(MMMFDevSoundCustomInterfaceDeMuxInterface* aInterface); sl@0: MMMFDevSoundCustomInterfaceDeMuxInterface* iInterface; sl@0: }; sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: #endif