equal
deleted
inserted
replaced
19 #ifndef CTELDMAUDIOACCESSORYLISTENER_H |
19 #ifndef CTELDMAUDIOACCESSORYLISTENER_H |
20 #define CTELDMAUDIOACCESSORYLISTENER_H |
20 #define CTELDMAUDIOACCESSORYLISTENER_H |
21 |
21 |
22 // INCLUDE FILES |
22 // INCLUDE FILES |
23 #include <MTelephonyAudioRoutingObserver.h> |
23 #include <MTelephonyAudioRoutingObserver.h> |
24 #include "MTelDMAccessory.h" |
24 #include "mteldmaccessory.h" |
25 |
25 |
26 // FORWARD DECLARATIONS |
26 // FORWARD DECLARATIONS |
27 |
27 |
28 // CLASS DEFINITIONS |
28 // CLASS DEFINITIONS |
29 class CTelephonyAudioRouting; |
29 class CTelephonyAudioRouting; |
33 * |
33 * |
34 * @lib telephonydevicemode.dll |
34 * @lib telephonydevicemode.dll |
35 * @since 3.1 |
35 * @since 3.1 |
36 */ |
36 */ |
37 NONSHARABLE_CLASS( CTelDMAudioAccessoryListener ): public CBase, |
37 NONSHARABLE_CLASS( CTelDMAudioAccessoryListener ): public CBase, |
38 public MTelDMAccessory, |
38 public MTelDMAccessory, |
39 public MTelephonyAudioRoutingObserver |
39 public MTelephonyAudioRoutingObserver |
40 { |
40 { |
41 public: // constructor & destructor |
41 public: // constructor & destructor |
42 |
42 |
43 /** |
43 /** |
44 * Two phase constructor |
44 * Two phase constructor |
52 public: // from MTelDMAccessory |
52 public: // from MTelDMAccessory |
53 |
53 |
54 /** |
54 /** |
55 * See MTelDMAccessory |
55 * See MTelDMAccessory |
56 */ |
56 */ |
57 TBool IsAccessoryAttached(); |
57 TBool IsAccessoryAttached(); |
58 |
58 |
59 /** |
59 /** |
60 * See MTelDMAccessory |
60 * See MTelDMAccessory |
61 */ |
61 */ |
62 TBool IsAnyActiveAccessory(); |
62 TBool IsAnyActiveAccessory(); |
63 |
63 |
64 public: //from MTelephonyAudioRoutingObserver |
64 public: //from MTelephonyAudioRoutingObserver |
65 |
65 |
66 void AvailableOutputsChanged( CTelephonyAudioRouting& |
66 void AvailableOutputsChanged( CTelephonyAudioRouting& |
67 aTelephonyAudioRouting); |
67 aTelephonyAudioRouting); |
68 |
68 |
69 void OutputChanged( CTelephonyAudioRouting& |
69 void OutputChanged( CTelephonyAudioRouting& |
70 aTelephonyAudioRouting); |
70 aTelephonyAudioRouting); |
71 |
71 |
72 void SetOutputComplete( CTelephonyAudioRouting& |
72 void SetOutputComplete( CTelephonyAudioRouting& |
73 aTelephonyAudioRouting, |
73 aTelephonyAudioRouting, |
74 TInt aError); |
74 TInt aError); |
75 private: // Constructor |
75 private: // Constructor |
76 |
76 |
77 /** c++ constructor */ |
77 /** c++ constructor */ |
78 CTelDMAudioAccessoryListener(); |
78 CTelDMAudioAccessoryListener(); |
79 |
79 |
81 void ConstructL(); |
81 void ConstructL(); |
82 |
82 |
83 |
83 |
84 private: |
84 private: |
85 |
85 |
86 // Array of available outputs |
86 // Array of available outputs |
87 RArray<CTelephonyAudioRouting::TAudioOutput> iOutputArray; |
87 RArray<CTelephonyAudioRouting::TAudioOutput> iOutputArray; |
88 |
88 |
89 // Current accessory mode. |
89 // Current accessory mode. |
90 TBool iIsActiveAccessory; |
90 TBool iIsActiveAccessory; |
91 |
91 |