UI work, add name to listnetworks output in control bus interface.

This commit is contained in:
Adam Ierymenko 2013-11-20 16:16:30 -05:00
commit c979a695c5
9 changed files with 178 additions and 25 deletions

View file

@ -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