blob: 529aab53bca76bc2a64529db2a27d75f3ec9f7e7 [file] [log] [blame]
San Mehat94447ca2009-05-13 11:54:16 -07001/*
2 * Copyright (C) 2008 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef _OPEN_VPN_CONTROLLER_H
18#define _OPEN_VPN_CONTROLLER_H
19
San Mehat3c5a6f02009-05-22 15:36:13 -070020#include "PropertyManager.h"
San Mehat94447ca2009-05-13 11:54:16 -070021#include "VpnController.h"
22
San Mehat5d6d4172009-05-14 15:00:06 -070023class ServiceManager;
San Mehat3aff2d12009-06-15 14:10:44 -070024class IControllerHandler;
San Mehat5d6d4172009-05-14 15:00:06 -070025
San Mehat94447ca2009-05-13 11:54:16 -070026class OpenVpnController : public VpnController {
San Mehat5d6d4172009-05-14 15:00:06 -070027private:
28 ServiceManager *mServiceManager;
San Mehat94447ca2009-05-13 11:54:16 -070029
30public:
San Mehat3aff2d12009-06-15 14:10:44 -070031 OpenVpnController(PropertyManager *propmngr, IControllerHandler *handlers);
San Mehat5d6d4172009-05-14 15:00:06 -070032 virtual ~OpenVpnController();
San Mehat94447ca2009-05-13 11:54:16 -070033
34 int start();
35 int stop();
San Mehat48765672009-05-20 15:28:43 -070036
37private:
San Mehat94447ca2009-05-13 11:54:16 -070038 int enable();
39 int disable();
San Mehat94447ca2009-05-13 11:54:16 -070040};
41
42#endif