affed4030c75f3a4c072fddc0f9d015f68c392e9
[platform/core/connectivity/net-config.git] / gtest / netstat.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 __NETSTAT_H__
17 #define __NETSTAT_H__
18
19 #include "netconf.h"
20 #include "gdbus.h"
21
22 class NetStat:public GDbus {
23 public:
24         NetStat();
25         ~NetStat();
26         error_e GetWifiTotalTxBytes(void);
27         error_e GetWifiLastTxBytes(void);
28         error_e GetWifiLastRxBytes(void);
29         error_e GetWifiTotalRxBytes(void);
30         error_e ResetWifiTotalRxBytes(void);
31         error_e ResetWifiTotalTxBytes(void);
32         error_e ResetWifiLastRxBytes(void);
33         error_e ResetWifiLastTxBytes(void);
34         error_e ResetCellularLastRxBytes(void);
35         error_e ResetCellularLastTxBytes(void);
36         error_e ResetCellularTotalRxBytes(void);
37         error_e ResetCellularTotalTxBytes(void);
38 };
39
40
41 #endif /* __NETSTAT_H__ */