X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fjogshuttle.h;h=6b70be86d5c086f025630281a29704541e66041e;hb=c3302003093710ee247ad84c0fe2ef3c579d417f;hp=2c28d88fc1238e1d6e9b78d1610a9a7002410153;hpb=16e43620d9ff9e432ea91ded529f1e365d03fd52;p=kdenlive diff --git a/src/jogshuttle.h b/src/jogshuttle.h index 2c28d88f..6b70be86 100644 --- a/src/jogshuttle.h +++ b/src/jogshuttle.h @@ -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);