Changed SysLog -> SysSecureLog.
[platform/framework/native/telephony.git] / src / FTel_NetworkSettingEventArg.h
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.h
19  * @brief       This is the header file for _NetworkSettingEventArg class.
20  *
21  * This header file contains the declarations of _NetworkSettingEventArg class.
22  */
23
24
25 #ifndef _FTEL_INTERNAL_NETWORK_SETTING_EVENT_ARG_H_
26 #define _FTEL_INTERNAL_NETWORK_SETTING_EVENT_ARG_H_
27
28 // Includes
29 #include <FBaseObject.h>
30 #include <FBaseDataType.h>
31 #include <FBaseRtIEventArg.h>
32
33 namespace Tizen { namespace Base { namespace Collection
34 {
35 class IList;
36 }}}
37
38 namespace Tizen { namespace Telephony
39 {
40
41 enum _NetworkSettingEventType
42 {
43     _NETWORK_EVENT_NONE,
44     _NETWORK_EVENT_GET_SELECTION_MODE,
45     _NETWORK_EVENT_SELECT_NETWORK,
46     _NETWORK_EVENT_SEARCH_COMPLETED
47 };
48
49
50 /**
51  * @class   _NetworkSettingEventArg
52  * @brief   This class is used as an argument of methods of the ITelephonyNetworkSettingListener class.
53  *
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.
57  */
58
59 class _NetworkSettingEventArg
60     : public Tizen::Base::Object
61     , public Tizen::Base::Runtime::IEventArg
62 {
63 public:
64     _NetworkSettingEventArg(void);
65
66     _NetworkSettingEventArg(_NetworkSettingEventType networkType, bool isManual, result r);
67
68     _NetworkSettingEventArg(_NetworkSettingEventType networkType, result r);
69
70     _NetworkSettingEventArg(_NetworkSettingEventType networkType, Tizen::Base::Collection::IList* pNetworkInfoList, result r);
71
72     virtual ~_NetworkSettingEventArg(void);
73
74     /**
75      * @brief   Gets the error code.
76      * @return  Error code of this argument.
77      */
78     result GetError(void) const;
79
80     _NetworkSettingEventType GetEventType(void) const;
81
82     bool GetIsManual(void) const;
83
84     /**
85      * @brief       Gets the list of NetworkInfo.
86      * @return      Pointer to the ArrayList object which contains information of NetoworkInfo.
87      */
88     Tizen::Base::Collection::IList* GetNetworkInfoList(void) const;
89
90 private:
91     _NetworkSettingEventArg(const _NetworkSettingEventArg& rhs);
92     _NetworkSettingEventArg& operator =(const _NetworkSettingEventArg& rhs);
93
94 private:
95     result __error;
96     _NetworkSettingEventType __eventType;
97     bool __isManual;
98     Tizen::Base::Collection::IList* __pNetworkInfoList;
99
100 }; // _NetworkSettingEventArg
101 } }
102
103 #endif // _FTEL_INTERNAL_NETWORK_MANAGER_EVENT_ARG_H_