X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fjogshuttle.h;h=d1cf185b3a22941499e303f74897920ce71a5844;hb=4f332f85fe29846d15d5006d66fe03ebe09b556c;hp=55b4472a1306db2c767856e14c15fd48481b83f4;hpb=ff57a79c5515bf467bdd6abf0e011549a96d98e2;p=kdenlive diff --git a/src/jogshuttle.h b/src/jogshuttle.h index 55b4472a..d1cf185b 100644 --- a/src/jogshuttle.h +++ b/src/jogshuttle.h @@ -21,8 +21,9 @@ #ifndef SHUTTLE_H #define SHUTTLE_H -#include +#include #include +#include #include @@ -51,14 +52,19 @@ private: void key(unsigned short code, unsigned int value); }; +typedef QMap DeviceMap; +typedef QMap::iterator DeviceMapIter; 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); + static DeviceMap enumerateDevices(const QString& devPath); protected: virtual void customEvent(QEvent * e);