Add signed-off-by signature for submit request.
[platform/framework/native/telephony.git] / src / FTel_NetworkSettingEventArg.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_NetworkSettingEventArg.cpp
19  * @brief       This is the implementation file for the %_NetworkSettingEventArg class.
20  *
21  * This file contains the implementation of the %_NetworkSettingEventArg class.
22  */
23
24 #include <FBaseErrorDefine.h>
25 #include <FBaseColArrayList.h>
26 #include "FTel_NetworkSettingEventArg.h"
27
28 namespace Tizen { namespace Telephony
29 {
30
31 _NetworkSettingEventArg::_NetworkSettingEventArg(void)
32     : __error(E_SUCCESS)
33     , __eventType(_NETWORK_EVENT_NONE)
34     , __isManual(false)
35     , __pNetworkInfoList(null)
36 {
37 }
38
39 _NetworkSettingEventArg::_NetworkSettingEventArg(_NetworkSettingEventType networkType, bool isManual, result r)
40     : __error(r)
41     , __eventType(networkType)
42     , __isManual(isManual)
43     , __pNetworkInfoList(null)
44 {
45
46 }
47
48 _NetworkSettingEventArg::_NetworkSettingEventArg(_NetworkSettingEventType networkType, result r)
49     : __error(r)
50     , __eventType(networkType)
51     , __isManual(false)
52     , __pNetworkInfoList(null)
53 {
54
55 }
56
57 _NetworkSettingEventArg::_NetworkSettingEventArg(_NetworkSettingEventType networkType, Tizen::Base::Collection::IList* pNetworkInfoList, result r)
58     : __error(r)
59     , __eventType(networkType)
60     , __isManual(false)
61     , __pNetworkInfoList(pNetworkInfoList)
62 {
63
64 }
65
66
67 _NetworkSettingEventArg::~_NetworkSettingEventArg(void)
68 {
69     if (__pNetworkInfoList != null)
70     {
71         __pNetworkInfoList->RemoveAll(true);
72         delete __pNetworkInfoList;
73     }
74 }
75
76
77 result
78 _NetworkSettingEventArg::GetError(void) const
79 {
80     return __error;
81 }
82
83 _NetworkSettingEventType
84 _NetworkSettingEventArg::GetEventType(void) const
85 {
86     return __eventType;
87 }
88
89 bool
90 _NetworkSettingEventArg::GetIsManual(void) const
91 {
92     return __isManual;
93 }
94
95 Tizen::Base::Collection::IList*
96 _NetworkSettingEventArg::GetNetworkInfoList(void) const
97 {
98     return __pNetworkInfoList;
99 }
100
101
102 } } // Tizen::Telephony