summaryrefslogtreecommitdiff
path: root/noncore/net/networksetup/module.h
blob: c1e9488c11c8e827a6cba7cd7f3ed9cd25091ad2 (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
#ifndef NETCONF_MODULE_H
#define NETCONF_MODULE_H

#include <qobject.h>
#include <qlist.h>
#include <qmap.h>
#include "interface.h"

class QWidget;
class QTabWidget;

class Module : QObject{

signals:
  void updateInterface(Interface *i);
	
public:
  Module(){};
  
  virtual bool isOwner(Interface *){ return false; };
  virtual QWidget *configure(QTabWidget **tabWidget){ return NULL; } ;
  virtual QWidget *information(QTabWidget **tabWidget){ return NULL; };
  virtual QList<Interface> getInterfaces() = 0;
  virtual QMap<QString, QString> possibleNewInterfaces() = 0;
  virtual Interface *addNewInterface(QString name) = 0;
  virtual bool remove(Interface* i) = 0;
  virtual QString getPixmapName(Interface* i) = 0;

};

#endif

// module.h