#ifndef __V4LCAPTUREHANDLER_H__
#define __V4LCAPTUREHANDLER_H__
-#include "../stopmotion/capturehandler.h"
#include "src.h"
#include <QWidget>
#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);
- QString getDeviceName(QString input);
-
-private:
- bool m_update;
- MyDisplay *m_display;
- QString m_captureFramePath;
- QImage m_overlayImage;
-
-private slots:
- void slotUpdate();
+ V4lCaptureHandler();
+ static QStringList getDeviceName(QString input);
+
};