Subversion Repositories Projects

Rev

Rev 440 | Rev 450 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 440 Rev 449
Line 1... Line 1...
1
#ifndef QT_COMMUNICATION_H
1
#ifndef QT_SERIAL_COMMUNICATION_H
2
#define QT_COMMUNICATION_H
2
#define QT_SERIAL_COMMUNICATION_H
3
#include <Communication.h>
3
#include "Communication.h"
-
 
4
#include "../SerialPort/ManageSerialPort.h"
4
 
5
 
5
/**
6
/**
6
 * QT specific communication class
7
 * QT specific communication class
7
 * based on the communication interface
8
 * based on the communication interface
8
 * using the SerialPort implementation
9
 * using the SerialPort implementation
Line 10... Line 11...
10
 * ( philippe.vianney.liaud gmail.com )
11
 * ( philippe.vianney.liaud gmail.com )
11
 */
12
 */
12
 
13
 
13
using namespace std;
14
using namespace std;
14
 
15
 
15
class QTCommunication : public Communication {
16
class QTSerialCommunication : public Communication {
-
 
17
    private:
-
 
18
        ManageSerialPort * serial;
16
    public:
19
    public:
-
 
20
        QTSerialCommunication();
17
        void connect_MK(string addr);
21
        void connect_MK(string addr);
18
        bool send_cmd(char cmd, int address, char data[150], unsigned int length, bool resend);
22
        bool send_cmd(char cmd, int address, char data[150], unsigned int length, bool resend);
19
        void stop_resend();
23
        void stop_resend();
20
};
24
};
21
#endif
25
#endif
22
26