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: Playback Data stub for testing mpmpxpbframeworkwrapper |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef MPPLAYBACKDATA_H |
|
19 #define MPPLAYBACKDATA_H |
|
20 |
|
21 #include <QObject> |
|
22 #include <QString> |
|
23 |
|
24 |
|
25 //class declaration |
|
26 class MpPlaybackData : public QObject |
|
27 { |
|
28 Q_OBJECT |
|
29 |
|
30 public: |
|
31 enum SimplifiedPlaybackState { |
|
32 Playing, |
|
33 Paused, |
|
34 Stopped |
|
35 }; |
|
36 |
|
37 explicit MpPlaybackData(); |
|
38 virtual ~MpPlaybackData(); |
|
39 |
|
40 void setDuration( int duration); |
|
41 void setPosition( int position); |
|
42 bool setTitle( const QString& title); |
|
43 bool setAlbum( const QString& album); |
|
44 bool setArtist( const QString& artist); |
|
45 void setAlbumArtUri( const QString& albumArtUri); |
|
46 void setUri( const QString& aUri); |
|
47 void setPlaybackState(const SimplifiedPlaybackState state ); |
|
48 int duration() const; |
|
49 int position() const; |
|
50 const QString& title() const; |
|
51 const QString& album() const; |
|
52 const QString& artist() const; |
|
53 MpPlaybackData::SimplifiedPlaybackState playbackState(); |
|
54 void commitPlaybackInfo(); |
|
55 void handleMediaReady(); |
|
56 |
|
57 |
|
58 public: |
|
59 int mDuration; |
|
60 int mPosition; |
|
61 QString mTitle; |
|
62 QString mAlbum; |
|
63 QString mArtist; |
|
64 SimplifiedPlaybackState mPlaybackState; |
|
65 QString currentAAUri; |
|
66 QString currentUri; |
|
67 TBool mMediaReady; |
|
68 |
|
69 Q_DISABLE_COPY(MpPlaybackData) |
|
70 }; |
|
71 |
|
72 #endif // MPPLAYBACKDATA_H |
|