Last change
on this file since 238 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 |
|
---|
12 | class UdtSocket;
|
---|
13 | class ConnectionLayout;
|
---|
14 | class QVBoxLayout;
|
---|
15 | class QTabBar;
|
---|
16 | class QPushButton;
|
---|
17 | class QGridLayout;
|
---|
18 | class QStatusBar;
|
---|
19 |
|
---|
20 | class Manager : public QWidget {
|
---|
21 | Q_OBJECT
|
---|
22 |
|
---|
23 | public:
|
---|
24 | Manager(QString name, int port);
|
---|
25 | ~Manager();
|
---|
26 |
|
---|
27 | private:
|
---|
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 |
|
---|
44 | private 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 |
|
---|
57 | protected:
|
---|
58 | };
|
---|
59 |
|
---|
60 | #endif // MANAGER_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.