First public contribution.
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 // MMFDevSoundCIDeMuxUtility.cpp
18 #ifndef MMFDEVSOUNDCIDEMUXUTILITY_H
19 #define MMFDEVSOUNDCIDEMUXUTILITY_H
24 #include "mmfdevsoundserverstart.h"
25 #include "mmfaudioclientserver.h"
26 #include <mmf/server/mmfdevsoundcustominterface.h>
34 class CMMFDevSoundCIDeMuxUtility;
35 NONSHARABLE_CLASS( CMMFDevSoundCIDeMuxUtility ) : public CBase,
36 public MMMFDevSoundCustomInterfaceDeMuxUtility
39 static CMMFDevSoundCIDeMuxUtility* NewL(MMMFDevSoundCustomInterfaceDeMuxInterface* aInterface);
40 virtual ~CMMFDevSoundCIDeMuxUtility();
43 // create a custom interface Mux implementation
44 MMMFDevSoundCustomInterfaceDeMuxPlugin* CreateCustomInterfaceDeMuxL(TUid aInterfaceId);
46 // check and process custom commands
47 TInt ProcessCustomInterfaceCommandL(const RMmfIpcMessage& aMessage);
49 // utility functions from MMMFDevSoundCustomInterfaceDeMuxUtility
50 // get all settings at once into client supplied package
51 virtual void GetSyncMessageDataL(const RMmfIpcMessage& aMessage, TMMFDevSoundCIMessageData& aData);
52 virtual void GetAsyncMessageDataL(const RMmfIpcMessage& aMessage, TMMFDevSoundCIMessageData& aData);
54 // read and write to input and output descriptors
55 virtual TInt InputDesLength(const RMmfIpcMessage& aMessage);
56 virtual void ReadFromInputDesL(const RMmfIpcMessage& aMessage, TDes8* aBufToFill);
57 virtual void WriteToOutputDesL(const RMmfIpcMessage& aMessage, TDesC8& aBufToWrite);
60 virtual void CompleteMessage(const RMmfIpcMessage& aMessage, TInt aError);
62 CMMFDevSoundCIDeMuxUtility(MMMFDevSoundCustomInterfaceDeMuxInterface* aInterface);
63 MMMFDevSoundCustomInterfaceDeMuxInterface* iInterface;