Diffstat (limited to 'noncore/net/networksetup/interfaces/interfaceinformationimp.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/networksetup/interfaces/interfaceinformationimp.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/noncore/net/networksetup/interfaces/interfaceinformationimp.cpp b/noncore/net/networksetup/interfaces/interfaceinformationimp.cpp index 43483fb..39575c4 100644 --- a/noncore/net/networksetup/interfaces/interfaceinformationimp.cpp +++ b/noncore/net/networksetup/interfaces/interfaceinformationimp.cpp @@ -5,4 +5,6 @@ #include <qlabel.h> #include <qgroupbox.h> +#include <qmessagebox.h> + #include <assert.h> @@ -16,4 +18,5 @@ InterfaceInformationImp::InterfaceInformationImp(QWidget *parent, const char *na interface = i; connect(i, SIGNAL(updateInterface(Interface *)), this, SLOT(updateInterface(Interface *))); + connect(i, SIGNAL(updateMessage(const QString &)), this, SLOT(showMessage(const QString &))); updateInterface(interface); connect(startButton, SIGNAL(clicked()), interface, SLOT(start())); @@ -22,5 +25,4 @@ InterfaceInformationImp::InterfaceInformationImp(QWidget *parent, const char *na connect(refreshButton, SIGNAL(clicked()), interface, SLOT(refresh())); connect(advancedButton, SIGNAL(clicked()), this, SLOT(advanced())); - } @@ -67,4 +69,13 @@ void InterfaceInformationImp::advanced(){ } +/** + * Messages from the interface if start/stop went as planned. + * Purly for user feedback. + * @param message the message to display. + */ +void InterfaceInformationImp::showMessage(const QString &message){ + QMessageBox::information(this, "Message", message, QMessageBox::Ok); +} + // infoimp.cpp |