43 #define S60VIDEOPLAYERSERVICE_H |
43 #define S60VIDEOPLAYERSERVICE_H |
44 |
44 |
45 #include <QtCore/qobject.h> |
45 #include <QtCore/qobject.h> |
46 |
46 |
47 #include <qmediaservice.h> |
47 #include <qmediaservice.h> |
48 #include <qvideooutputcontrol.h> |
48 //FIXME #include <qvideooutputcontrol.h> |
49 |
49 |
50 #include "s60videooutputcontrol.h" |
50 //FIXME #include "s60videooutputcontrol.h" |
51 #include "ms60mediaplayerresolver.h" |
51 #include "ms60mediaplayerresolver.h" |
52 |
52 |
53 #include "s60mediaplayeraudioendpointselector.h" |
53 #include "s60mediaplayeraudioendpointselector.h" |
54 |
54 |
55 QT_BEGIN_NAMESPACE |
55 QT_BEGIN_NAMESPACE |
77 |
77 |
78 public: |
78 public: |
79 S60MediaPlayerService(QObject *parent = 0); |
79 S60MediaPlayerService(QObject *parent = 0); |
80 ~S60MediaPlayerService(); |
80 ~S60MediaPlayerService(); |
81 |
81 |
82 QMediaControl *control(const char *name) const; |
82 QMediaControl *requestControl(const char *name); |
|
83 void releaseControl(QMediaControl *control); |
83 |
84 |
84 private slots: |
85 //FIXME private slots: |
85 void videoOutputChanged(QVideoOutputControl::Output output); |
86 // void videoOutputChanged(QVideoOutputControl::Output output); |
86 |
87 |
87 protected: // From MS60MediaPlayerResolver |
88 protected: // From MS60MediaPlayerResolver |
88 S60MediaPlayerSession* PlayerSession(); |
89 S60MediaPlayerSession* PlayerSession(); |
89 S60MediaPlayerSession* VideoPlayerSession(); |
90 S60MediaPlayerSession* VideoPlayerSession(); |
90 S60MediaPlayerSession* AudioPlayerSession(); |
91 S60MediaPlayerSession* AudioPlayerSession(); |
91 |
92 |
92 private: |
93 private: |
93 S60MediaPlayerControl *m_control; |
94 S60MediaPlayerControl *m_control; |
94 S60MediaRecognizer *m_mediaRecognizer; |
95 //FIXME mutable S60VideoOutputControl *m_videoOutput; |
95 mutable S60VideoOutputControl *m_videoOutput; |
|
96 S60VideoPlayerSession *m_videoPlayerSession; |
96 S60VideoPlayerSession *m_videoPlayerSession; |
97 S60AudioPlayerSession *m_audioPlayerSession; |
97 S60AudioPlayerSession *m_audioPlayerSession; |
98 mutable S60MediaMetaDataProvider *m_metaData; |
98 mutable S60MediaMetaDataProvider *m_metaData; |
99 mutable S60VideoWidgetControl *m_videoWidget; |
99 mutable S60VideoWidgetControl *m_videoWidget; |
100 mutable S60VideoOverlay *m_videoWindow; |
100 mutable S60VideoOverlay *m_videoWindow; |