os/mm/devsound/devsoundrefplugin/src/platsec/server/AudioServer/MmfDevSoundCIDeMuxUtility.h
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/mm/devsound/devsoundrefplugin/src/platsec/server/AudioServer/MmfDevSoundCIDeMuxUtility.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,70 @@
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 +// MMFDevSoundCIDeMuxUtility.cpp
1.18 +//
1.19 +//
1.20 +
1.21 +#ifndef MMFDEVSOUNDCIDEMUXUTILITY_H
1.22 +#define MMFDEVSOUNDCIDEMUXUTILITY_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 CMMFDevSoundCIDeMuxUtility;
1.38 +NONSHARABLE_CLASS( CMMFDevSoundCIDeMuxUtility ) : public CBase,
1.39 + public MMMFDevSoundCustomInterfaceDeMuxUtility
1.40 + {
1.41 +public:
1.42 + static CMMFDevSoundCIDeMuxUtility* NewL(MMMFDevSoundCustomInterfaceDeMuxInterface* aInterface);
1.43 + virtual ~CMMFDevSoundCIDeMuxUtility();
1.44 + void ConstructL();
1.45 +
1.46 + // create a custom interface Mux implementation
1.47 + MMMFDevSoundCustomInterfaceDeMuxPlugin* CreateCustomInterfaceDeMuxL(TUid aInterfaceId);
1.48 +
1.49 + // check and process custom commands
1.50 + TInt ProcessCustomInterfaceCommandL(const RMmfIpcMessage& aMessage);
1.51 +
1.52 + // utility functions from MMMFDevSoundCustomInterfaceDeMuxUtility
1.53 + // get all settings at once into client supplied package
1.54 + virtual void GetSyncMessageDataL(const RMmfIpcMessage& aMessage, TMMFDevSoundCIMessageData& aData);
1.55 + virtual void GetAsyncMessageDataL(const RMmfIpcMessage& aMessage, TMMFDevSoundCIMessageData& aData);
1.56 +
1.57 + // read and write to input and output descriptors
1.58 + virtual TInt InputDesLength(const RMmfIpcMessage& aMessage);
1.59 + virtual void ReadFromInputDesL(const RMmfIpcMessage& aMessage, TDes8* aBufToFill);
1.60 + virtual void WriteToOutputDesL(const RMmfIpcMessage& aMessage, TDesC8& aBufToWrite);
1.61 +
1.62 + // message related
1.63 + virtual void CompleteMessage(const RMmfIpcMessage& aMessage, TInt aError);
1.64 +private:
1.65 + CMMFDevSoundCIDeMuxUtility(MMMFDevSoundCustomInterfaceDeMuxInterface* aInterface);
1.66 + MMMFDevSoundCustomInterfaceDeMuxInterface* iInterface;
1.67 + };
1.68 +
1.69 +
1.70 +
1.71 +
1.72 +
1.73 +#endif