QtGStreamer  0.10.1
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
videowidget.h
00001 /*
00002     Copyright (C) 2010 George Kiagiadakis <kiagiadakis.george@gmail.com>
00003     Copyright (C) 2011 Collabora Ltd.
00004       @author George Kiagiadakis <george.kiagiadakis@collabora.co.uk>
00005 
00006     This library is free software; you can redistribute it and/or modify
00007     it under the terms of the GNU Lesser General Public License as published
00008     by the Free Software Foundation; either version 2.1 of the License, or
00009     (at your option) any later version.
00010 
00011     This program is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014     GNU General Public License for more details.
00015 
00016     You should have received a copy of the GNU Lesser General Public License
00017     along with this program.  If not, see <http://www.gnu.org/licenses/>.
00018 */
00019 #ifndef QGST_UI_VIDEOWIDGET_H
00020 #define QGST_UI_VIDEOWIDGET_H
00021 
00022 #ifdef Q_MOC_RUN
00023 #define BOOST_TT_HAS_OPERATOR_HPP_INCLUDED
00024 #endif
00025 
00026 #include "global.h"
00027 #include "../element.h"
00028 #include <QtGui/QWidget>
00029 
00030 namespace QGst {
00031 namespace Ui {
00032 
00033 class AbstractRenderer;
00034 
00065 class QTGSTREAMERUI_EXPORT VideoWidget : public QWidget
00066 {
00067     Q_OBJECT
00068 public:
00069     VideoWidget(QWidget *parent = 0, Qt::WindowFlags f = 0);
00070     virtual ~VideoWidget();
00071 
00072 
00076     ElementPtr videoSink() const;
00077 
00085     void setVideoSink(const ElementPtr & sink);
00086 
00090     void releaseVideoSink();
00091 
00092 
00102     void watchPipeline(const PipelinePtr & pipeline);
00103 
00108     void stopPipelineWatch();
00109 
00110 protected:
00111     virtual void paintEvent(QPaintEvent *event);
00112 
00113 private:
00114     AbstractRenderer *d;
00115 };
00116 
00117 } //namespace Ui
00118 } //namespace QGst
00119 
00120 #endif // QGST_UI_VIDEOWIDGET_H
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator