Update Qt build to enable building against local static libraries, rename Network to NetworkWidget to avoid filesystem or object naming collision with Network.o in node/.
This commit is contained in:
parent
239c9e46ea
commit
9ffda4f955
6 changed files with 104 additions and 37 deletions
37
ZeroTierUI/networkwidget.h
Normal file
37
ZeroTierUI/networkwidget.h
Normal file
|
@ -0,0 +1,37 @@
|
|||
#ifndef NETWORK_H
|
||||
#define NETWORK_H
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
namespace Ui {
|
||||
class NetworkWidget;
|
||||
}
|
||||
|
||||
class NetworkWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit NetworkWidget(QWidget *parent = 0,const std::string &nwid = std::string());
|
||||
virtual ~NetworkWidget();
|
||||
|
||||
void setStatus(const std::string &status,const std::string &age);
|
||||
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::NetworkWidget *ui;
|
||||
std::string networkIdStr;
|
||||
};
|
||||
|
||||
#endif // NETWORK_H
|
Loading…
Add table
Add a link
Reference in a new issue