Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 499 → Rev 500

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