Last change
on this file since 382 was 324, checked in by Sanahuja Guillaume, 5 years ago |
removing opencv dependency
|
File size:
1.5 KB
|
Rev | Line | |
---|
[324] | 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 <QIcon>
|
---|
| 10 | #include <udt.h>
|
---|
| 11 | #include <qdom.h>
|
---|
| 12 |
|
---|
| 13 | class UdtSocket;
|
---|
| 14 | class ConnectionLayout;
|
---|
| 15 | class QVBoxLayout;
|
---|
| 16 | class QTabBar;
|
---|
| 17 | class QPushButton;
|
---|
| 18 | class QGridLayout;
|
---|
| 19 | class QStatusBar;
|
---|
| 20 |
|
---|
| 21 | class Manager : public QWidget {
|
---|
| 22 | Q_OBJECT
|
---|
| 23 |
|
---|
| 24 | public:
|
---|
| 25 | Manager(QString name, int port);
|
---|
| 26 | ~Manager();
|
---|
| 27 |
|
---|
| 28 | private:
|
---|
| 29 | UDTSOCKET serv;
|
---|
| 30 | QVBoxLayout *managerLayout;
|
---|
| 31 | typedef struct {
|
---|
| 32 | ConnectionLayout *layout;
|
---|
| 33 | QWidget *widget;
|
---|
| 34 | UdtSocket *socket;
|
---|
| 35 | } connections_t;
|
---|
| 36 | QList<connections_t> connections;
|
---|
| 37 | //QList<ConnectionLayout *> connectionsLayout;
|
---|
| 38 | //QList<UdtSocket *> udtSockets;
|
---|
| 39 | QTabBar *tabBar;
|
---|
| 40 | QString name, hiddenTabName;
|
---|
| 41 | int currentTab;
|
---|
| 42 |
|
---|
| 43 | QPushButton *send_button;
|
---|
| 44 | QPushButton *reset_button;
|
---|
| 45 | QPushButton *load_button;
|
---|
| 46 | QPushButton *save_button;
|
---|
| 47 | QGridLayout *button_layout;
|
---|
| 48 | QStatusBar *status;
|
---|
| 49 | QIcon icon_red,icon_green,icon_orange;
|
---|
| 50 |
|
---|
| 51 | private slots:
|
---|
| 52 | void acceptConnections(void);
|
---|
| 53 | void load(void);
|
---|
| 54 | void send(void);
|
---|
| 55 | void save(void);
|
---|
| 56 | void reset(void);
|
---|
| 57 | void tabBarCurrentChanged(int index);
|
---|
| 58 | void printUDTStats(QString stats,bool loosingPackets);
|
---|
| 59 | void newFileUI(UDTSOCKET socket);
|
---|
| 60 | void deleteFileUI(void);
|
---|
| 61 | void newConnectionLayout(QString name);
|
---|
| 62 | void udtSocketDestroyed(QObject *obj);
|
---|
| 63 | void layoutDestroyed(QObject *obj);
|
---|
| 64 |
|
---|
| 65 | protected:
|
---|
| 66 | };
|
---|
| 67 |
|
---|
| 68 | #endif // MANAGER_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.