YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
clusterWidget.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: LGPL-2.1-or-later
4 */
5
6#ifndef CLUSTERWIDGET_H
7#define CLUSTERWIDGET_H
8
9#include <QWidget>
10#include <QMessageBox>
11#include <vector>
13#include <customtreewidget.h>
14
15namespace Ui {
16class ClusterWidget;
17}
18
19class ClusterWidget : public QWidget
20{
21 Q_OBJECT
22private slots:
23 void onCheckAll();
24 void onCheckServer();
25 void onRunServer();
26 void onStopServer();
27 void onKillServer();
28 void onRunSelected();
29 void onStopSelected();
30 void onKillSelected();
31 void onExecute();
32 void onNodeSelectionChanged();
33 void onExecuteTextChanged();
34signals:
35 void logError(QString);
36 void logMessage(QString);
37public:
38 explicit ClusterWidget(QWidget *parent = 0);
40 void setConfigFile(const std::string& _confFile);
41 void init();
42
43private:
44 void addRow(const std::string& name="", const std::string& display="none",
45 const std::string& user="", const std::string& address="", bool onOff=false, bool log=true, int id=0);
46 std::string getSSHCmd(const std::string& user, const std::string& host, const std::string& ssh_options);
47 bool checkNameserver();
48 bool checkNode(const std::string& name);
49 void updateServerEntries();
50 void reportErrors();
51
52
53 Ui::ClusterWidget *ui;
54 std::string confFile;
57 bool checkNs;
58};
59
60#endif // CLUSTERWIDGET_H
void logMessage(QString)
void setConfigFile(const std::string &_confFile)
void logError(QString)
Definition aboutdlg.h:11