videoplayerapp/videoplayerengine/tsrc/testvideoplayerengine/stub/inc/videoservices.h
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: ?Description |
14 * Description: Declaration of VideoServices Stub |
15 * |
15 * |
16 */ |
16 */ |
|
17 |
|
18 // Version : %version: % |
17 |
19 |
18 #ifndef __VIDEOSERVICES_H__ |
20 #ifndef __VIDEOSERVICES_H__ |
19 #define __VIDEOSERVICES_H__ |
21 #define __VIDEOSERVICES_H__ |
20 |
22 |
21 #include <QStringList> |
23 #include <QStringList> |
22 #include "videoserviceurifetch.h" |
24 #include "videoserviceurifetch.h" |
23 |
25 |
24 //FORWARD CLASS DECLARATION |
26 //FORWARD CLASS DECLARATION |
25 class VideoServiceUriFetch; |
27 class VideoServiceUriFetch; |
26 class VideoServicePlay; |
28 class VideoServicePlay; |
|
29 class VideoServiceView; |
27 class QVideoPlayerEngine; |
30 class QVideoPlayerEngine; |
28 |
31 |
29 class VideoServices : public QObject |
32 class VideoServices : public QObject |
30 { |
33 { |
31 Q_OBJECT |
34 Q_OBJECT |
49 |
52 |
50 enum TVideoService |
53 enum TVideoService |
51 { |
54 { |
52 ENoService, |
55 ENoService, |
53 EUriFetcher, |
56 EUriFetcher, |
54 EPlayback |
57 EPlayback, |
|
58 EView |
55 }; |
59 }; |
56 |
60 |
57 /** |
61 /** |
58 * Returns service active status |
62 * Returns service active status |
59 * |
63 * |
81 |
85 |
82 void setCurrentService(VideoServices::TVideoService service); |
86 void setCurrentService(VideoServices::TVideoService service); |
83 |
87 |
84 Q_DISABLE_COPY(VideoServices) |
88 Q_DISABLE_COPY(VideoServices) |
85 |
89 |
|
90 signals: |
|
91 void activated( int command ); |
|
92 |
86 private: |
93 private: |
87 |
94 |
88 /** |
95 /** |
89 * Singleton instance. |
96 * Singleton instance. |
90 */ |
97 */ |
91 static VideoServices* mInstance; |
98 static VideoServices* mInstance; |
92 |
99 |
93 VideoServiceUriFetch* mServiceUriFetch; |
100 VideoServiceUriFetch* mServiceUriFetch; |
94 |
101 |
95 VideoServicePlay* mServicePlay; |
102 VideoServicePlay* mServicePlay; |
|
103 |
|
104 VideoServiceView* mServiceView; |
96 |
105 |
97 VideoServices::TVideoService mCurrentService; |
106 VideoServices::TVideoService mCurrentService; |
98 |
107 |
99 friend class VideoServiceUriFetch; |
108 friend class VideoServiceUriFetch; |
100 |
109 |
101 friend class VideoServicePlay; |
110 friend class VideoServicePlay; |
|
111 |
|
112 friend class VideoServiceView; |
102 |
113 |
103 public: |
114 public: |
104 |
115 |
105 /** |
116 /** |
106 * Reference count. |
117 * Reference count. |