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

Last change on this file since 11 was 10, checked in by Sanahuja Guillaume, 9 years ago

lic

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