From 9adbe632ec54bf155b9882e4e0b51c293259cdf2 Mon Sep 17 00:00:00 2001 From: benmeyer Date: Fri, 25 Oct 2002 19:32:57 +0000 Subject: Initial --- (limited to 'noncore/settings/networksettings/interfaces/interfacesetupimp.h') diff --git a/noncore/settings/networksettings/interfaces/interfacesetupimp.h b/noncore/settings/networksettings/interfaces/interfacesetupimp.h new file mode 100644 index 0000000..936f2be --- a/dev/null +++ b/noncore/settings/networksettings/interfaces/interfacesetupimp.h @@ -0,0 +1,49 @@ +#ifndef INTERFACESETUPIMP_H +#define INTERFACESETUPIMP_H + +#include "interfacesetup.h" +#include + +class Interface; +class Interfaces; + +class InterfaceSetupImp : public InterfaceSetup { + Q_OBJECT + +public: + InterfaceSetupImp( QWidget* parent = 0, const char* name = 0, Interface *i=0, WFlags fl = 0); + void saveChanges(); + +public slots: + void setProfile(const QString &profile); + bool saveSettings(); +private: + Interfaces *interfaces; + Interface *interface; + +}; + + +#include + +class InterfaceSetupImpDialog : public QDialog { +Q_OBJECT + + public: + InterfaceSetupImpDialog(QWidget* parent = 0, const char* name = 0, Interface *i=0, bool modal = false, WFlags fl = 0) : QDialog(parent, name, modal, fl){ + QVBoxLayout *InterfaceSetupLayout = new QVBoxLayout( this ); + setCaption("Interface Setup"); + interfaceSetup = new InterfaceSetupImp(this, "InterfaceSetup",i,fl); + InterfaceSetupLayout->addWidget( interfaceSetup ); + }; + + InterfaceSetupImp *interfaceSetup; + + protected slots: + void accept(){ interfaceSetup->saveChanges(); }; +}; + +#endif + +// interfacesetupimp.h + -- cgit v0.9.0.2