00001 #ifndef PPP_MODULE_H 00002 #define PPP_MODULE_H 00003 00004 #include "module.h" 00005 00006 class PPPModule : Module { 00007 00008 signals: 00009 void updateInterface(Interface *i); 00010 00011 public: 00012 PPPModule(); 00013 ~PPPModule(); 00014 00015 virtual const QString type() {return "ppp";}; 00016 virtual void setProfile(const QString &newProfile); 00017 virtual bool isOwner(Interface *); 00018 virtual QWidget *configure(Interface *i); 00019 virtual QWidget *information(Interface *i); 00020 virtual QList<Interface> getInterfaces(); 00021 virtual void possibleNewInterfaces(QMap<QString, QString> &); 00022 virtual Interface *addNewInterface(const QString &name); 00023 virtual bool remove(Interface* i); 00024 virtual QString getPixmapName(Interface* i); 00025 virtual void receive(const QCString &, const QByteArray &) {}; 00026 00027 private: 00028 QList<Interface> list; 00029 QString profile; 00030 00031 }; 00032 00033 extern "C" 00034 { 00035 void* create_plugin() { 00036 return new PPPModule(); 00037 } 00038 }; 00039 00040 #endif 00041 00042 // pppmodule.h 00043
1.4.2