8d51d2a0ff1e42833e31e24bd256d1e9d1979eba
[platform/core/connectivity/net-config.git] / gtest / network_state.h
1 /*
2  * Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved
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 #ifndef __NETWORK_STATE_H__
17 #define __NETWORK_STATE_H__
18
19 #include "network_state.h"
20 #include "gdbus.h"
21
22 class NetworkState:public GDbus {
23 public:
24         NetworkState();
25         ~NetworkState();
26         error_e AddRoute(const char *ip, const char *mask, const char *interface,
27                         const char *gateway, int family, bool *result);
28         error_e RemoveRoute(const char *ip, const char *mask, const char *interface,
29                         const char *gateway, int family, bool *result);
30         error_e EthernetCableState(int *state);
31         error_e LaunchMdns(const char *name);
32         error_e DevicePolicySetWifi(int state);
33         error_e DevicePolicyGetWifi(int *state);
34         error_e DevicePolicySetWifiProfile(int state);
35         error_e DevicePolicyGetWifiProfile(int *state);
36         error_e GetMeteredInfo(bool *state);
37         error_e PreferredIpv6Address(const char *profile, char *address);
38         error_e GetTCPDumpState(bool *state);
39         error_e StartTCPDump();
40         error_e StopTCPDump();
41 };
42
43
44 #endif /* __NETWORK_STATE_H__ */