equal
deleted
inserted
replaced
9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: Implementation of QVideoPlayerEngine |
14 * Description: Implementation of VideoPlayerEngine |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // Version : %version: ou1cpsw#15 % |
18 // Version : %version: 19 % |
19 |
19 |
20 #ifndef VIDEOPLAYERENGINE_H |
20 #ifndef VIDEOPLAYERENGINE_H |
21 #define VIDEOPLAYERENGINE_H |
21 #define VIDEOPLAYERENGINE_H |
22 |
22 |
23 #include <qobject.h> |
23 #include <qobject.h> |
30 |
30 |
31 //FORWARD CLASS DECLARATION |
31 //FORWARD CLASS DECLARATION |
32 |
32 |
33 class MpxViewPlugin; |
33 class MpxViewPlugin; |
34 class VideoServices; |
34 class VideoServices; |
35 class QMpxVideoPlaybackWrapper; |
35 class VideoPlaybackWrapper; |
36 |
36 |
37 /** |
37 /** |
38 * QVideoPlayerEngine |
38 * VideoPlayerEngine |
39 * |
39 * |
40 */ |
40 */ |
41 class VIDEOPLAYERAPP_DLL_EXPORT QVideoPlayerEngine: public QObject |
41 class VIDEOPLAYERAPP_DLL_EXPORT VideoPlayerEngine : public QObject |
42 { |
42 { |
43 Q_OBJECT |
43 Q_OBJECT |
44 |
44 |
45 public: |
45 public: |
46 /** |
46 /** |
47 * Constructor |
47 * Constructor |
48 */ |
48 */ |
49 QVideoPlayerEngine(bool isService = false); |
49 VideoPlayerEngine( bool isService = false ); |
50 |
50 |
51 /** |
51 /** |
52 * Destructor. |
52 * Destructor. |
53 */ |
53 */ |
54 virtual ~QVideoPlayerEngine(); |
54 virtual ~VideoPlayerEngine(); |
55 |
55 |
56 public: |
56 public: |
57 void initialize(); |
57 void initialize(); |
58 void playMedia( QString filePath ); |
58 void playMedia( QString filePath ); |
|
59 void playURI( QString uri ); |
59 void playMedia( RFile file ); |
60 void playMedia( RFile file ); |
60 void setEmbedded(); |
61 void setEmbedded(); |
61 |
62 signals: |
|
63 void applicationReady(); |
|
64 |
62 public slots: |
65 public slots: |
63 void handleCommand( int commandCode ); |
66 void handleCommand( int commandCode ); |
|
67 void viewReadySlot(); |
64 |
68 |
65 private slots: |
69 private slots: |
66 void handleQuit(); |
70 void handleQuit(); |
67 |
71 |
68 private: |
72 private: |
86 bool isPlayServiceInvoked(); |
90 bool isPlayServiceInvoked(); |
87 |
91 |
88 bool shouldExit(); |
92 bool shouldExit(); |
89 |
93 |
90 bool shouldActivateCollectionView(); |
94 bool shouldActivateCollectionView(); |
|
95 |
|
96 void handlePlaybackFailure(int errorCode); |
91 |
97 |
92 private: |
98 private: |
93 bool mIsService; |
99 bool mIsService; |
94 bool mEmbedded; |
100 bool mEmbedded; |
95 bool mDelayedLoadDone; |
101 bool mDelayedLoadDone; |
96 bool mIsPlayService; |
102 bool mIsPlayService; |
97 |
103 |
98 MpxViewPlugin* mCurrentViewPlugin; |
104 MpxViewPlugin* mCurrentViewPlugin; |
99 MpxViewPlugin* mPlaybackViewPlugin; |
105 MpxViewPlugin* mPlaybackViewPlugin; |
100 MpxViewPlugin* mCollectionViewPlugin; |
106 MpxViewPlugin* mCollectionViewPlugin; |
101 MpxViewPlugin* mFileDetailsViewPlugin; |
107 MpxViewPlugin* mFileDetailsViewPlugin; |
102 |
108 |
103 |
109 |
104 QMpxVideoPlaybackWrapper *mPlaybackWrapper; |
110 VideoPlaybackWrapper *mPlaybackWrapper; |
105 |
111 |
106 VideoServices* mVideoServices; |
112 VideoServices* mVideoServices; |
107 |
113 |
108 }; |
114 }; |
109 |
115 |