mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-20 13:24:09 -07:00
UI work, add name to listnetworks output in control bus interface.
This commit is contained in:
parent
902c8c38d2
commit
c979a695c5
9 changed files with 178 additions and 25 deletions
|
@ -1,6 +1,8 @@
|
|||
#ifndef NETWORK_H
|
||||
#define NETWORK_H
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
namespace Ui {
|
||||
|
@ -12,16 +14,24 @@ class Network : public QWidget
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit Network(QWidget *parent = 0);
|
||||
~Network();
|
||||
explicit Network(QWidget *parent = 0,const std::string &nwid);
|
||||
virtual ~Network();
|
||||
|
||||
void setStatus(const std::string &status);
|
||||
void setNetworkName(const std::string &name);
|
||||
void setNetworkType(const std::string &type);
|
||||
void setNetworkDeviceName(const std::string &dev);
|
||||
void setIps(const std::string &commaSeparatedList);
|
||||
|
||||
const std::string &networkId();
|
||||
|
||||
private slots:
|
||||
void on_leaveNetworkButton_clicked();
|
||||
|
||||
void on_networkIdPushButton_clicked();
|
||||
|
||||
private:
|
||||
Ui::Network *ui;
|
||||
std::string networkIdStr;
|
||||
};
|
||||
|
||||
#endif // NETWORK_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue