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 | |
---|
7 | namespace QPunchCard { |
---|
8 | namespace Device { |
---|
9 | namespace 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 | |
---|
20 | namespace QPunchCard { |
---|
21 | namespace Device { |
---|
22 | namespace DocumationM200 { |
---|
23 | |
---|
24 | class ClientThread : public QThread { |
---|
25 | Q_OBJECT |
---|
26 | |
---|
27 | QextSerialPort port; |
---|
28 | bool abort; |
---|
29 | QMutex important_reading; |
---|
30 | |
---|
31 | public: |
---|
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 | |
---|
41 | signals: |
---|
42 | void recievedResponse(QString code, QString comment); |
---|
43 | |
---|
44 | public slots: |
---|
45 | void fire_start(); |
---|
46 | void fire_stop(); |
---|
47 | void fire_ping(); |
---|
48 | void fire_reset(); |
---|
49 | |
---|
50 | |
---|
51 | protected: |
---|
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.