interfacesetupimp.h
00001 #ifndef INTERFACESETUPIMP_H
00002 #define INTERFACESETUPIMP_H
00003
00004 #include "interfacesetup.h"
00005 #include "interfaces.h"
00006 #include <qdialog.h>
00007
00008 class Interface;
00009
00016 class InterfaceSetupImp : public InterfaceSetup {
00017 Q_OBJECT
00018
00019 public:
00020 InterfaceSetupImp( QWidget* parent = 0, const char* name = 0, Interface *i = 0, Interfaces *j = 0, WFlags fl = 0);
00021 ~InterfaceSetupImp();
00022 bool saveChanges();
00023
00024 public slots:
00025 void setProfile(const QString &profile);
00026 bool saveSettings();
00027
00028 private:
00029 Interfaces *interfaces;
00030 Interface *interface;
00031
00032 bool delInterfaces;
00033 };
00034
00035
00036 #include <qlayout.h>
00037
00038 class InterfaceSetupImpDialog : public QDialog {
00039 Q_OBJECT
00040
00041 public:
00042 InterfaceSetupImpDialog(QWidget* parent = 0, const char* name = 0, Interface *i=0, bool modal = false, WFlags fl = 0) : QDialog(parent, name, modal, fl){
00043 QVBoxLayout *InterfaceSetupLayout = new QVBoxLayout( this );
00044 setCaption("Interface Setup");
00045 interfaceSetup = new InterfaceSetupImp(this, "InterfaceSetup",i);
00046 InterfaceSetupLayout->addWidget( interfaceSetup );
00047 };
00048 void setProfile(QString &profile){ interfaceSetup->setProfile(profile);};
00049
00050 private:
00051 InterfaceSetupImp *interfaceSetup;
00052
00053 protected slots:
00054 void accept(){
00055 if(interfaceSetup->saveChanges())
00056 QDialog::accept();
00057 };
00058
00059 };
00060
00061 #endif
00062
00063
00064
This file is part of the documentation for OPIE Version 1.0.