#ifndef SHUTTLE_H
#define SHUTTLE_H
-#include <qthread.h>
+#include <QThread>
#include <QObject>
#include <linux/input.h>
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;
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);