diff options
Diffstat (limited to 'languages/cpp/app_templates/opienet/simpleiface.h')
-rw-r--r-- | languages/cpp/app_templates/opienet/simpleiface.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/languages/cpp/app_templates/opienet/simpleiface.h b/languages/cpp/app_templates/opienet/simpleiface.h new file mode 100644 index 00000000..f235c160 --- /dev/null +++ b/languages/cpp/app_templates/opienet/simpleiface.h @@ -0,0 +1,22 @@ +#ifndef EXAMPLE_IFACE_VPN_H +#define EXAMPLE_IFACE_VPN_H + +#include <interfaces/interface.h> + +class %{APPNAME}Interface : public Interface { + Q_OBJECT + +public: + %{APPNAME}Interface(QObject* parent, const char* name = "vpn", bool up = false ); + ~%{APPNAME}Interface(); + +public slots: + bool refresh(); // refresh information + void start(); + void stop(); + +private: + bool m_isUp : 1; +}; + +#endif |