summaryrefslogtreecommitdiffstats
path: root/nexus/VpnController.h
diff options
context:
space:
mode:
Diffstat (limited to 'nexus/VpnController.h')
-rw-r--r--nexus/VpnController.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/nexus/VpnController.h b/nexus/VpnController.h
index 0a93990..b36856f 100644
--- a/nexus/VpnController.h
+++ b/nexus/VpnController.h
@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
#ifndef _VPN_CONTROLLER_H
#define _VPN_CONTROLLER_H
@@ -21,25 +22,25 @@
#include "Controller.h"
class VpnController : public Controller {
+ bool mEnabled;
/*
* Gateway of the VPN server to connect to
*/
struct in_addr mVpnGateway;
public:
- VpnController();
+ VpnController(PropertyManager *propmngr);
virtual ~VpnController() {}
virtual int start();
virtual int stop();
- virtual int setProperty(const char *name, char *value);
- virtual const char *getProperty(const char *name, char *buffer,
- size_t maxlen);
+ virtual int set(const char *name, const char *value);
+ virtual const char *get(const char *name, char *buffer, size_t maxlen);
-private:
- virtual int enable();
- virtual int disable();
+protected:
+ virtual int enable() = 0;
+ virtual int disable() = 0;
};