mpengine/src/mpmpxplaybackframeworkwrapper.cpp
changeset 48 af3740e3753f
parent 32 c163ef0b758d
child 54 c5b304f4d89b
equal deleted inserted replaced
42:79c49924ae23 48:af3740e3753f
    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  */
    69 {
    76 {
    70     d_ptr->play( file );
    77     d_ptr->play( file );
    71 }
    78 }
    72 
    79 
    73 /*!
    80 /*!
       
    81  Slot to handle play command
       
    82  */
       
    83 void MpMpxPlaybackFrameworkWrapper::play()
       
    84 {
       
    85     d_ptr->play();
       
    86 }
       
    87 
       
    88 /*!
       
    89  Slot to handle pause command
       
    90  */
       
    91 void MpMpxPlaybackFrameworkWrapper::pause()
       
    92 {
       
    93     d_ptr->pause();
       
    94 }
       
    95 
       
    96 /*!
    74  Slot to handle a play pause.
    97  Slot to handle a play pause.
    75  */
    98  */
    76 void MpMpxPlaybackFrameworkWrapper::playPause()
    99 void MpMpxPlaybackFrameworkWrapper::playPause()
    77 {
   100 {
    78     d_ptr->playPause();
   101     d_ptr->playPause();
   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 );
   172  */
   270  */
   173 void MpMpxPlaybackFrameworkWrapper::applyEqualizer()
   271 void MpMpxPlaybackFrameworkWrapper::applyEqualizer()
   174 {
   272 {
   175     d_ptr->applyEqualizer();
   273     d_ptr->applyEqualizer();
   176 }
   274 }
       
   275 
       
   276 /*!
       
   277  Retrieves song details for the currently playing song.
       
   278  */
       
   279 void MpMpxPlaybackFrameworkWrapper::retrieveSongDetails()
       
   280 {
       
   281     d_ptr->retrieveSongDetails();
       
   282 }
       
   283