devsound/a3fdevsound/src/mmfdevsoundserver/MmfDevSoundCIDeMuxUtility.h
changeset 0 40261b775718
equal deleted inserted replaced
-1:000000000000 0:40261b775718
       
     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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // MMFDevSoundCIDeMuxUtility.cpp
       
    15 // 
       
    16 //
       
    17 
       
    18 #ifndef MMFDEVSOUNDCIDEMUXUTILITY_H
       
    19 #define MMFDEVSOUNDCIDEMUXUTILITY_H
       
    20 
       
    21 #include <f32file.h>
       
    22 #include <e32math.h>
       
    23 #include <s32mem.h> 
       
    24 #include "mmfdevsoundserverstart.h"
       
    25 #include "mmfaudioclientserver.h"
       
    26 #include <mmf/server/mmfdevsoundcustominterface.h>
       
    27 
       
    28 
       
    29 /**
       
    30 * @internalTechnology
       
    31 * @file
       
    32 */
       
    33 
       
    34 class CMMFDevSoundCIDeMuxUtility;
       
    35 NONSHARABLE_CLASS( CMMFDevSoundCIDeMuxUtility ) :  public CBase,
       
    36 												   public MMMFDevSoundCustomInterfaceDeMuxUtility
       
    37 	{
       
    38 public:
       
    39 	static CMMFDevSoundCIDeMuxUtility* NewL(MMMFDevSoundCustomInterfaceDeMuxInterface* aInterface);
       
    40 	virtual ~CMMFDevSoundCIDeMuxUtility();
       
    41 	void ConstructL();
       
    42 
       
    43 	// create a custom interface Mux implementation
       
    44 	MMMFDevSoundCustomInterfaceDeMuxPlugin* CreateCustomInterfaceDeMuxL(TUid aInterfaceId);
       
    45 	
       
    46 	// check and process custom commands
       
    47 	TInt ProcessCustomInterfaceCommandL(const RMmfIpcMessage& aMessage);
       
    48 	
       
    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);
       
    53 	
       
    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);
       
    58 	
       
    59 	// message related
       
    60 	virtual void CompleteMessage(const RMmfIpcMessage& aMessage, TInt aError);
       
    61 private:
       
    62 	CMMFDevSoundCIDeMuxUtility(MMMFDevSoundCustomInterfaceDeMuxInterface* aInterface);
       
    63 	MMMFDevSoundCustomInterfaceDeMuxInterface* iInterface;
       
    64 	};
       
    65 
       
    66 
       
    67 
       
    68 
       
    69 
       
    70 #endif