]> git.sesse.net Git - kdenlive/blobdiff - src/jogshuttle.h
jogshuttle: add support for shuttles on newer systems - part1
[kdenlive] / src / jogshuttle.h
index f2523cc93c56ec6e20a38092ac050258541a8aa7..1a337868fd2e7ab304da133d96e1dcecbedd41c7 100644 (file)
@@ -21,7 +21,7 @@
 #ifndef SHUTTLE_H
 #define SHUTTLE_H
 
-#include <qthread.h>
+#include <QThread>
 #include <QObject>
 
 #include <linux/input.h>
@@ -34,10 +34,10 @@ class ShuttleThread : public QThread
 
 public:
     virtual void run();
-    void init(QObject *parent, QString device);
+    void init(QObject *parent, const QString &device);
     QObject *m_parent;
     int shuttlevalue;
-    bool shuttlechange;
+    int shuttlecounter;
     unsigned short jogvalue;
     bool isWorking();
     volatile bool stop_me;
@@ -54,11 +54,13 @@ private:
 
 class JogShuttle: public QObject
 {
-Q_OBJECT public:
-    explicit JogShuttle(QString device, QObject * parent = 0);
+    Q_OBJECT
+public:
+    explicit JogShuttle(const QString &device, QObject * parent = 0);
     ~JogShuttle();
     void stopDevice();
-    void initDevice(QString device);
+    void initDevice(const QString &device);
+    static QString enumerateDevice(const QString &device);
 
 protected:
     virtual void customEvent(QEvent * e);