Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

examplemodule.h

Go to the documentation of this file.
00001 #ifndef OPIE_EXAMPLE_NETWORK_MODULE_H
00002 #define OPIE_EXAMPLE_NETWORK_MODULE_H
00003 
00004 #include <interfaces/module.h>
00005 
00006 class VirtualModule : Module {
00007 
00008 signals:
00009     void updateInterface(Interface* i );
00010 
00011 public:
00012     VirtualModule();
00013     ~VirtualModule();
00014 
00015     const QString type() {return QString::fromLatin1("vpn" );}
00016     void setProfile( const QString& ) {}
00017     bool isOwner( Interface* );
00018     QWidget *configure( Interface* );
00019     QWidget *information(  Interface* );
00020     QList<Interface> getInterfaces();
00021     void possibleNewInterfaces( QMap<QString, QString>& );
00022     Interface *addNewInterface( const QString& );
00023     bool remove( Interface* iface );
00024     QString getPixmapName( Interface*  ) {return QString::fromLatin1("Tux"); }
00025     void receive( const QCString& msg, const QByteArray& ar ) { Q_CONST_UNUSED(msg) Q_CONST_UNUSED(ar) } // don't listen
00026 private:
00027     QList<Interface> m_interfaces;
00028 };
00029 
00030 extern "C" {
00031     void* create_plugin() {
00032         return new VirtualModule();
00033     }
00034 };
00035 
00036 #endif

Generated on Sat Nov 5 16:15:59 2005 for OPIE by  doxygen 1.4.2