merge with master
[platform/framework/native/telephony.git] / src / FTel_NetworkManagerEventArg.cpp
1 //
2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4 //
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
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
10 //
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.
16 //
17 /**
18  * @file        FTel_NetworkManagerEventArg.cpp
19  * @brief       This is the implementation file for the %_NetworkManagerEventArg class.
20  *
21  * This file contains the implementation of the %_NetworkManagerEventArg class.
22  */
23
24 #include <FBaseErrorDefine.h>
25 #include "FTel_NetworkStatusImpl.h"
26 #include "FTel_NetworkManagerEventArg.h"
27
28 namespace Tizen { namespace Telephony
29 {
30
31 _NetworkManagerEventArg::_NetworkManagerEventArg(void)
32 {
33 }
34
35 _NetworkManagerEventArg::_NetworkManagerEventArg(const NetworkStatus& networkstatus)
36 {
37     _NetworkStatusImpl::GetInstance(__networkStatus)->SetIsCallServiceAvailable(networkstatus.IsCallServiceAvailable());
38     _NetworkStatusImpl::GetInstance(__networkStatus)->SetIsDataServiceAvailable(networkstatus.IsDataServiceAvailable());
39     _NetworkStatusImpl::GetInstance(__networkStatus)->SetIsRoaming(networkstatus.IsRoaming());
40 }
41
42 const NetworkStatus&
43 _NetworkManagerEventArg::GetNetworkStatus(void) const
44 {
45     return __networkStatus;
46 }
47
48
49 } } // Tizen::Telephony