summaryrefslogtreecommitdiff
path: root/examples/networksettings/exampleiface.h
Side-by-side diff
Diffstat (limited to 'examples/networksettings/exampleiface.h') (more/less context) (ignore whitespace changes)
-rw-r--r--examples/networksettings/exampleiface.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/examples/networksettings/exampleiface.h b/examples/networksettings/exampleiface.h
new file mode 100644
index 0000000..e5a757b
--- a/dev/null
+++ b/examples/networksettings/exampleiface.h
@@ -0,0 +1,22 @@
+#ifndef EXAMPLE_IFACE_VPN_H
+#define EXAMPLE_IFACE_VPN_H
+
+#include <interfaces/interface.h>
+
+class VirtualInterface : public Interface {
+ Q_OBJECT
+
+public:
+ VirtualInterface(QObject* parent, const char* name = "vpn", bool up = false );
+ ~VirtualInterface();
+
+public slots:
+ bool refresh(); // refresh information
+ void start();
+ void stop();
+
+private:
+ bool m_isUp : 1;
+};
+
+#endif