source: flair-src/trunk/tools/FlairGCS/src/UdtSocket.h@ 218

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

sources reformatted with flair-format-dir script

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