Last change
on this file since 21 was 15, checked in by Bayard Gildas, 9 years ago |
sources reformatted with flair-format-dir script
|
File size:
1.1 KB
|
Rev | Line | |
---|
[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}
|
---|
[15] | 5 | #ifndef MANAGER_H
|
---|
[9] | 6 | #define MANAGER_H
|
---|
[15] | 7 |
|
---|
[9] | 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;
|
---|
[15] | 17 | class QGridLayout;
|
---|
[9] | 18 |
|
---|
[15] | 19 | class Manager : public QWidget {
|
---|
| 20 | Q_OBJECT
|
---|
[9] | 21 |
|
---|
[15] | 22 | public:
|
---|
| 23 | Manager(QString name, int port);
|
---|
| 24 | ~Manager();
|
---|
[9] | 25 |
|
---|
[15] | 26 | private:
|
---|
| 27 | UDTSOCKET serv;
|
---|
| 28 | QVBoxLayout *managerLayout;
|
---|
| 29 | QList<ConnectionLayout *> connectionsLayout;
|
---|
| 30 | QList<QWidget *> connectionsWidget;
|
---|
| 31 | QTabBar *tabBar;
|
---|
| 32 | QString name, hiddenTabName;
|
---|
| 33 | int currentTab;
|
---|
| 34 |
|
---|
| 35 | QPushButton *send_button;
|
---|
| 36 | QPushButton *reset_button;
|
---|
| 37 | QPushButton *load_button;
|
---|
| 38 | QPushButton *save_button;
|
---|
| 39 | QGridLayout *button_layout;
|
---|
| 40 |
|
---|
| 41 | void newConnection(UdtSocket *socket);
|
---|
| 42 |
|
---|
| 43 | private slots:
|
---|
| 44 | void acceptConnections(void);
|
---|
| 45 | void load(void);
|
---|
| 46 | void send(void);
|
---|
| 47 | void save(void);
|
---|
| 48 | void reset(void);
|
---|
| 49 | void layoutDestroyed(QObject *obj);
|
---|
| 50 | void tabBarCurrentChanged(int index);
|
---|
| 51 | void tabName(QString name);
|
---|
| 52 |
|
---|
| 53 | signals:
|
---|
| 54 | void killUdtSockets(void);
|
---|
| 55 |
|
---|
| 56 | protected:
|
---|
| 57 | };
|
---|
| 58 |
|
---|
| 59 | #endif // MANAGER_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.