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 FTel_NetworkStatusImpl.cpp
19 * @brief This is the implementation file for _NetworkStatusImpl class.
22 #include <FTelNetworkStatus.h>
23 #include "FTel_NetworkStatusImpl.h"
25 namespace Tizen { namespace Telephony
29 _NetworkStatusImpl::_NetworkStatusImpl(void)
31 , __isCallServiceAvailable(false)
32 , __isDataServiceAvailable(false)
36 _NetworkStatusImpl::~_NetworkStatusImpl(void)
40 _NetworkStatusImpl::_NetworkStatusImpl(const _NetworkStatusImpl& rhs)
41 : __isRoaming(rhs.__isRoaming)
42 , __isCallServiceAvailable(rhs.__isCallServiceAvailable)
43 , __isDataServiceAvailable(rhs.__isDataServiceAvailable)
49 _NetworkStatusImpl::IsRoaming(void) const
55 _NetworkStatusImpl::IsCallServiceAvailable(void) const
57 return __isCallServiceAvailable;
61 _NetworkStatusImpl::IsDataServiceAvailable(void) const
63 return __isDataServiceAvailable;
67 _NetworkStatusImpl::SetIsRoaming(bool isRoaming)
69 __isRoaming = isRoaming;
73 _NetworkStatusImpl::SetIsCallServiceAvailable(bool isCallServiceAvailable)
75 __isCallServiceAvailable = isCallServiceAvailable;
79 _NetworkStatusImpl::SetIsDataServiceAvailable(bool isDataServiceAvailable)
81 __isDataServiceAvailable = isDataServiceAvailable;
85 _NetworkStatusImpl::GetInstance(NetworkStatus& networkStatus)
87 return networkStatus.__pNetworkStatusImpl;
90 const _NetworkStatusImpl*
91 _NetworkStatusImpl::GetInstance(const NetworkStatus& networkStatus)
93 return networkStatus.__pNetworkStatusImpl;
97 _NetworkStatusImpl::operator =(const _NetworkStatusImpl& rhs)
102 __isRoaming = rhs.__isRoaming;
103 __isCallServiceAvailable = rhs.__isCallServiceAvailable;
104 __isDataServiceAvailable = rhs.__isDataServiceAvailable;
111 }} // Tizen::Telephony