Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 451 → Rev 450

/QMK-Groundstation/branches/libMK/libMK/QTSerialCommunication.h
1,7 → 1,5
#ifndef QT_SERIAL_COMMUNICATION_H
#define QT_SERIAL_COMMUNICATION_H
#include <QObject>
#include <QTimer>
#include "Communication.h"
#include "../SerialPort/ManageSerialPort.h"
 
13,24 → 11,14
* ( philippe.vianney.liaud gmail.com )
*/
 
class QTSerialCommunication : public Communication, QObject {
Q_OBJECT
using namespace std;
 
class QTSerialCommunication : public Communication {
private:
//timer to resend data if necessary
QTimer resendTimer;
//data that will be resended if the timer
//got the timeout
char * resendData;
 
//Serial Port connection class by Philippe VIANNEY-LIAUD
ManageSerialPort * serial;
private slots:
void slot_resend_timer();
public:
QTSerialCommunication();
void connect_MK(char * addr);
void received_data(char * data);
void send_cmd(char cmd, int address, char data[150], unsigned int length, bool resend);
void stop_resend();
};