|
1 /* |
|
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef T_CRESTRICTEDAUDIOOUTPUTDATA_H_ |
|
21 #define T_CRESTRICTEDAUDIOOUTPUTDATA_H_ |
|
22 |
|
23 //User Includes |
|
24 #include "datawrapperbase.h" |
|
25 |
|
26 //Epoc Includes |
|
27 #include <restrictedaudiooutput.h>//CRestrictedAudioOutput |
|
28 #include <restrictedaudiooutputmessagetypes.h> |
|
29 #include <sounddevice.h>//CMMFDevSound |
|
30 |
|
31 /** |
|
32 * This class tests the CRestrictedAudioOutput API's |
|
33 */ |
|
34 |
|
35 class CT_CRestrictedAudioOutputData : public CDataWrapperBase |
|
36 { |
|
37 public: |
|
38 ~CT_CRestrictedAudioOutputData(); |
|
39 static CT_CRestrictedAudioOutputData* NewL(); |
|
40 virtual TAny* GetObject(); |
|
41 virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt /*aAsyncErrorIndex*/); |
|
42 |
|
43 private: |
|
44 void DestroyData(); |
|
45 protected: |
|
46 void DoCmdNewL(const TTEFSectionName& aSection); |
|
47 void DoCmdDestructor(); |
|
48 void DoCmdAppendAllowedOutput(const TTEFSectionName& aSection); |
|
49 void DoCmdRemoveAllowedOutput(const TTEFSectionName& aSection); |
|
50 void DoCmdGetAllowedOutput(const TTEFSectionName& aSection); |
|
51 void DoCmdGetAllowedOutputCount(); |
|
52 void DoCmdReset(); |
|
53 void DoCmdCommit(); |
|
54 |
|
55 private: |
|
56 /** |
|
57 * Wrapped object |
|
58 */ |
|
59 CRestrictedAudioOutput* iRestrictedAudioOutput; |
|
60 /** |
|
61 * Enum that contain allowed output preference |
|
62 */ |
|
63 static const TEnumEntryTable iEnumAllowedOutputPreference[]; |
|
64 }; |
|
65 |
|
66 #endif /*T_CRESTRICTEDAUDIOOUTPUTDATA_H_*/ |