blob: 323c44cbfdf6df6beb5c6bb12e542e984d99eeac [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;
24
San Mehat94447ca2009-05-13 11:54:16 -070025class OpenVpnController : public VpnController {
San Mehat5d6d4172009-05-14 15:00:06 -070026private:
27 ServiceManager *mServiceManager;
San Mehat94447ca2009-05-13 11:54:16 -070028
29public:
San Mehat3c5a6f02009-05-22 15:36:13 -070030 OpenVpnController(PropertyManager *propmngr);
San Mehat5d6d4172009-05-14 15:00:06 -070031 virtual ~OpenVpnController();
San Mehat94447ca2009-05-13 11:54:16 -070032
33 int start();
34 int stop();
San Mehat48765672009-05-20 15:28:43 -070035
36private:
San Mehat94447ca2009-05-13 11:54:16 -070037 int enable();
38 int disable();
San Mehat94447ca2009-05-13 11:54:16 -070039};
40
41#endif