equal
deleted
inserted
replaced
90 void Reset(); // Reset the volume level. |
90 void Reset(); // Reset the volume level. |
91 |
91 |
92 TInt GetLocalMaxVolume(); |
92 TInt GetLocalMaxVolume(); |
93 |
93 |
94 TInt GetCurrentLocalVolume(); |
94 TInt GetCurrentLocalVolume(); |
|
95 |
|
96 TInt GetCurrentRemoteVolume(); |
95 |
97 |
96 void AccessoryChangedVolume(TInt aVolumeInPhoneScale); |
98 void AccessoryChangedVolume(TInt aVolumeInPhoneScale); |
97 |
99 |
98 virtual void DoStart(TInt aInitialVolume) = 0; // Starts monitoring for volume level changes. |
100 virtual void DoStart(TInt aInitialVolume) = 0; // Starts monitoring for volume level changes. |
99 |
101 |
104 virtual void VolumeControlError(TInt aError); |
106 virtual void VolumeControlError(TInt aError); |
105 |
107 |
106 virtual void RegisterVolumeChangeNotification(); |
108 virtual void RegisterVolumeChangeNotification(); |
107 |
109 |
108 private: |
110 private: |
109 void SetPhoneVolume(); |
111 void SetPhoneVolume(TInt aRemoteVol); |
|
112 TInt GetPhoneVolume(TInt &aVol); |
110 |
113 |
111 private: // New methods |
114 private: // New methods |
112 |
115 |
113 /** |
116 /** |
114 * To be implemented by the specialization class. |
117 * To be implemented by the specialization class. |
115 */ |
118 */ |
116 virtual void AdjustRemoteVolume(TInt aVolume) = 0; |
119 virtual void AdjustRemoteVolume(TInt aVolume) = 0; |
117 |
120 virtual TInt RoundRemoteVolume(TInt aPrevPhVol); |
118 protected: |
121 virtual void ScalePhoneVolume(TInt& aVolume); |
119 virtual TInt GetPhoneVolume(TInt &aVol); |
122 |
120 |
|
121 private: // Data |
123 private: // Data |
122 RProperty iVolLevelProperty; // owned |
124 RProperty iVolLevelProperty; // owned |
123 RProperty iVolKeyEventProperty; // owned |
125 RProperty iVolKeyEventProperty; // owned |
124 |
126 |
125 // This active object listens to the PS key changes. |
127 // This active object listens to the PS key changes. |