qCNC 0.82-alpha
/home/trilog/Desktop/project/gui/Final/src/serial_tools.h
Go to the documentation of this file.
00001 
00043 #ifndef SERIAL_TOOLS_H
00044 #define SERIAL_TOOLS_H
00045 
00046 
00047 #include <QThread>
00048 #include <qextserialport.h>
00049 
00050 
00051 
00052 
00053 
00054 class SerialPortReader : public QThread
00055 {
00056    Q_OBJECT
00057 
00058 public:
00059    SerialPortReader( QObject * parent = 0, QString *port = NULL);
00060    ~SerialPortReader();
00061    void run();
00062    bool isOpen();
00063    QString* str;
00064 
00065 signals:
00066    void serialSignal( int* sgnVal );
00067 
00068 private:
00069    QextSerialPort* COM_Port;
00070 };
00071 
00072 #endif // SERIAL_H
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines