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_NetworkSettingEventArg.h
19 * @brief This is the header file for _NetworkSettingEventArg class.
21 * This header file contains the declarations of _NetworkSettingEventArg class.
25 #ifndef _FTEL_INTERNAL_NETWORK_SETTING_EVENT_ARG_H_
26 #define _FTEL_INTERNAL_NETWORK_SETTING_EVENT_ARG_H_
29 #include <FBaseObject.h>
30 #include <FBaseDataType.h>
31 #include <FBaseRtIEventArg.h>
33 namespace Tizen { namespace Base { namespace Collection
38 namespace Tizen { namespace Telephony
41 enum _NetworkSettingEventType
44 _NETWORK_EVENT_GET_SELECTION_MODE,
45 _NETWORK_EVENT_SELECT_NETWORK,
46 _NETWORK_EVENT_SEARCH_COMPLETED
51 * @class _NetworkSettingEventArg
52 * @brief This class is used as an argument of methods of the ITelephonyNetworkSettingListener class.
54 * This class is used as an argument of ITelephonyNetworkSettingListener methods.
55 * When a NetworkManager event occurs, the _NetworkSettingEvent object finds a ITelephonyNetworkSettingListener object
56 * which is registered for the NetworkManager object and calls an appropriate method of the listener.
59 class _NetworkSettingEventArg
60 : public Tizen::Base::Object
61 , public Tizen::Base::Runtime::IEventArg
64 _NetworkSettingEventArg(void);
66 _NetworkSettingEventArg(_NetworkSettingEventType networkType, bool isManual, result r);
68 _NetworkSettingEventArg(_NetworkSettingEventType networkType, result r);
70 _NetworkSettingEventArg(_NetworkSettingEventType networkType, Tizen::Base::Collection::IList* pNetworkInfoList, result r);
72 virtual ~_NetworkSettingEventArg(void);
75 * @brief Gets the error code.
76 * @return Error code of this argument.
78 result GetError(void) const;
80 _NetworkSettingEventType GetEventType(void) const;
82 bool GetIsManual(void) const;
85 * @brief Gets the list of NetworkInfo.
86 * @return Pointer to the ArrayList object which contains information of NetoworkInfo.
88 Tizen::Base::Collection::IList* GetNetworkInfoList(void) const;
91 _NetworkSettingEventArg(const _NetworkSettingEventArg& rhs);
92 _NetworkSettingEventArg& operator =(const _NetworkSettingEventArg& rhs);
96 _NetworkSettingEventType __eventType;
98 Tizen::Base::Collection::IList* __pNetworkInfoList;
100 }; // _NetworkSettingEventArg
103 #endif // _FTEL_INTERNAL_NETWORK_MANAGER_EVENT_ARG_H_