|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Framework wraper for Playback utility. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef MPMPXPLAYBACKFRAMEWORKWRAPPER_H |
|
19 #define MPMPXPLAYBACKFRAMEWORKWRAPPER_H |
|
20 |
|
21 #include <QObject> |
|
22 #include "mpmpxcommondefs.h" |
|
23 #include "mpcommondefs.h" |
|
24 #include <xqsharablefile.h> |
|
25 |
|
26 class MpMpxPlaybackFrameworkWrapperPrivate; |
|
27 class MpPlaybackData; |
|
28 class QStringList; |
|
29 |
|
30 |
|
31 class MpMpxPlaybackFrameworkWrapper : public QObject |
|
32 { |
|
33 Q_OBJECT |
|
34 |
|
35 friend class MpMpxPlaybackFrameworkWrapperPrivate; |
|
36 |
|
37 public: |
|
38 |
|
39 explicit MpMpxPlaybackFrameworkWrapper( |
|
40 MpCommon::MpViewMode viewMode=MpCommon::DefaultView, TUid hostUid = TUid::Uid( MpCommon::KMusicPlayerUid ), QObject *parent=0 ); |
|
41 virtual ~MpMpxPlaybackFrameworkWrapper(); |
|
42 |
|
43 MpPlaybackData *playbackData(); |
|
44 |
|
45 public slots: |
|
46 |
|
47 void play( QString aFilename ); |
|
48 void play( const XQSharableFile& file ); |
|
49 void playPause(); |
|
50 void stop(); |
|
51 void skipForward(); |
|
52 void skipBackward(); |
|
53 void setPosition( int position ); |
|
54 void setShuffle( bool mode ); |
|
55 void setRepeat( bool mode ); |
|
56 |
|
57 private: |
|
58 |
|
59 Q_DISABLE_COPY(MpMpxPlaybackFrameworkWrapper) |
|
60 MpMpxPlaybackFrameworkWrapperPrivate *d_ptr; |
|
61 |
|
62 }; |
|
63 |
|
64 #endif // MPMPXPLAYBACKFRAMEWORKWRAPPER_H |