os/mm/devsound/devsoundrefplugin/src/platsec/SoundDevice/MmfDevSoundCIMuxUtility.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/mm/devsound/devsoundrefplugin/src/platsec/SoundDevice/MmfDevSoundCIMuxUtility.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,63 @@
     1.4 +// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +// MmfDevSoundCIMuxUtility.cpp
    1.18 +// 
    1.19 +//
    1.20 +
    1.21 +#ifndef MMFDEVSOUNDCIMUXUTILITY_H
    1.22 +#define MMFDEVSOUNDCIMUXUTILITY_H
    1.23 +
    1.24 +#include <f32file.h>
    1.25 +#include <e32math.h>
    1.26 +#include <s32mem.h> 
    1.27 +#include "MmfDevSoundServerStart.h"
    1.28 +#include "MmfAudioClientServer.h"
    1.29 +#include <mmf/server/mmfdevsoundcustominterface.h>
    1.30 +
    1.31 +
    1.32 +/**
    1.33 +* @internalTechnology
    1.34 +* @file
    1.35 +*/
    1.36 +
    1.37 +class CMMFDevSoundCIMuxUtility;
    1.38 +NONSHARABLE_CLASS( CMMFDevSoundCIMuxUtility ) : public CBase, 
    1.39 +												public MMMFDevSoundCustomInterfaceMuxUtility
    1.40 +	{
    1.41 +public:
    1.42 +	static CMMFDevSoundCIMuxUtility* NewL(MMMFDevSoundCustomInterfaceChannel* aCustomChannel);
    1.43 +	virtual ~CMMFDevSoundCIMuxUtility();
    1.44 +	void ConstructL();
    1.45 +
    1.46 +	// create a custom interface Mux implementation
    1.47 +	MMMFDevSoundCustomInterfaceMuxPlugin* CreateCustomInterfaceMuxL(TUid aInterfaceId);
    1.48 +	
    1.49 +	// from MMMFDevSoundCustomInterfaceMux interface
    1.50 +	virtual TInt OpenSlave(TUid, const TDesC8& aPackageBuf);
    1.51 +	virtual void CloseSlave(TInt aHandle);
    1.52 +	virtual TInt SendSlaveSyncCommand(TInt aHandle, TInt aCommand, const TDesC8& aPackageBuf);
    1.53 +	virtual TInt SendSlaveSyncCommandResult(TInt aHandle, TInt aCommand, const TDesC8& aPackageBuf, TDes8& aResultBuf); 
    1.54 +	virtual void SendSlaveAsyncCommand(TMMFDevSoundCustomInterfaceCommandPackage& aComPackage, TRequestStatus& aStatus, const TDesC8& aPackageBuf);
    1.55 +	virtual void SendSlaveAsyncCommandResult(TMMFDevSoundCustomInterfaceCommandPackage& aComPackage, TRequestStatus& aStatus, const TDesC8& aPackageBuf, TDes8& aResultBuf);	
    1.56 +private:
    1.57 +	CMMFDevSoundCIMuxUtility(MMMFDevSoundCustomInterfaceChannel* aCustomChannel);
    1.58 +
    1.59 +	MMMFDevSoundCustomInterfaceChannel* iCustomChannel;
    1.60 +	};
    1.61 +
    1.62 +
    1.63 +
    1.64 +
    1.65 +
    1.66 +#endif