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

Last change on this file since 474 was 436, checked in by Sanahuja Guillaume, 3 years ago

gcs:sync graphs

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