2013-11-13 21:50:49 +00:00
|
|
|
#ifndef NETWORK_H
|
|
|
|
#define NETWORK_H
|
|
|
|
|
2013-11-20 21:16:30 +00:00
|
|
|
#include <string>
|
|
|
|
|
2013-11-18 17:01:33 +00:00
|
|
|
#include <QWidget>
|
2013-11-13 21:50:49 +00:00
|
|
|
|
|
|
|
namespace Ui {
|
2013-12-12 23:47:00 +00:00
|
|
|
class NetworkWidget;
|
2013-11-13 21:50:49 +00:00
|
|
|
}
|
|
|
|
|
2013-12-12 23:47:00 +00:00
|
|
|
class NetworkWidget : public QWidget
|
2013-11-13 21:50:49 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2013-12-12 23:47:00 +00:00
|
|
|
explicit NetworkWidget(QWidget *parent = 0,const std::string &nwid = std::string());
|
|
|
|
virtual ~NetworkWidget();
|
2013-11-20 21:16:30 +00:00
|
|
|
|
2013-11-21 20:11:22 +00:00
|
|
|
void setStatus(const std::string &status,const std::string &age);
|
2013-11-20 21:16:30 +00:00
|
|
|
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();
|
|
|
|
|
2013-12-18 02:20:20 +00:00
|
|
|
void on_ipListWidget_doubleClicked(const QModelIndex &index);
|
|
|
|
|
2013-11-13 21:50:49 +00:00
|
|
|
private:
|
2013-12-12 23:47:00 +00:00
|
|
|
Ui::NetworkWidget *ui;
|
2013-11-20 21:16:30 +00:00
|
|
|
std::string networkIdStr;
|
2013-11-13 21:50:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // NETWORK_H
|