X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fjogshuttle.h;h=d0bb786753e4984091d60f3153e5f3674957c46a;hb=8a6e4eb1dea318ecd1c0b313c28b764e89a524c4;hp=7503bcfb8f5be7a6e05079a3abbe468d02a4fdb0;hpb=a0b31d454dcbbd7c31f1dca4cd22c71da61e8920;p=kdenlive diff --git a/src/jogshuttle.h b/src/jogshuttle.h index 7503bcfb..d0bb7867 100644 --- a/src/jogshuttle.h +++ b/src/jogshuttle.h @@ -21,7 +21,7 @@ #ifndef SHUTTLE_H #define SHUTTLE_H -#include +#include #include #include @@ -34,13 +34,13 @@ 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(); - bool stop_me; + volatile bool stop_me; QString m_device; private: @@ -55,10 +55,10 @@ private: class JogShuttle: public QObject { Q_OBJECT public: - explicit JogShuttle(QString device, QObject * parent = 0); + explicit JogShuttle(const QString &device, QObject * parent = 0); ~JogShuttle(); void stopDevice(); - void initDevice(QString device); + void initDevice(const QString &device); protected: virtual void customEvent(QEvent * e); @@ -67,11 +67,9 @@ private: ShuttleThread m_shuttleProcess; signals: - void rewind1(); - void forward1(); - void rewind(double); - void forward(double); - void stop(); + void jogBack(); + void jogForward(); + void shuttlePos(int); void button(int); };