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

Last change on this file since 245 was 244, checked in by Sanahuja Guillaume, 7 years ago

modifs segfault when closing connection

File size: 1.3 KB
RevLine 
[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
12class UdtSocket;
13class ConnectionLayout;
14class QVBoxLayout;
15class QTabBar;
16class QPushButton;
[15]17class QGridLayout;
[234]18class QStatusBar;
[9]19
[15]20class Manager : public QWidget {
21 Q_OBJECT
[9]22
[15]23public:
24 Manager(QString name, int port);
25 ~Manager();
[9]26
[15]27private:
28 UDTSOCKET serv;
29 QVBoxLayout *managerLayout;
30 QList<ConnectionLayout *> connectionsLayout;
31 QList<QWidget *> connectionsWidget;
[234]32 QList<UdtSocket *> udtSockets;
[15]33 QTabBar *tabBar;
34 QString name, hiddenTabName;
35 int currentTab;
36
37 QPushButton *send_button;
38 QPushButton *reset_button;
39 QPushButton *load_button;
40 QPushButton *save_button;
41 QGridLayout *button_layout;
[30]42 QStatusBar *status;
[15]43
44private slots:
45 void acceptConnections(void);
46 void load(void);
47 void send(void);
48 void save(void);
49 void reset(void);
[234]50 void tabBarCurrentChanged(int index);
51 void printUDTStats(QString stats);
52 void newFileUI(UDTSOCKET socket);
53 void deleteFileUI(void);
54 void newConnectionLayout(QString name);
[244]55 void udtSocketDestroyed(QObject *obj);
[15]56 void layoutDestroyed(QObject *obj);
57
58protected:
59};
60
61#endif // MANAGER_H
Note: See TracBrowser for help on using the repository browser.