equal
deleted
inserted
replaced
33 */ |
33 */ |
34 class TMSCenRepAudioHandler : public TMSPubSubObserver, |
34 class TMSCenRepAudioHandler : public TMSPubSubObserver, |
35 public TMSCenRepObserver |
35 public TMSCenRepObserver |
36 { |
36 { |
37 public: |
37 public: |
38 //Constructors and descructor |
|
39 |
38 |
40 /** |
39 /** |
41 * Two-phased constructing for the monitor. |
40 * Two-phased constructing for the monitor. |
42 * |
41 * |
43 * @param aObserver the observer for getting notification |
42 * @param aObserver the observer for getting notification |
51 */ |
50 */ |
52 virtual ~TMSCenRepAudioHandler(); |
51 virtual ~TMSCenRepAudioHandler(); |
53 |
52 |
54 void SetLoudSpeakerVol(TInt vol); |
53 void SetLoudSpeakerVol(TInt vol); |
55 void SetEarPieceVol(TInt vol); |
54 void SetEarPieceVol(TInt vol); |
|
55 void SetMuteState(TInt mutestate); |
56 |
56 |
57 // from base class TMSPubSubObserver |
57 // from base class TMSPubSubObserver |
58 /** |
58 /** |
59 * Handler for changed event. |
59 * Handler for changed event. |
60 * @param aUid uid of setting |
60 * @param aUid uid of setting |
71 * @param aVal value |
71 * @param aVal value |
72 */ |
72 */ |
73 virtual void HandleNotifyCenRepL(const TUid aUid, const TUint32 aKey, |
73 virtual void HandleNotifyCenRepL(const TUid aUid, const TUint32 aKey, |
74 TInt aVal); |
74 TInt aVal); |
75 |
75 |
76 protected: |
|
77 // From CActive |
|
78 /** |
|
79 * From CActive |
|
80 * RunL |
|
81 */ |
|
82 void RunL(); |
|
83 |
|
84 /** |
|
85 * From CActive |
|
86 * Catches errors if RunL leaves |
|
87 * @param aError error code |
|
88 * @return error code |
|
89 */ |
|
90 TInt RunError(TInt aError); |
|
91 |
|
92 /** |
|
93 * From CActive |
|
94 * Cancels the monitor |
|
95 */ |
|
96 void DoCancel(); |
|
97 |
|
98 private: |
76 private: |
99 /** |
77 /** |
100 * C++ default constructor |
78 * C++ default constructor |
101 * @param aObserver the observer for status change (incoming call) |
79 * @param aObserver the observer for status change (incoming call) |
102 * @param aLine the line associated with the call |
80 * @param aLine the line associated with the call |
108 * Constructs the monitor in the second phase. |
86 * Constructs the monitor in the second phase. |
109 */ |
87 */ |
110 void ConstructL(); |
88 void ConstructL(); |
111 |
89 |
112 private: |
90 private: |
113 // data |
|
114 |
91 |
115 /** |
92 /** |
116 * Mute listening from Publish&Subscribe. |
93 * Mute listening from Publish&Subscribe. |
117 */ |
94 */ |
118 TMSPubSubListener* iMuteListener; |
95 TMSPubSubListener* iMuteListener; |
135 /** |
112 /** |
136 * Call count |
113 * Call count |
137 */ |
114 */ |
138 TInt iCallCount; |
115 TInt iCallCount; |
139 TMSServer* iTMSSer; |
116 TMSServer* iTMSSer; |
|
117 gboolean iPublish; |
140 }; |
118 }; |
141 |
119 |
142 } //namespace TMS |
120 } //namespace TMS |
143 |
121 |
144 #endif // TMSCENREPAUDIOHANDLER_H |
122 #endif // TMSCENREPAUDIOHANDLER_H |