os/mm/devsound/devsoundrefplugin/src/platsec/SoundDevice/MmfDevSoundCIMuxUtility.h
Update contrib.
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // MmfDevSoundCIMuxUtility.cpp
18 #ifndef MMFDEVSOUNDCIMUXUTILITY_H
19 #define MMFDEVSOUNDCIMUXUTILITY_H
24 #include "MmfDevSoundServerStart.h"
25 #include "MmfAudioClientServer.h"
26 #include <mmf/server/mmfdevsoundcustominterface.h>
34 class CMMFDevSoundCIMuxUtility;
35 NONSHARABLE_CLASS( CMMFDevSoundCIMuxUtility ) : public CBase,
36 public MMMFDevSoundCustomInterfaceMuxUtility
39 static CMMFDevSoundCIMuxUtility* NewL(MMMFDevSoundCustomInterfaceChannel* aCustomChannel);
40 virtual ~CMMFDevSoundCIMuxUtility();
43 // create a custom interface Mux implementation
44 MMMFDevSoundCustomInterfaceMuxPlugin* CreateCustomInterfaceMuxL(TUid aInterfaceId);
46 // from MMMFDevSoundCustomInterfaceMux interface
47 virtual TInt OpenSlave(TUid, const TDesC8& aPackageBuf);
48 virtual void CloseSlave(TInt aHandle);
49 virtual TInt SendSlaveSyncCommand(TInt aHandle, TInt aCommand, const TDesC8& aPackageBuf);
50 virtual TInt SendSlaveSyncCommandResult(TInt aHandle, TInt aCommand, const TDesC8& aPackageBuf, TDes8& aResultBuf);
51 virtual void SendSlaveAsyncCommand(TMMFDevSoundCustomInterfaceCommandPackage& aComPackage, TRequestStatus& aStatus, const TDesC8& aPackageBuf);
52 virtual void SendSlaveAsyncCommandResult(TMMFDevSoundCustomInterfaceCommandPackage& aComPackage, TRequestStatus& aStatus, const TDesC8& aPackageBuf, TDes8& aResultBuf);
54 CMMFDevSoundCIMuxUtility(MMMFDevSoundCustomInterfaceChannel* aCustomChannel);
56 MMMFDevSoundCustomInterfaceChannel* iCustomChannel;