equal
deleted
inserted
replaced
52 // |
52 // |
53 // We mean it. |
53 // We mean it. |
54 // |
54 // |
55 |
55 |
56 #include <qmobilityglobal.h> |
56 #include <qmobilityglobal.h> |
57 #include "qmediaservice.h" |
57 #include <qmediaservice.h> |
58 #include "qmediaimageviewer.h" |
58 #include <qmediaimageviewer.h> |
59 #include "qvideooutputcontrol.h" |
59 #include <qvideorenderercontrol.h> |
60 #include "qvideorenderercontrol.h" |
60 #include <qvideowidget.h> |
61 #include "qvideowidget.h" |
61 #include <qvideowidgetcontrol.h> |
62 #include "qvideowidgetcontrol.h" |
|
63 |
62 |
64 #include <QtGui/qimage.h> |
63 #include <QtGui/qimage.h> |
65 |
64 |
66 QT_BEGIN_NAMESPACE |
65 QT_BEGIN_NAMESPACE |
67 class QAbstractVideoSurface; |
66 class QAbstractVideoSurface; |
77 Q_OBJECT |
76 Q_OBJECT |
78 public: |
77 public: |
79 explicit QMediaImageViewerService(QObject *parent = 0); |
78 explicit QMediaImageViewerService(QObject *parent = 0); |
80 ~QMediaImageViewerService(); |
79 ~QMediaImageViewerService(); |
81 |
80 |
82 QMediaControl *control(const char *name) const; |
81 QMediaControl *requestControl(const char *name); |
|
82 void releaseControl(QMediaControl *); |
83 |
83 |
84 QNetworkAccessManager *networkManager() const; |
84 QNetworkAccessManager *networkManager() const; |
85 void setNetworkManager(QNetworkAccessManager *manager); |
85 void setNetworkManager(QNetworkAccessManager *manager); |
86 |
86 |
87 private: |
87 private: |
88 Q_DECLARE_PRIVATE(QMediaImageViewerService) |
88 Q_DECLARE_PRIVATE(QMediaImageViewerService) |
89 Q_PRIVATE_SLOT(d_func(), void _q_outputChanged(QVideoOutputControl::Output output)) |
|
90 friend class QMediaImageViewerControl; |
89 friend class QMediaImageViewerControl; |
91 friend class QMediaImageViewerControlPrivate; |
90 friend class QMediaImageViewerControlPrivate; |
92 }; |
91 }; |
93 |
92 |
94 class QMediaImageViewerControlPrivate; |
93 class QMediaImageViewerControlPrivate; |
134 private: |
133 private: |
135 QAbstractVideoSurface *m_surface; |
134 QAbstractVideoSurface *m_surface; |
136 QImage m_image; |
135 QImage m_image; |
137 }; |
136 }; |
138 |
137 |
139 class QMediaImageViewerOutputControl : public QVideoOutputControl |
|
140 { |
|
141 Q_OBJECT |
|
142 public: |
|
143 QMediaImageViewerOutputControl(QObject *parent = 0); |
|
144 |
|
145 QList<Output> availableOutputs() const; |
|
146 |
|
147 Output output() const { return m_output; } |
|
148 void setOutput(Output output); |
|
149 |
|
150 Q_SIGNALS: |
|
151 void outputChanged(QVideoOutputControl::Output output); |
|
152 |
|
153 private: |
|
154 Output m_output; |
|
155 }; |
|
156 |
|
157 QT_END_NAMESPACE |
138 QT_END_NAMESPACE |
158 |
139 |
159 #endif |
140 #endif |