38 lines
737 B
C
Raw Normal View History

2013-11-13 16:50:49 -05:00
#ifndef NETWORK_H
#define NETWORK_H
#include <string>
2013-11-18 12:01:33 -05:00
#include <QWidget>
2013-11-13 16:50:49 -05:00
namespace Ui {
class Network;
}
2013-11-18 12:01:33 -05:00
class Network : public QWidget
2013-11-13 16:50:49 -05:00
{
Q_OBJECT
public:
2013-11-20 18:29:02 -05:00
explicit Network(QWidget *parent = 0,const std::string &nwid = std::string());
virtual ~Network();
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 16:50:49 -05:00
2013-11-18 12:01:33 -05:00
private slots:
void on_leaveNetworkButton_clicked();
void on_networkIdPushButton_clicked();
2013-11-13 16:50:49 -05:00
private:
Ui::Network *ui;
std::string networkIdStr;
2013-11-13 16:50:49 -05:00
};
#endif // NETWORK_H