From b2c64a5e4b3bed21b1aea091625a3846b2b87d47 Mon Sep 17 00:00:00 2001 From: zecke Date: Sun, 08 Feb 2004 20:25:39 +0000 Subject: Example network settings plugin Fake VPN stuff --- (limited to 'examples/networksettings/examplemodule.h') 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 @@ +#ifndef OPIE_EXAMPLE_NETWORK_MODULE_H +#define OPIE_EXAMPLE_NETWORK_MODULE_H + +#include + +class VirtualModule : Module { + +signals: + void updateInterface(Interface* i ); + +public: + VirtualModule(); + ~VirtualModule(); + + const QString type() {return QString::fromLatin1("vpn" );} + void setProfile( const QString& ) {} + bool isOwner( Interface* ); + QWidget *configure( Interface* ); + QWidget *information( Interface* ); + QList getInterfaces(); + void possibleNewInterfaces( QMap& ); + Interface *addNewInterface( const QString& ); + bool remove( Interface* iface ); + QString getPixmapName( Interface* ) {return QString::fromLatin1("Tux"); } + void receive( const QCString&, const QByteArray& ar ) {} // don't listen +private: + QList m_interfaces; +}; + +extern "C" { + void* create_plugin() { + return new VirtualModule(); + } +}; + +#endif -- cgit v0.9.0.2