|
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 #ifndef T_CTELEPHONYAUDIOROUTINGDATA_H_ |
|
20 #define T_CTELEPHONYAUDIOROUTINGDATA_H_ |
|
21 |
|
22 //User includes |
|
23 #include "DataWrapperBase.h" |
|
24 |
|
25 //Epoc includes |
|
26 #include <mtelephonyaudioroutingobserver.h>//MTelephonyAudioRoutingObserver |
|
27 #include <telephonyaudiorouting.h>//CTelephonyAudioRouting |
|
28 /** |
|
29 * This class tests the CTelephonyAudioRouting API's |
|
30 */ |
|
31 |
|
32 class CT_CTelephonyAudioRoutingData : public CDataWrapperBase, public MTelephonyAudioRoutingObserver |
|
33 { |
|
34 public: |
|
35 ~CT_CTelephonyAudioRoutingData(); |
|
36 static CT_CTelephonyAudioRoutingData* NewL(); |
|
37 virtual TAny* GetObject(); |
|
38 virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); |
|
39 |
|
40 private: |
|
41 CT_CTelephonyAudioRoutingData(); |
|
42 // void ConstructL(); |
|
43 void DestroyData(); |
|
44 |
|
45 public: |
|
46 /** |
|
47 * From MAudioOutputObserver |
|
48 */ |
|
49 void AvailableOutputsChanged( CTelephonyAudioRouting& /*aTelephonyAudioRouting*/); |
|
50 void OutputChanged( CTelephonyAudioRouting& /*aTelephonyAudioRouting*/); |
|
51 void SetOutputComplete( CTelephonyAudioRouting& /*aTelephonyAudioRouting*/, TInt aError); |
|
52 |
|
53 protected: |
|
54 void DoCmdNewL(); |
|
55 void DoCmdDestructor(); |
|
56 void DoCmdAvailableOutputs(); |
|
57 void DoCmdOutput(); |
|
58 void DoCmdPreviousOutput(); |
|
59 void DoCmdSetShowNote(const TTEFSectionName& aSection); |
|
60 void DoCmdGetShowNote(); |
|
61 void DoCmdSetOutputL(const TTEFSectionName& aSection); |
|
62 |
|
63 private: |
|
64 /** |
|
65 * Wrapped object |
|
66 */ |
|
67 CTelephonyAudioRouting* iTelephonyAudioRouting; |
|
68 /** |
|
69 * Current output configured |
|
70 */ |
|
71 CTelephonyAudioRouting::TAudioOutput iOutput; |
|
72 /** |
|
73 * Enum for output routing |
|
74 */ |
|
75 static const TEnumEntryTable iEnumOutput[]; |
|
76 }; |
|
77 |
|
78 #endif /*T_CTELEPHONYAUDIOROUTING_H_*/ |