equal
deleted
inserted
replaced
41 |
41 |
42 #ifndef QT7PLAYERSERVICE_H |
42 #ifndef QT7PLAYERSERVICE_H |
43 #define QT7PLAYERSERVICE_H |
43 #define QT7PLAYERSERVICE_H |
44 |
44 |
45 #include <QtCore/qobject.h> |
45 #include <QtCore/qobject.h> |
|
46 #include <QtCore/qset.h> |
46 #include <qmediaservice.h> |
47 #include <qmediaservice.h> |
47 |
48 |
48 |
49 |
49 QT_BEGIN_NAMESPACE |
50 QT_BEGIN_NAMESPACE |
50 class QMediaMetaData; |
51 class QMediaMetaData; |
51 class QMediaPlayerControl; |
52 class QMediaPlayerControl; |
52 class QMediaPlaylist; |
53 class QMediaPlaylist; |
53 class QMediaPlaylistNavigator; |
54 class QMediaPlaylistNavigator; |
54 class QT7PlayerControl; |
55 class QT7PlayerControl; |
55 class QT7PlayerMetaDataControl; |
56 class QT7PlayerMetaDataControl; |
56 class QT7VideoOutputControl; |
|
57 class QT7VideoWindowControl; |
57 class QT7VideoWindowControl; |
58 class QT7VideoWidgetControl; |
58 class QT7VideoWidgetControl; |
59 class QT7VideoRendererControl; |
59 class QT7VideoRendererControl; |
60 class QT7VideoOutput; |
60 class QT7VideoOutput; |
61 class QT7PlayerSession; |
61 class QT7PlayerSession; |
65 Q_OBJECT |
65 Q_OBJECT |
66 public: |
66 public: |
67 QT7PlayerService(QObject *parent = 0); |
67 QT7PlayerService(QObject *parent = 0); |
68 ~QT7PlayerService(); |
68 ~QT7PlayerService(); |
69 |
69 |
70 QMediaControl *control(const char *name) const; |
70 QMediaControl* requestControl(const char *name); |
71 |
71 void releaseControl(QMediaControl *control); |
72 private slots: |
|
73 void updateVideoOutput(); |
|
74 |
72 |
75 private: |
73 private: |
76 QT7PlayerSession *m_session; |
74 QT7PlayerSession *m_session; |
77 QT7PlayerControl *m_control; |
75 QT7PlayerControl *m_control; |
78 QT7VideoOutputControl *m_videoOutputControl; |
76 QMediaControl * m_videoOutput; |
79 QT7VideoWindowControl *m_videoWidnowControl; |
|
80 QT7VideoWidgetControl *m_videoWidgetControl; |
|
81 QT7VideoRendererControl *m_videoRendererControl; |
|
82 QT7PlayerMetaDataControl *m_playerMetaDataControl; |
77 QT7PlayerMetaDataControl *m_playerMetaDataControl; |
83 }; |
78 }; |
84 |
79 |
85 QT_END_NAMESPACE |
80 QT_END_NAMESPACE |
86 |
81 |