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