mpengine/src/mpmpxplaybackframeworkwrapper.cpp
author hgs
Fri, 03 Sep 2010 19:58:01 -0500
changeset 55 f3930dda3342
parent 51 560ce2306a17
child 59 cd9e40a08dda
permissions -rw-r--r--
201035
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
22
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     1
/*
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     3
* All rights reserved.
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     4
* This component and the accompanying materials are made available
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     6
* which accompanies this distribution, and is available
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     8
*
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     9
* Initial Contributors:
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    11
*
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    12
* Contributors:
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    13
*
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    14
* Description: Framework wraper for Playback Utility.
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    15
*
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    16
*/
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    17
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    18
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    19
#include "mpmpxplaybackframeworkwrapper.h"
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    20
#include "mpmpxplaybackframeworkwrapper_p.h"
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    21
#include "mptrace.h"
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    22
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    23
/*!
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    24
    \class MpMpxPlaybackFrameworkWrapper
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    25
    \brief Wrapper for mpx framework utilities.
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    26
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    27
    MPX framework wrapper provides Qt style interface to the MPX framework
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    28
    utilities. Its implementation is hidden using private class data pattern.
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    29
*/
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    30
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    31
/*!
47
hgs
parents: 45
diff changeset
    32
    \fn void volumePropertyChanged( MpCommon::MpVolumeProperty, int value );
hgs
parents: 45
diff changeset
    33
hgs
parents: 45
diff changeset
    34
    This signal is emitted when MPXPlaybackUtility sends a volume related property notification,
hgs
parents: 45
diff changeset
    35
    such as EPbPropertyVolume, EPbPropertyMaxVolume, EPbPropertyMute.
hgs
parents: 45
diff changeset
    36
 */
hgs
parents: 45
diff changeset
    37
hgs
parents: 45
diff changeset
    38
/*!
55
hgs
parents: 51
diff changeset
    39
    \fn void corruptedStop( bool lastSong );
51
hgs
parents: 47
diff changeset
    40
55
hgs
parents: 51
diff changeset
    41
    This signal is emitted when playback encounters a corrupted song. \a lastSong
hgs
parents: 51
diff changeset
    42
    indicates whether this is the last song of the playlist.
hgs
parents: 51
diff changeset
    43
*/
51
hgs
parents: 47
diff changeset
    44
hgs
parents: 47
diff changeset
    45
/*!
hgs
parents: 47
diff changeset
    46
    \fn void fileCorrupted(int fileId);
hgs
parents: 47
diff changeset
    47
hgs
parents: 47
diff changeset
    48
    This signal is emitted when a courrpted song is discovered with fileId.
hgs
parents: 47
diff changeset
    49
 */
hgs
parents: 47
diff changeset
    50
hgs
parents: 47
diff changeset
    51
/*!
22
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    52
 Constructs the utility wrapper.
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    53
 */
55
hgs
parents: 51
diff changeset
    54
MpMpxPlaybackFrameworkWrapper::MpMpxPlaybackFrameworkWrapper( quint32 clientSecureId, MpSongData *songData, QObject *parent )
22
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    55
    : QObject(parent)
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    56
{
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    57
    d_ptr = new MpMpxPlaybackFrameworkWrapperPrivate(this );
55
hgs
parents: 51
diff changeset
    58
    d_ptr->init( clientSecureId, songData );
22
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    59
}
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    60
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    61
/*!
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    62
 Destructs the utility wrapper.
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    63
 */
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    64
MpMpxPlaybackFrameworkWrapper::~MpMpxPlaybackFrameworkWrapper()
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    65
{
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    66
    delete d_ptr;
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    67
}
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    68
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    69
/*!
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    70
 Returns pointer to MpPlaybackData, which is the playback data.
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    71
 */
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    72
MpPlaybackData *MpMpxPlaybackFrameworkWrapper::playbackData()
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    73
{
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    74
    return d_ptr->playbackData();
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    75
}
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    76
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    77
/*!
36
hgs
parents: 35
diff changeset
    78
 Slot to handle play from Uri aFilename
22
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    79
 */
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    80
void MpMpxPlaybackFrameworkWrapper::play( QString aFilename )
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    81
{
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    82
    d_ptr->play( aFilename );
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    83
}
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    84
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    85
/*!
36
hgs
parents: 35
diff changeset
    86
 Slot to handle play from file handle
22
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    87
 */
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    88
void MpMpxPlaybackFrameworkWrapper::play( const XQSharableFile& file)
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    89
{
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    90
    d_ptr->play( file );
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    91
}
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    92
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    93
/*!
47
hgs
parents: 45
diff changeset
    94
 Slot to handle play command
hgs
parents: 45
diff changeset
    95
 */
