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"
Line 4... Line 5...
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
Line 10... Line 11...
10
 * ( philippe.vianney.liaud gmail.com )
11
 * ( philippe.vianney.liaud gmail.com )
11
 */
12
 */
Line 12... Line 13...
12
 
13
 
Line 13... Line 14...
13
using namespace std;
14
using namespace std;
-
 
15
 
-
 
16
class QTSerialCommunication : public Communication {
14
 
17
    private:
-
 
18
        ManageSerialPort * serial;
15
class QTCommunication : public Communication {
19
    public:
16
    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
};