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/examplemodule.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/examplemodule.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | examples/networksettings/examplemodule.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/examples/networksettings/examplemodule.h b/examples/networksettings/examplemodule.h new file mode 100644 index 0000000..f14a653 --- a/dev/null +++ b/examples/networksettings/examplemodule.h | |||
@@ -0,0 +1,36 @@ | |||
1 | #ifndef OPIE_EXAMPLE_NETWORK_MODULE_H | ||
2 | #define OPIE_EXAMPLE_NETWORK_MODULE_H | ||
3 | |||
4 | #include <module.h> | ||
5 | |||
6 | class VirtualModule : Module { | ||
7 | |||
8 | signals: | ||
9 | void updateInterface(Interface* i ); | ||
10 | |||
11 | public: | ||
12 | VirtualModule(); | ||
13 | ~VirtualModule(); | ||
14 | |||
15 | const QString type() {return QString::fromLatin1("vpn" );} | ||
16 | void setProfile( const QString& ) {} | ||
17 | bool isOwner( Interface* ); | ||
18 | QWidget *configure( Interface* ); | ||
19 | QWidget *information( Interface* ); | ||
20 | QList<Interface> getInterfaces(); | ||
21 | void possibleNewInterfaces( QMap<QString, QString>& ); | ||
22 | Interface *addNewInterface( const QString& ); | ||
23 | bool remove( Interface* iface ); | ||
24 | QString getPixmapName( Interface* ) {return QString::fromLatin1("Tux"); } | ||
25 | void receive( const QCString&, const QByteArray& ar ) {} // don't listen | ||
26 | private: | ||
27 | QList<Interface> m_interfaces; | ||
28 | }; | ||
29 | |||
30 | extern "C" { | ||
31 | void* create_plugin() { | ||
32 | return new VirtualModule(); | ||
33 | } | ||
34 | }; | ||
35 | |||
36 | #endif | ||