hgs
parents: 45
diff changeset
    96
void MpMpxPlaybackFrameworkWrapper::play()
hgs
parents: 45
diff changeset
    97
{
hgs
parents: 45
diff changeset
    98
    d_ptr->play();
hgs
parents: 45
diff changeset
    99
}
hgs
parents: 45
diff changeset
   100
hgs
parents: 45
diff changeset
   101
/*!
hgs
parents: 45
diff changeset
   102
 Slot to handle pause command
hgs
parents: 45
diff changeset
   103
 */
hgs
parents: 45
diff changeset
   104
void MpMpxPlaybackFrameworkWrapper::pause()
hgs
parents: 45
diff changeset
   105
{
hgs
parents: 45
diff changeset
   106
    d_ptr->pause();
hgs
parents: 45
diff changeset
   107
}
hgs
parents: 45
diff changeset
   108
hgs
parents: 45
diff changeset
   109
/*!
22
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   110
 Slot to handle a play pause.
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   111
 */
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   112
void MpMpxPlaybackFrameworkWrapper::playPause()
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   113
{
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   114
    d_ptr->playPause();
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   115
}
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   116
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   117
/*!
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   118
 Slot to handle a stop.
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   119
 */
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   120
void MpMpxPlaybackFrameworkWrapper::stop()
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   121
{
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   122
    d_ptr->stop();
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   123
}
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   124
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   125
/*!
35
hgs
parents: 22
diff changeset
   126
 Slot to handle a skip forward.
22
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   127
 */
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   128
void MpMpxPlaybackFrameworkWrapper::skipForward()
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   129
{
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   130
    d_ptr->skipForward();
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   131
}
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   132
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   133
/*!
35
hgs
parents: 22
diff changeset
   134
 Slot to handle seek forward.
hgs
parents: 22
diff changeset
   135
 */
hgs
parents: 22
diff changeset
   136
void MpMpxPlaybackFrameworkWrapper::startSeekForward()
hgs
parents: 22
diff changeset
   137
{
hgs
parents: 22
diff changeset
   138
    d_ptr->startSeekForward();
hgs
parents: 22
diff changeset
   139
}
hgs
parents: 22
diff changeset
   140
hgs
parents: 22
diff changeset
   141
/*!
hgs
parents: 22
diff changeset
   142
 Slot to handle stop seeking.
hgs
parents: 22
diff changeset
   143
 */
hgs
parents: 22
diff changeset
   144
void MpMpxPlaybackFrameworkWrapper::stopSeeking()
hgs
parents: 22
diff changeset
   145
{
hgs
parents: 22
diff changeset
   146
    d_ptr->stopSeeking();
hgs
parents: 22
diff changeset
   147
}
hgs
parents: 22
diff changeset
   148
hgs
parents: 22
diff changeset
   149
/*!
hgs
parents: 22
diff changeset
   150
 Slot to handle a skip backwards.
22
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   151
 */
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   152
void MpMpxPlaybackFrameworkWrapper::skipBackward()
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   153
{
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   154
    d_ptr->skipBackward();
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   155
}
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   156
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   157
/*!
35
hgs
parents: 22
diff changeset
   158
 Slot to handle seek backwards.
hgs
parents: 22
diff changeset
   159
 */
hgs
parents: 22
diff changeset
   160
hgs
parents: 22
diff changeset
   161
void MpMpxPlaybackFrameworkWrapper::startSeekBackward()
hgs
parents: 22
diff changeset
   162
{
hgs
parents: 22
diff changeset
   163
    d_ptr->startSeekBackward();
hgs
parents: 22
diff changeset
   164
}
hgs
parents: 22
diff changeset
   165
hgs
parents: 22
diff changeset
   166
