blob: 7bcc098f1c98aadc61f72f4faa4489051c3cc516 [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
20#include "VpnController.h"
21
San Mehat5d6d4172009-05-14 15:00:06 -070022class ServiceManager;
23
San Mehat94447ca2009-05-13 11:54:16 -070024class OpenVpnController : public VpnController {
San Mehat5d6d4172009-05-14 15:00:06 -070025private:
26 ServiceManager *mServiceManager;
San Mehat94447ca2009-05-13 11:54:16 -070027
28public:
29 OpenVpnController();
San Mehat5d6d4172009-05-14 15:00:06 -070030 virtual ~OpenVpnController();
San Mehat94447ca2009-05-13 11:54:16 -070031
32 int start();
33 int stop();
34 int enable();
35 int disable();
36
37protected:
38
39private:
San Mehat5d6d4172009-05-14 15:00:06 -070040 int validateConfig();
San Mehat94447ca2009-05-13 11:54:16 -070041};
42
43#endif