source: flair-src/branches/mavlink/tools/FlairGCS/src/UdtSocket.h @ 77

Last change on this file since 77 was 15, checked in by Bayard Gildas, 6 years ago

sources reformatted with flair-format-dir script

File size: 793 bytes
Line 
1// %flair:license{
2// This file is part of the Flair framework distributed under the
3// CECILL-C License, Version 1.0.
4// %flair:license}
5#ifndef UDTSOCKET_H
6#define UDTSOCKET_H
7
8#include <udt.h>
9#include <QObject>
10#include <QTimer>
11
12class file_ui;
13
14class UdtSocket : public QObject {
15  Q_OBJECT
16
17public:
18  UdtSocket(UDTSOCKET file_socket, UDTSOCKET com_socket, QString name);
19  ~UdtSocket();
20
21private:
22  UDTSOCKET file_socket, com_socket;
23  file_ui *file_dialog;
24  bool stop;
25  QString name;
26  QTimer *heartbeat_timer;
27  void receiveData(void);
28  void receiveFile(void);
29
30signals:
31  void dataReady(char *, int size);
32
33public slots:
34  void handleConnections(void);
35  void kill(void);
36  void write(const char *buf, qint64 size);
37private slots:
38  void heartbeat(void);
39};
40
41#endif // UDTSOCKET_H
Note: See TracBrowser for help on using the repository browser.