equal
deleted
inserted
replaced
|
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: Plugin interface for Music Player playback view. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef MPPLAYBACKVIEWPLUGIN_H |
|
19 #define MPPLAYBACKVIEWPLUGIN_H |
|
20 |
|
21 #include <QObject> |
|
22 #include <mpxviewpluginqt.h> |
|
23 |
|
24 //forward declartions |
|
25 class MpPlaybackView; |
|
26 |
|
27 //class declaration |
|
28 class MpPlaybackViewPlugin : public MpxViewPlugin |
|
29 { |
|
30 Q_OBJECT |
|
31 |
|
32 public: |
|
33 explicit MpPlaybackViewPlugin(); |
|
34 virtual ~MpPlaybackViewPlugin(); |
|
35 |
|
36 void createView(); |
|
37 void destroyView(); |
|
38 void activateView(); |
|
39 void deactivateView(); |
|
40 QGraphicsWidget *getView(); |
|
41 |
|
42 signals: |
|
43 void command( int command ); |
|
44 |
|
45 public slots: |
|
46 void orientationChange( Qt::Orientation orientation ); |
|
47 void back(); |
|
48 |
|
49 private: |
|
50 enum State { NullView, Created, Initialized, Activated }; |
|
51 MpPlaybackView *mView; //owned |
|
52 State mState; |
|
53 }; |
|
54 |
|
55 #endif // MPPLAYBACKVIEWPLUGIN_H |
|
56 |