2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
18 * @file FNet_NetStatisticsImpl.h
19 * @brief This is the header file for the _NetStatisticsImpl class.
22 #ifndef _FNET_INTERNAL_NET_STATISTICS_IMPL_H_
23 #define _FNET_INTERNAL_NET_STATISTICS_IMPL_H_
25 #include <FBaseDataType.h>
26 #include <FBaseObject.h>
27 #include <FNetNetTypes.h>
28 #include "FNet_NetUtility.h"
30 namespace Tizen { namespace Net
34 class _NetStatisticsImpl
35 : public Tizen::Base::Object
39 * This is the default constructor for this class.
42 * @remarks After creating an instance of this class, the Construct() method must be called explicitly to initialize this instance.
45 _NetStatisticsImpl(void);
48 * This is the destructor for this class.
52 virtual ~_NetStatisticsImpl(void);
55 * @see NetStatistics::Construct()
57 result Construct(void);
61 * @see NetStatistics::GetNetStatisticsInfo()
63 long long GetNetStatisticsInfo(NetBearerType bearerType, NetStatisticsInfoType netStatType) const;
66 * @see NetStatistics::Reset()
68 result Reset(NetBearerType bearerType, NetStatisticsInfoType netStatType);
71 * @see NetStatistics::ResetAll()
73 result ResetAll(NetBearerType bearerType);
77 * Gets the Impl instance.
80 * @return The pointer to _NetStatisticsImpl
81 * @param[in] netStatistics An instance of NetStatistics
83 static _NetStatisticsImpl* GetInstance(NetStatistics& netStatistics);
86 * Gets the Impl instance.
89 * @return The pointer to _NetStatisticsImpl
90 * @param[in] netStatistics An instance of NetStatistics
92 static const _NetStatisticsImpl* GetInstance(const NetStatistics& netStatistics);
96 * This is the copy constructor for this class. @n
97 * Do @b not use directly.
99 * @param[in] rhs An instance of _NetStatisticsImpl
101 _NetStatisticsImpl(const _NetStatisticsImpl& rhs);
104 * This is the assignment operator. Do @b not use directly.
106 * @param[in] rhs An instance of _NetStatisticsImpl
108 _NetStatisticsImpl& operator =(const _NetStatisticsImpl& rhs);
111 bool __isConstructed;
112 std::unique_ptr<void, _ConnectionDeleter> __pConnectionHandle;
113 friend class NetStatistics;
114 }; // _NetStatisticsImpl
118 #endif // _FNET_INTERNAL_NET_STATISTICS_IMPL_H_