ZeroTierOne/ZeroTierUI/networkwidget.h

40 lines
831 B
C
Raw Normal View History

2013-11-13 21:50:49 +00:00
#ifndef NETWORK_H
#define NETWORK_H
#include <string>
2013-11-18 17:01:33 +00:00
#include <QWidget>
2013-11-13 21:50:49 +00:00
namespace Ui {
class NetworkWidget;
2013-11-13 21:50:49 +00:00
}
class NetworkWidget : public QWidget
2013-11-13 21:50:49 +00:00
{
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();
2013-11-13 21:50:49 +00:00
2013-11-18 17:01:33 +00:00
private slots:
void on_leaveNetworkButton_clicked();
void on_networkIdPushButton_clicked();
void on_ipListWidget_doubleClicked(const QModelIndex &index);
2013-11-13 21:50:49 +00:00
private:
Ui::NetworkWidget *ui;
std::string networkIdStr;
2013-11-13 21:50:49 +00:00
};
#endif // NETWORK_H