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

Last change on this file since 248 was 248, checked in by Sanahuja Guillaume, 4 years ago

add orange icon to gcs

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 <udt.h>
11#include <qdom.h>
12
13class UdtSocket;
14class ConnectionLayout;
15class QVBoxLayout;
16class QTabBar;
17class QPushButton;
18class QGridLayout;
19class QStatusBar;
20
21class Manager : public QWidget {
22 Q_OBJECT
23
24public:
25 Manager(QString name, int port);
26 ~Manager();
27
28private:
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
51private 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
65protected:
66};
67
68#endif // MANAGER_H
Note: See TracBrowser for help on using the repository browser.