source: flair-src/trunk/tools/FlairGCS/src/Manager.h@ 239

Last change on this file since 239 was 234, checked in by Sanahuja Guillaume, 7 years ago

create file oscket only when necessary

File size: 1.2 KB
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 MANAGER_H
6#define MANAGER_H
7
8#include <QWidget>
9#include <udt.h>
10#include <qdom.h>
11
12class UdtSocket;
13class ConnectionLayout;
14class QVBoxLayout;
15class QTabBar;
16class QPushButton;
17class QGridLayout;
18class QStatusBar;
19
20class Manager : public QWidget {
21 Q_OBJECT
22
23public:
24 Manager(QString name, int port);
25 ~Manager();
26
27private:
28 UDTSOCKET serv;
29 QVBoxLayout *managerLayout;
30 QList<ConnectionLayout *> connectionsLayout;
31 QList<QWidget *> connectionsWidget;
32 QList<UdtSocket *> udtSockets;
33 QTabBar *tabBar;
34 QString name, hiddenTabName;
35 int currentTab;
36
37 QPushButton *send_button;
38 QPushButton *reset_button;
39 QPushButton *load_button;
40 QPushButton *save_button;
41 QGridLayout *button_layout;
42 QStatusBar *status;
43
44private slots:
45 void acceptConnections(void);
46 void load(void);
47 void send(void);
48 void save(void);
49 void reset(void);
50 void tabBarCurrentChanged(int index);
51 void printUDTStats(QString stats);
52 void newFileUI(UDTSOCKET socket);
53 void deleteFileUI(void);
54 void newConnectionLayout(QString name);
55 void layoutDestroyed(QObject *obj);
56
57protected:
58};
59
60#endif // MANAGER_H
Note: See TracBrowser for help on using the repository browser.