|
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 // MmfDevSoundCIMuxUtility.cpp |
|
15 // |
|
16 // |
|
17 |
|
18 #ifndef MMFDEVSOUNDCIMUXUTILITY_H |
|
19 #define MMFDEVSOUNDCIMUXUTILITY_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 CMMFDevSoundCIMuxUtility; |
|
35 NONSHARABLE_CLASS( CMMFDevSoundCIMuxUtility ) : public CBase, |
|
36 public MMMFDevSoundCustomInterfaceMuxUtility |
|
37 { |
|
38 public: |
|
39 static CMMFDevSoundCIMuxUtility* NewL(MMMFDevSoundCustomInterfaceChannel* aCustomChannel); |
|
40 virtual ~CMMFDevSoundCIMuxUtility(); |
|
41 void ConstructL(); |
|
42 |
|
43 // create a custom interface Mux implementation |
|
44 MMMFDevSoundCustomInterfaceMuxPlugin* CreateCustomInterfaceMuxL(TUid aInterfaceId); |
|
45 |
|
46 // from MMMFDevSoundCustomInterfaceMux interface |
|
47 virtual TInt OpenSlave(TUid, const TDesC8& aPackageBuf); |
|
48 virtual void CloseSlave(TInt aHandle); |
|
49 virtual TInt SendSlaveSyncCommand(TInt aHandle, TInt aCommand, const TDesC8& aPackageBuf); |
|
50 virtual TInt SendSlaveSyncCommandResult(TInt aHandle, TInt aCommand, const TDesC8& aPackageBuf, TDes8& aResultBuf); |
|
51 virtual void SendSlaveAsyncCommand(TMMFDevSoundCustomInterfaceCommandPackage& aComPackage, TRequestStatus& aStatus, const TDesC8& aPackageBuf); |
|
52 virtual void SendSlaveAsyncCommandResult(TMMFDevSoundCustomInterfaceCommandPackage& aComPackage, TRequestStatus& aStatus, const TDesC8& aPackageBuf, TDes8& aResultBuf); |
|
53 private: |
|
54 CMMFDevSoundCIMuxUtility(MMMFDevSoundCustomInterfaceChannel* aCustomChannel); |
|
55 |
|
56 MMMFDevSoundCustomInterfaceChannel* iCustomChannel; |
|
57 }; |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 #endif |