Subversion Repositories Projects

Rev

Rev 396 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 396 Rev 397
1
#ifndef QT_COMMUNICATION_H
1
#ifndef QT_COMMUNICATION_H
2
#define QT_COMMUNICATION_H
2
#define QT_COMMUNICATION_H
3
#include <Communication.h>
3
#include <Communication.h>
4
 
4
 
5
/**
5
/**
6
 * QT specific communication class
6
 * QT specific communication class
7
 * based on the communication interface
7
 * based on the communication interface
8
 * using the SerialPort implementation
8
 * using the SerialPort implementation
9
 * by VIANNEY-LIAUD Philippe
9
 * by VIANNEY-LIAUD Philippe
10
 * ( philippe.vianney.liaud gmail.com )
10
 * ( philippe.vianney.liaud gmail.com )
11
 */
11
 */
12
 
12
 
13
using namespace std;
13
using namespace std;
14
 
14
 
15
class QTCommunication : public Communication {
15
class QTCommunication : public Communication {
16
    public:
16
    public:
17
        void connectMK(string addr);
17
        void connect_MK(string addr);
18
        bool sendCmd(char cmd, int address, char data[150], unsigned int length, bool resend);
18
        bool send_cmd(char cmd, int address, char data[150], unsigned int length, bool resend);
19
        void stopReSend();
19
        void stop_resend();
20
};
20
};
21
#endif
21
#endif