source: projects/punch-card-project/trunk/punch-card-editor/src/driver/documation-m200-client/client.h @ 59

Last change on this file since 59 was 59, checked in by sven-win, 14 years ago

Umfangreiche Weiterentwicklung (letzte Entwicklung am Netbook). Driver fuer M200 erstmals testweise implementiert; funktioniert(e mit Netbook).

-- Sven @ netboo

File size: 1.0 KB
Line 
1#ifndef M200_CLIENT_CLIENT_H
2#define M200_CLIENT_CLIENT_H
3
4#include <QThread>
5#include <QMutex>
6
7namespace QPunchCard {
8namespace Device {
9namespace DocumationM200 {
10        class ClientThread;
11};
12};
13};
14
15#include "pc-uc-protocol.h"
16
17#include "driver/documation-m200-client/controller.h"
18#include "libs/qextserialport/qextserialport.h"
19
20namespace QPunchCard {
21namespace Device {
22namespace DocumationM200 {
23
24class ClientThread : public QThread {
25        Q_OBJECT
26
27        QextSerialPort port;
28        bool abort;
29        QMutex important_reading;
30
31public:
32        ClientThread(QObject* parent = 0);
33        ~ClientThread();
34
35        void setAbort(bool value);
36
37        void readLine();
38        //void processResponse(QString code, QString comment);
39        Card processCard();
40
41signals:
42        void recievedResponse(QString code, QString comment);
43
44public slots:
45        void fire_start();
46        void fire_stop();
47        void fire_ping();
48        void fire_reset();
49
50
51protected:
52        void run();
53};
54
55}; // namespace DocumationM200
56}; // namespace Driver
57}; // namespace QPunchCard
58
59
60#endif // M200_CLIENT_CLIENT_H
Note: See TracBrowser for help on using the repository browser.
© 2008 - 2013 technikum29 • Sven Köppel • Some rights reserved
Powered by Trac
Expect where otherwise noted, content on this site is licensed under a Creative Commons 3.0 License