summaryrefslogtreecommitdiffstats
path: root/languages/cpp/app_templates/opienet/simpleiface.h
blob: c38d884f6cfbfe8a1bd1b14961fb380af8b5eecc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef EXAMPLE_IFACE_VPN_H
#define EXAMPLE_IFACE_VPN_H

#include <interfaces/interface.h>

class %{APPNAME}Interface : public Interface {
    Q_OBJECT
  TQ_OBJECT

public:
    %{APPNAME}Interface(TQObject* tqparent, 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