diff -r 000000000000 -r bde4ae8d615e os/mm/devsound/devsoundrefplugin/src/platsec/SoundDevice/MmfDevSoundCIMuxUtility.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/os/mm/devsound/devsoundrefplugin/src/platsec/SoundDevice/MmfDevSoundCIMuxUtility.h Fri Jun 15 03:10:57 2012 +0200 @@ -0,0 +1,63 @@ +// Copyright (c) 2005-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: +// MmfDevSoundCIMuxUtility.cpp +// +// + +#ifndef MMFDEVSOUNDCIMUXUTILITY_H +#define MMFDEVSOUNDCIMUXUTILITY_H + +#include +#include +#include +#include "MmfDevSoundServerStart.h" +#include "MmfAudioClientServer.h" +#include + + +/** +* @internalTechnology +* @file +*/ + +class CMMFDevSoundCIMuxUtility; +NONSHARABLE_CLASS( CMMFDevSoundCIMuxUtility ) : public CBase, + public MMMFDevSoundCustomInterfaceMuxUtility + { +public: + static CMMFDevSoundCIMuxUtility* NewL(MMMFDevSoundCustomInterfaceChannel* aCustomChannel); + virtual ~CMMFDevSoundCIMuxUtility(); + void ConstructL(); + + // create a custom interface Mux implementation + MMMFDevSoundCustomInterfaceMuxPlugin* CreateCustomInterfaceMuxL(TUid aInterfaceId); + + // from MMMFDevSoundCustomInterfaceMux interface + virtual TInt OpenSlave(TUid, const TDesC8& aPackageBuf); + virtual void CloseSlave(TInt aHandle); + virtual TInt SendSlaveSyncCommand(TInt aHandle, TInt aCommand, const TDesC8& aPackageBuf); + virtual TInt SendSlaveSyncCommandResult(TInt aHandle, TInt aCommand, const TDesC8& aPackageBuf, TDes8& aResultBuf); + virtual void SendSlaveAsyncCommand(TMMFDevSoundCustomInterfaceCommandPackage& aComPackage, TRequestStatus& aStatus, const TDesC8& aPackageBuf); + virtual void SendSlaveAsyncCommandResult(TMMFDevSoundCustomInterfaceCommandPackage& aComPackage, TRequestStatus& aStatus, const TDesC8& aPackageBuf, TDes8& aResultBuf); +private: + CMMFDevSoundCIMuxUtility(MMMFDevSoundCustomInterfaceChannel* aCustomChannel); + + MMMFDevSoundCustomInterfaceChannel* iCustomChannel; + }; + + + + + +#endif