Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 500 → Rev 499

/QMK-Groundstation/branches/libMK/libMK/QTSerialCommunication.h
3,7 → 3,6
#include <QObject>
#include <QTimer>
#include "Communication.h"
#include "Handler.h"
#include "../SerialPort/ManageSerialPort.h"
 
/**
18,7 → 17,6
Q_OBJECT
 
private:
Handler * handler;
//timer to resend data if necessary
QTimer resendTimer;
//data that will be resended if the timer
29,11 → 27,10
ManageSerialPort * serial;
private slots:
void slot_resend_timer();
void slot_received_data(const QByteArray & data);
public:
QTSerialCommunication(Handler * handler);
QTSerialCommunication();
void connect_MK(char * addr);
void received_data(char * data, int length);
void received_data(char * data);
void send_cmd(char cmd, int address, char data[150], unsigned int length, bool resend);
void stop_resend();
};