devsound/devsoundpluginsupport/src/CustomInterfaces/cmmfdevsoundcibitrate.h
author hgs
Fri, 17 Sep 2010 17:01:39 +0100
changeset 59 89a17f5534e9
parent 26 c36d67f77f75
permissions -rw-r--r--
2010wk36_03
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
26
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
     1
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
     2
// All rights reserved.
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
     3
// This component and the accompanying materials are made available
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
     4
// under the terms of "Eclipse Public License v1.0"
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
     5
// which accompanies this distribution, and is available
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
     7
//
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
     8
// Initial Contributors:
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
     9
// Nokia Corporation - initial contribution.
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    10
//
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    11
// Contributors:
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    12
//
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    13
// Description:
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    14
//
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    15
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    16
#ifndef CMMFDEVSOUNDCIBITRATE_H
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    17
#define CMMFDEVSOUNDCIBITRATE_H
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    18
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    19
#include <e32base.h>
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    20
#include <mmf/common/mmfipc.h>
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    21
#ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    22
#include <mmf/common/mmfipcserver.h>
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    23
#endif
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    24
#include <mmf/server/mmfdevsoundcustominterface.h>
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    25
#include <mmf/server/mmfdevsoundcustomcommands.h>
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    26
#include <mmf/server/devsoundstandardcustominterfaces.h>
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    27
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    28
/**
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    29
 @internalComponent
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    30
 @prototype
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    31
 @file
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    32
 */
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    33
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    34
enum TMMFDevSoundCIBitRateCommands
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    35
	{
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    36
	EMMFDevSoundCIBitRateBitRate = 0,
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    37
	EMMFDevSoundCIBitRateSetBitRate,
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    38
	EMMFDevSoundCIBitRateGetSupportedBitRates,
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    39
	EMMFDevSoundCIBitRateGetSupportedBitRatesArray
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    40
	};
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    41
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    42
/**
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    43
 * CMMFDevSoundCIBitRate
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    44
 *
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    45
 * implementation of the BitRate custom interface pair
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    46
 */
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    47
class CMMFDevSoundCIBitRateMux : public CBase,
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    48
			      	 			 public MMMFDevSoundCustomInterfaceMuxPlugin,
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    49
			      	 			 public MMMFDevSoundCustomInterfaceBitRate
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    50
	{
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    51
public:
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    52
	/**
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    53
	Attempt to open the interface.
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    54
	@param aInterfaceId
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    55
		   The UID of the interface to open.
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    56
	@return one of the system wide error codes
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    57
	*/
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    58
	virtual TInt OpenInterface(TUid aInterfaceId);
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    59
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    60
	/**
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    61
	Equivalent to destructor.  Called to destroy plugin.
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    62
	*/
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    63
	virtual void Release();
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    64
	/**
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    65
	Pass destructor key.
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    66
	Called on construction so plugin takes responsibility to call REComSession::DestroyedImplementation()
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    67
	@param aDestructorKey
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    68
	       The Uid returned by REComSession::CreateImplementationL() or similar
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    69
	*/
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    70
	virtual void PassDestructorKey(TUid aDestructorKey);
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    71
	
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    72
	/**
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    73
	Complete construction.
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    74
	Pass additional values from the construction phase, used subsequently by the plugin.
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    75
	@param aCustomUtility
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    76
	       The custom interface utility used by the plugin to communicate with the remote
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    77
		   server side DeMux plugin
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    78
	*/
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    79
	virtual void CompleteConstructL(MMMFDevSoundCustomInterfaceMuxUtility* aCustomUtility);
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    80
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    81
	/** 
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    82
	Return the custom interface
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    83
	@param aInterfaceId
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    84
		   The UID of the required custom interface
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    85
	@return the custom interface supported by this plugin
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    86
	*/
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    87
	virtual TAny* CustomInterface(TUid aInterfaceId);
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    88
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    89
	/**
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    90
	Instantiate a CMMFDevSoundCIBitRateMux class
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    91
	@return the pointer to the new class, cast to the Mux plugin mixin
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    92
	*/
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    93
	static MMMFDevSoundCustomInterfaceMuxPlugin* NewL();
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    94
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    95
protected:
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    96
	// from MMMFDevSoundCustomInterfaceBitRate
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    97
	virtual void GetSupportedBitRatesL(RArray<TInt>& aSupportedBitRates);
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    98
	virtual TInt BitRateL();
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
    99
	virtual void SetBitRateL(TInt aBitRate);
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   100
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   101
	CMMFDevSoundCIBitRateMux();
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   102
	~CMMFDevSoundCIBitRateMux();
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   103
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   104
protected:
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   105
	TUid iKey;
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   106
	TInt iRemoteHandle;
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   107
	MMMFDevSoundCustomInterfaceMuxUtility* iUtility;
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   108
	};
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   109
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   110
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   111
/**
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   112
 * DeMux side of pair
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   113
 */
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   114
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   115
class CMMFDevSoundCIBitRateDeMux : public CBase,
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   116
			      	   			   public MMMFDevSoundCustomInterfaceDeMuxPlugin
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   117
	{
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   118
public:
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   119
	/**
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   120
	Instantiate a CMMFDevSoundCIBitRateDeMux class
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   121
	@return a pointer to the new class cast to the DeMux plugin mixin
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   122
	*/
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   123
	static MMMFDevSoundCustomInterfaceDeMuxPlugin* NewL();
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   124
		
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   125
	/**
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   126
	Attempt to open the interface.
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   127
	@param aInterfaceId
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   128
		   The UID of the interface to open.
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   129
	@return a handle to the remote plugin
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   130
	*/
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   131
	virtual TInt OpenInterface(TUid aInterfaceId);
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   132
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   133
	/**
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   134
	Equivalent to destructor.  Called to destroy plugin.
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   135
	*/
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   136
	virtual void Release();
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   137
	/**
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   138
	Pass destructor key.
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   139
	Called on construction so plugin takes responsibility to call REComSession::DestroyedImplementation()
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   140
	@param aDestructorKey
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   141
	       The Uid returned by REComSession::CreateImplementationL() or similar
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   142
	*/
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   143
	virtual void PassDestructorKey(TUid aDestructorKey);
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   144
	
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   145
	/**
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   146
	Set the target of the custom interface call
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   147
	@param aTarget
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   148
	       The DevSound to call the custom interface on.
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   149
	*/
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   150
	virtual void SetInterfaceTarget(MMMFDevSoundCustomInterfaceTarget* aTarget);
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   151
	
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   152
	/**
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   153
	Complete construction.
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   154
	@param aUtility
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   155
	       The DeMux utility to use
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   156
	*/
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   157
	virtual void CompleteConstructL(MMMFDevSoundCustomInterfaceDeMuxUtility* aUtility);
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   158
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   159
	/**
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   160
	Refresh the current custom interface connections
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   161
	*/
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   162
	virtual void RefreshL();
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   163
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   164
	// from MMMFDeMuxInterface
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   165
	/**
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   166
	Open the slave
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   167
	@param aInterface
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   168
		   The UID of the requested interface
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   169
	@param aPackageBuf
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   170
		   A package of data that can be supplied for initialisation
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   171
	@return the result of the operation
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   172
	 */
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   173
	virtual TInt DoOpenSlaveL(TUid aInterface, const TDesC8& aPackageBuf);
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   174
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   175
	/** 
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   176
	Close the slave
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   177
	@param aHandle
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   178
		   The handle of the slave plugin
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   179
	 */
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   180
	virtual void DoCloseSlaveL(TInt aHandle);
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   181
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   182
	// original RMessage is supplied so that remote demux plugin can extract necessary details
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   183
	// using DeMux utility
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   184
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   185
	/**
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   186
	Relay the synchronous custom command onto the slave
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   187
	@param aMessage
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   188
		   The IPC message to be sent to the slave
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   189
	@return the result of the operation
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   190
	 */
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   191
	virtual TInt DoSendSlaveSyncCommandL(const RMmfIpcMessage& aMessage);
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   192
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   193
	/**
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   194
	Relay the synchronous custom command onto the slave and obtain a result
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   195
	@param aMessage
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   196
		   The IPC message to be sent to the slave
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   197
	@return the result of the operation
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   198
	 */
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   199
	virtual TInt DoSendSlaveSyncCommandResultL(const RMmfIpcMessage& aMessage);
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   200
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   201
	/**
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   202
	Relay an asynchronous command onto the slave
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   203
	@param aMessage
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   204
		   The IPC message to be sent to the slave
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   205
	 */
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   206
	virtual void DoSendSlaveAsyncCommandL(const RMmfIpcMessage& aMessage);
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   207
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   208
	/**
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   209
	Relay an asynchronous command onto the slave and obtain a result
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   210
	@param aMessage
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   211
		   The IPC message to be sent to the slave@param aMessage
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   212
	 */
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   213
	virtual void DoSendSlaveAsyncCommandResultL(const RMmfIpcMessage& aMessage);
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   214
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   215
protected:
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   216
	~CMMFDevSoundCIBitRateDeMux();
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   217
	CMMFDevSoundCIBitRateDeMux();
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   218
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   219
	// implementation of bitrate custom interface
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   220
	void DoGetSupportedBitRatesL(RArray<TInt>& aSupportedBitRates);
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   221
	void DoCopyBitRateBufferToClientL(const RMmfIpcMessage& aMessage);
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   222
	TInt DoBitRateL();
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   223
	void DoSetBitRateL(TInt aBitRate);
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   224
	
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   225
protected:
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   226
	MMMFDevSoundCustomInterfaceDeMuxUtility* iUtility;
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   227
	MMMFDevSoundCustomInterfaceTarget* iTarget;
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   228
	MMMFDevSoundCustomInterfaceBitRate* iBitRateInterface;
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   229
	TUid iKey;
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   230
	
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   231
	// array for bitrates
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   232
	RArray<TInt> iBitRateArray;
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   233
	};
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   234
c36d67f77f75 2010wk21_04
hgs
parents:
diff changeset
   235
#endif