summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings/interfaces/interfacesetupimp.h
blob: 936f2be298ac0f7b1fb5be7ec81ae6a10314b3cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef INTERFACESETUPIMP_H
#define INTERFACESETUPIMP_H

#include "interfacesetup.h"
#include <qdialog.h>

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 <qlayout.h>

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