QtGStreamer  0.10.2
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
graphicsvideosurface.h
00001 /*
00002     Copyright (C) 2012 Collabora Ltd. <info@collabora.com>
00003       @author George Kiagiadakis <george.kiagiadakis@collabora.com>
00004 
00005     This library is free software; you can redistribute it and/or modify
00006     it under the terms of the GNU Lesser General Public License as published
00007     by the Free Software Foundation; either version 2.1 of the License, or
00008     (at your option) any later version.
00009 
00010     This program is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013     GNU Lesser General Public License for more details.
00014 
00015     You should have received a copy of the GNU Lesser General Public License
00016     along with this program.  If not, see <http://www.gnu.org/licenses/>.
00017 */
00018 #ifndef QGST_UI_GRAPHICSVIDEOSURFACE_H
00019 #define QGST_UI_GRAPHICSVIDEOSURFACE_H
00020 
00021 #include "global.h"
00022 #include "../element.h"
00023 #include <QtGui/QGraphicsView>
00024 
00025 namespace QGst {
00026 namespace Ui {
00027 
00028 class GraphicsVideoWidget;
00029 class GraphicsVideoSurfacePrivate;
00030 
00085 class QTGSTREAMERUI_EXPORT GraphicsVideoSurface : public QObject
00086 {
00087     Q_OBJECT
00088     Q_DISABLE_COPY(GraphicsVideoSurface)
00089 public:
00090     explicit GraphicsVideoSurface(QGraphicsView *parent);
00091     virtual ~GraphicsVideoSurface();
00092 
00097     ElementPtr videoSink() const;
00098 
00099 private:
00100     QTGSTREAMERUI_NO_EXPORT void onUpdate();
00101 
00102 private:
00103     friend class GraphicsVideoWidget;
00104     GraphicsVideoSurfacePrivate * const d;
00105 };
00106 
00107 } // namespace Ui
00108 } // namespace QGst
00109 
00110 Q_DECLARE_METATYPE(QGst::Ui::GraphicsVideoSurface*)
00111 
00112 #endif // QGST_UI_GRAPHICSVIDEOSURFACE_H