Diffstat (limited to 'noncore/net/networksetup/ppp/pppmodule.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/networksetup/ppp/pppmodule.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/noncore/net/networksetup/ppp/pppmodule.h b/noncore/net/networksetup/ppp/pppmodule.h new file mode 100644 index 0000000..c8e77e2 --- a/dev/null +++ b/noncore/net/networksetup/ppp/pppmodule.h | |||
@@ -0,0 +1,41 @@ | |||
1 | #ifndef PPP_MODULE_H | ||
2 | #define PPP_MODULE_H | ||
3 | |||
4 | #include "module.h" | ||
5 | |||
6 | class PPPModule : Module { | ||
7 | |||
8 | signals: | ||
9 | void updateInterface(Interface *i); | ||
10 | |||
11 | public: | ||
12 | PPPModule(); | ||
13 | ~PPPModule(); | ||
14 | |||
15 | virtual void setProfile(const QString &newProfile); | ||
16 | virtual bool isOwner(Interface *); | ||
17 | virtual QWidget *configure(Interface *i); | ||
18 | virtual QWidget *information(Interface *i); | ||
19 | virtual QList<Interface> getInterfaces(); | ||
20 | virtual void possibleNewInterfaces(QMap<QString, QString> &){}; | ||
21 | virtual Interface *addNewInterface(const QString &name); | ||
22 | virtual bool remove(Interface* i); | ||
23 | virtual QString getPixmapName(Interface* i); | ||
24 | |||
25 | private: | ||
26 | QList<Interface> list; | ||
27 | QString profile; | ||
28 | |||
29 | }; | ||
30 | |||
31 | extern "C" | ||
32 | { | ||
33 | void* create_plugin() { | ||
34 | return new PPPModule(); | ||
35 | } | ||
36 | }; | ||
37 | |||
38 | #endif | ||
39 | |||
40 | // pppmodule.h | ||
41 | |||