/*!
22
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   167
 Slot to handle a request to change \a position.
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   168
 */
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   169
void MpMpxPlaybackFrameworkWrapper::setPosition( int position )
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   170
{
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   171
    d_ptr->setPosition( position );
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   172
}
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   173
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   174
/*!
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   175
 Slot to handle a request to change shuffle \a mode.
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   176
 */
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   177
void MpMpxPlaybackFrameworkWrapper::setShuffle( bool mode )
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   178
{
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   179
    d_ptr->setShuffle( mode );
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   180
}
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   181
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   182
/*!
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   183
 Slot to handle a request to change repeat \a mode.
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   184
 */
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   185
void MpMpxPlaybackFrameworkWrapper::setRepeat( bool mode )
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   186
{
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   187
    d_ptr->setRepeat( mode );
ecf06a08d4d9 Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   188
}
35
hgs
parents: 22
diff changeset
   189
hgs
parents: 22
diff changeset
   190
/*!
47
hgs
parents: 45
diff changeset
   191
 Slot to handle a request to get the volume level Max.
hgs
parents: 45
diff changeset
   192
 Response will be asynchronously sent through volumePropertyChanged() signal.
hgs
parents: 45
diff changeset
   193
 */
hgs
parents: 45
diff changeset
   194
void MpMpxPlaybackFrameworkWrapper::getMaxVolume()
hgs
parents: 45
diff changeset
   195
{
hgs
parents: 45
diff changeset
   196
    d_ptr->getMaxVolume();
hgs
parents: 45
diff changeset
   197
}
hgs
parents: 45
diff changeset
   198
hgs
parents: 45
diff changeset
   199
/*!
hgs
parents: 45
diff changeset
   200
 Slot to handle a request to get the current volume level.
hgs
parents: 45
diff changeset
   201
 Response will be asynchronously sent through volumePropertyChanged() signal.
hgs
parents: 45
diff changeset
   202
 */
hgs
parents: 45
diff changeset
   203
void MpMpxPlaybackFrameworkWrapper::getVolume()
hgs
parents: 45
diff changeset
   204
{
hgs
parents: 45
diff changeset
   205
    d_ptr->getVolume();
hgs
parents: 45
diff changeset
   206
}
hgs
parents: 45
diff changeset
   207
hgs
parents: 45
diff changeset
   208
/*!
hgs
parents: 45
diff changeset
   209
 Slot to handle a request to increase volume.
hgs
parents: 45
diff changeset
   210
 */
hgs
parents: 45
diff changeset
   211
void MpMpxPlaybackFrameworkWrapper::increaseVolume()
hgs
parents: 45
diff changeset
   212
{
hgs
parents: 45
diff changeset
   213
    d_ptr->increaseVolume();
hgs
parents: 45
diff changeset
   214
}
hgs
parents: 45
diff changeset
   215
hgs
parents: 45
diff changeset
   216
/*!
hgs
parents: 45
diff changeset
   217
 Slot to handle a request to decrease volume.
hgs
parents: 45
diff changeset
   218
 */
hgs
parents: 45
diff changeset
   219
void MpMpxPlaybackFrameworkWrapper::decreaseVolume()
hgs
parents: 45
diff changeset
   220
{
hgs
parents: 45
diff changeset
   221
    d_ptr->decreaseVolume();
hgs
parents: 45
diff changeset
   222
}
hgs
parents: 45
diff changeset
   223
hgs
parents: 45
diff changeset
   224
/*!
hgs
parents: 45
diff changeset
   225
 Slot to handle a request to set the volume level.
hgs
parents: 45
diff changeset
   226
 */
hgs
parents: 45
diff changeset
   227
void MpMpxPlaybackFrameworkWrapper::setVolume( int value )
hgs
parents: 45
diff changeset
   228
{
hgs
parents: 45
diff changeset
   229
    d_ptr->setVolume( value );
hgs
parents: 45
diff changeset
   230
}
hgs
parents: 45
diff changeset
   231
hgs
parents: 45
diff changeset
   232
/*!
hgs
parents: 45
diff changeset
   233
 Slot to handle a request to get the current mute state.
hgs
parents: 45
diff changeset
   234
 Response will be asynchronously sent through volumePropertyChanged() signal.
hgs
parents: 45
diff changeset
   235
 */
hgs
parents: 45
diff changeset
   236
