]> git.sesse.net Git - kdenlive/blobdiff - src/v4l/v4lcapture.h
Const'ref
[kdenlive] / src / v4l / v4lcapture.h
index 80ed0d4ea5457575635b8437fc374a651f350aa2..9a742f651e62ce3df44bcffa3d889c6317ec2203 100644 (file)
 
 #ifndef __V4LCAPTUREHANDLER_H__
 #define __V4LCAPTUREHANDLER_H__
-
-#include "../stopmotion/capturehandler.h"
-#include "src.h"
+//#include "src.h"
 
 #include <QWidget>
 #include <QObject>
 #include <QLayout>
 #include <QLabel>
 
-class MyDisplay;
 
-class V4lCaptureHandler : public CaptureHandler
+class V4lCaptureHandler
 {
-    Q_OBJECT
-public:
-    V4lCaptureHandler(QVBoxLayout *lay, QWidget *parent = 0);
-    ~V4lCaptureHandler();
-    void startPreview(int deviceId, int captureMode, bool audio = true);
-    void stopPreview();
-    void startCapture(const QString &path);
-    void stopCapture();
-    void captureFrame(const QString &fname);
-    void showOverlay(QImage img, bool transparent = true);
-    void hideOverlay();
-    void hidePreview(bool hide);
-    QStringList getDeviceName(QString input);
-    /** @brief Sets the path to the capture devide and optionnaly the width / height of the capture. */
-    void setDevice(const QString input, QString size = QString());
 
-private:
-    bool m_update;
-    MyDisplay *m_display;
-    QString m_captureFramePath;
-    QImage m_overlayImage;
-    QString m_device;
-    int m_width;
-    int m_height;
+public:
+    V4lCaptureHandler();
+    static QStringList getDeviceName(const QString &input);
 
-private slots:
-    void slotUpdate();
 };