Changed SysLog -> SysSecureLog.
[platform/framework/native/telephony.git] / src / FTel_NetworkSettingEvent.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 /**
19  * @file    FTel_NetworkSettingEvent.h
20  * @brief   This is the header file for the _NetworkSettingEvent class.
21  *
22  * This header file contains declarations of the _NetworkSettingEvent class.
23  */
24
25 #ifndef _FTEL_INTERNAL_NETWORK_SETTING_EVENT_H_
26 #define _FTEL_INTERNAL_NETWORK_SETTING_EVENT_H_
27
28 // Includes
29 #include <FBaseResult.h>
30 #include <FBaseRt_Event.h>
31
32 namespace Tizen { namespace Base { namespace Runtime
33 {
34 class IEventListener;
35 class IEventArg;
36 }}}
37
38 namespace Tizen { namespace Telephony
39 {
40
41 /**
42  * @class   _NetworkSettingEvent
43  * @brief   This class handles NetworkManager events related to network setting.
44  *
45  * When a NetworkManager event related to network setting occurs, the _NetworkSettingEvent object finds a ITelephonyNetworkSettingListener object
46  * which is registered for the Device object and calls an appropriate method of the listener.
47  */
48
49 class _NetworkSettingEvent
50     : public Tizen::Base::Runtime::_Event
51 {
52 public:
53     /**
54      * This is the default constructor for this class.
55      */
56     _NetworkSettingEvent();
57
58     /**
59      * This is the class destructor.
60      */
61     virtual ~_NetworkSettingEvent(void);
62
63
64     /**
65      * Initializes a new instance of the  class
66      *
67      */
68     result Construct(void);
69
70 protected:
71     /**
72      * Checks the arg and finds out the type of event. After that this method calls appropriate pListener's method.
73      *
74      * @return      A result code.
75      * @param[in]   listener        It is a event listener related to network setting event.
76      * @param[in]   arg             It is an argument-like instance of NetworkManager event retransmitted to the listener's method as an argument.
77      * @exception   E_SUCCESS       The method is successful.
78      * @exception   E_INVALID_ARG   The argument passed to a method contains an invalid value.@n
79      */
80     void FireImpl(Tizen::Base::Runtime::IEventListener& listener, const Tizen::Base::Runtime::IEventArg& arg);
81
82
83 private:
84     _NetworkSettingEvent(const _NetworkSettingEvent& rhs);
85     _NetworkSettingEvent& operator =(const _NetworkSettingEvent& rhs);
86
87 }; // _NetworkSettingEvent
88
89 }} // Tizen::Telephony
90 #endif // _FTEL_INTERNAL_NETWORK_SETTING_EVENT_H_