]> git.sesse.net Git - kdenlive/blobdiff - src/v4l/v4lcapture.h
cppcheck fixes, patch by Mikko Rapeli [25/27]
[kdenlive] / src / v4l / v4lcapture.h
index bbcbf8833116a7cfb04c3345d76f76a8eb2fccea..56dbb589d6d9e523d37d6562c5f48ffd32f3964c 100644 (file)
 
 #ifndef __V4LCAPTUREHANDLER_H__
 #define __V4LCAPTUREHANDLER_H__
-
-#include "../stopmotion/capturehandler.h"
+#ifndef __APPLE__
 #include "src.h"
+#endif
 
 #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);
-    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);
-    QString getDeviceName(QString input);
 
-private:
-    bool m_update;
-    MyDisplay *m_display;
-    QString m_captureFramePath;
-    QImage m_overlayImage;
+public:
+    V4lCaptureHandler();
+    static QStringList getDeviceName(QString input);
 
-private slots:
-    void slotUpdate();
 };