void MpMpxPlaybackFrameworkWrapper::getMuteState()
hgs
parents: 45
diff changeset
   237
{
hgs
parents: 45
diff changeset
   238
    d_ptr->getMuteState();
hgs
parents: 45
diff changeset
   239
}
hgs
parents: 45
diff changeset
   240
hgs
parents: 45
diff changeset
   241
/*!
hgs
parents: 45
diff changeset
   242
 Slot to handle a request to mute.
hgs
parents: 45
diff changeset
   243
 */
hgs
parents: 45
diff changeset
   244
void MpMpxPlaybackFrameworkWrapper::mute()
hgs
parents: 45
diff changeset
   245
{
hgs
parents: 45
diff changeset
   246
    d_ptr->mute();
hgs
parents: 45
diff changeset
   247
}
hgs
parents: 45
diff changeset
   248
hgs
parents: 45
diff changeset
   249
/*!
hgs
parents: 45
diff changeset
   250
 Slot to handle a request to unmute.
hgs
parents: 45
diff changeset
   251
 */
hgs
parents: 45
diff changeset
   252
void MpMpxPlaybackFrameworkWrapper::unmute()
hgs
parents: 45
diff changeset
   253
{
hgs
parents: 45
diff changeset
   254
    d_ptr->unmute();
hgs
parents: 45
diff changeset
   255
}
hgs
parents: 45
diff changeset
   256
hgs
parents: 45
diff changeset
   257
/*!
45
hgs
parents: 43
diff changeset
   258
 Slot to close current playback.
hgs
parents: 43
diff changeset
   259
 */
hgs
parents: 43
diff changeset
   260
void MpMpxPlaybackFrameworkWrapper::closeCurrentPlayback()
hgs
parents: 43
diff changeset
   261
{
hgs
parents: 43
diff changeset
   262
    d_ptr->closeCurrentPlayback();
hgs
parents: 43
diff changeset
   263
}
hgs
parents: 43
diff changeset
   264
hgs
parents: 43
diff changeset
   265
/*!
35
hgs
parents: 22
diff changeset
   266
 Change \a balance.
hgs
parents: 22
diff changeset
   267
 */
hgs
parents: 22
diff changeset
   268
void MpMpxPlaybackFrameworkWrapper::setBalance( int balance )
hgs
parents: 22
diff changeset
   269
{
hgs
parents: 22
diff changeset
   270
    d_ptr->setBalance( balance );
hgs
parents: 22
diff changeset
   271
}
hgs
parents: 22
diff changeset
   272
hgs
parents: 22
diff changeset
   273
/*!
hgs
parents: 22
diff changeset
   274
 Send command to apply audio effects.
hgs
parents: 22
diff changeset
   275
 */
hgs
parents: 22
diff changeset
   276
void MpMpxPlaybackFrameworkWrapper::applyAudioEffects()
hgs
parents: 22
diff changeset
   277
{
hgs
parents: 22
diff changeset
   278
    d_ptr->applyAudioEffects();
hgs
parents: 22
diff changeset
   279
}
hgs
parents: 22
diff changeset
   280
hgs
parents: 22
diff changeset
   281
/*!
hgs
parents: 22
diff changeset
   282
 Send command to apply equalizer.
hgs
parents: 22
diff changeset
   283
 */
hgs
parents: 22
diff changeset
   284
void MpMpxPlaybackFrameworkWrapper::applyEqualizer()
hgs
parents: 22
diff changeset
   285
{
hgs
parents: 22
diff changeset
   286
    d_ptr->applyEqualizer();
hgs
parents: 22
diff changeset
   287
}
43
hgs
parents: 36
diff changeset
   288
hgs
parents: 36
diff changeset
   289
/*!
hgs
parents: 36
diff changeset
   290
 Retrieves song details for the currently playing song.
hgs
parents: 36
diff changeset
   291
 */
hgs
parents: 36
diff changeset
   292
void MpMpxPlaybackFrameworkWrapper::retrieveSongDetails()
hgs
parents: 36
diff changeset
   293
{
hgs
parents: 36
diff changeset
   294
    d_ptr->retrieveSongDetails();
hgs
parents: 36
diff changeset
   295
}
hgs
parents: 36
diff changeset
   296