author | zecke <zecke> | 2004-02-08 20:25:39 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-02-08 20:25:39 (UTC) |
commit | b2c64a5e4b3bed21b1aea091625a3846b2b87d47 (patch) (unidiff) | |
tree | e469488e20911e75a593ab89c74c2ae99e2b7d60 /examples/networksettings/exampleiface.h | |
parent | 4a3ca9b1d175df6eea1f38db4feb10c564af29f3 (diff) | |
download | opie-b2c64a5e4b3bed21b1aea091625a3846b2b87d47.zip opie-b2c64a5e4b3bed21b1aea091625a3846b2b87d47.tar.gz opie-b2c64a5e4b3bed21b1aea091625a3846b2b87d47.tar.bz2 |
Example network settings plugin
Fake VPN stuff
Diffstat (limited to 'examples/networksettings/exampleiface.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | examples/networksettings/exampleiface.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/examples/networksettings/exampleiface.h b/examples/networksettings/exampleiface.h new file mode 100644 index 0000000..e5a757b --- a/dev/null +++ b/examples/networksettings/exampleiface.h | |||
@@ -0,0 +1,22 @@ | |||
1 | #ifndef EXAMPLE_IFACE_VPN_H | ||
2 | #define EXAMPLE_IFACE_VPN_H | ||
3 | |||
4 | #include <interfaces/interface.h> | ||
5 | |||
6 | class VirtualInterface : public Interface { | ||
7 | Q_OBJECT | ||
8 | |||
9 | public: | ||
10 | VirtualInterface(QObject* parent, const char* name = "vpn", bool up = false ); | ||
11 | ~VirtualInterface(); | ||
12 | |||
13 | public slots: | ||
14 | bool refresh(); // refresh information | ||
15 | void start(); | ||
16 | void stop(); | ||
17 | |||
18 | private: | ||
19 | bool m_isUp : 1; | ||
20 | }; | ||
21 | |||
22 | #endif | ||