27 MPX framework wrapper provides Qt style interface to the MPX framework |
27 MPX framework wrapper provides Qt style interface to the MPX framework |
28 utilities. Its implementation is hidden using private class data pattern. |
28 utilities. Its implementation is hidden using private class data pattern. |
29 */ |
29 */ |
30 |
30 |
31 /*! |
31 /*! |
|
32 \fn void volumePropertyChanged( MpCommon::MpVolumeProperty, int value ); |
|
33 |
|
34 This signal is emitted when MPXPlaybackUtility sends a volume related property notification, |
|
35 such as EPbPropertyVolume, EPbPropertyMaxVolume, EPbPropertyMute. |
|
36 */ |
|
37 |
|
38 /*! |
32 Constructs the utility wrapper. |
39 Constructs the utility wrapper. |
33 */ |
40 */ |
34 MpMpxPlaybackFrameworkWrapper::MpMpxPlaybackFrameworkWrapper( TUid hostUid, QObject *parent ) |
41 MpMpxPlaybackFrameworkWrapper::MpMpxPlaybackFrameworkWrapper( TUid hostUid, MpSongData *songData, QObject *parent ) |
35 : QObject(parent) |
42 : QObject(parent) |
36 { |
43 { |
37 d_ptr = new MpMpxPlaybackFrameworkWrapperPrivate(this ); |
44 d_ptr = new MpMpxPlaybackFrameworkWrapperPrivate(this ); |
38 d_ptr->init( hostUid ); |
45 d_ptr->init( hostUid, songData ); |
39 } |
46 } |
40 |
47 |
41 /*! |
48 /*! |
42 Destructs the utility wrapper. |
49 Destructs the utility wrapper. |
43 */ |
50 */ |
150 { |
173 { |
151 d_ptr->setRepeat( mode ); |
174 d_ptr->setRepeat( mode ); |
152 } |
175 } |
153 |
176 |
154 /*! |
177 /*! |
|
178 Slot to handle a request to get the volume level Max. |
|
179 Response will be asynchronously sent through volumePropertyChanged() signal. |
|
180 */ |
|
181 void MpMpxPlaybackFrameworkWrapper::getMaxVolume() |
|
182 { |
|
183 d_ptr->getMaxVolume(); |
|
184 } |
|
185 |
|
186 /*! |
|
187 Slot to handle a request to get the current volume level. |
|
188 Response will be asynchronously sent through volumePropertyChanged() signal. |
|
189 */ |
|
190 void MpMpxPlaybackFrameworkWrapper::getVolume() |
|
191 { |
|
192 d_ptr->getVolume(); |
|
193 } |
|
194 |
|
195 /*! |
|
196 Slot to handle a request to increase volume. |
|
197 */ |
|
198 void MpMpxPlaybackFrameworkWrapper::increaseVolume() |
|
199 { |
|
200 d_ptr->increaseVolume(); |
|
201 } |
|
202 |
|
203 /*! |
|
204 Slot to handle a request to decrease volume. |
|
205 */ |
|
206 void MpMpxPlaybackFrameworkWrapper::decreaseVolume() |
|
207 { |
|
208 d_ptr->decreaseVolume(); |
|
209 } |
|
210 |
|
211 /*! |
|
212 Slot to handle a request to set the volume level. |
|
213 */ |
|
214 void MpMpxPlaybackFrameworkWrapper::setVolume( int value ) |
|
215 { |
|
216 d_ptr->setVolume( value ); |
|
217 } |
|
218 |
|
219 /*! |
|
220 Slot to handle a request to get the current mute state. |
|
221 Response will be asynchronously sent through volumePropertyChanged() signal. |
|
222 */ |
|
223 void MpMpxPlaybackFrameworkWrapper::getMuteState() |
|
224 { |
|
225 d_ptr->getMuteState(); |
|
226 } |
|
227 |
|
228 /*! |
|
229 Slot to handle a request to mute. |
|
230 */ |
|
231 void MpMpxPlaybackFrameworkWrapper::mute() |
|
232 { |
|
233 d_ptr->mute(); |
|
234 } |
|
235 |
|
236 /*! |
|
237 Slot to handle a request to unmute. |
|
238 */ |
|
239 void MpMpxPlaybackFrameworkWrapper::unmute() |
|
240 { |
|
241 d_ptr->unmute(); |
|
242 } |
|
243 |
|
244 /*! |
|
245 Slot to close current playback. |
|
246 */ |
|
247 void MpMpxPlaybackFrameworkWrapper::closeCurrentPlayback() |
|
248 { |
|
249 d_ptr->closeCurrentPlayback(); |
|
250 } |
|
251 |
|
252 /*! |
155 Change \a balance. |
253 Change \a balance. |
156 */ |
254 */ |
157 void MpMpxPlaybackFrameworkWrapper::setBalance( int balance ) |
255 void MpMpxPlaybackFrameworkWrapper::setBalance( int balance ) |
158 { |
256 { |
159 d_ptr->setBalance( balance ); |
257 d_ptr->setBalance( balance ); |