merge with master
[platform/framework/native/telephony.git] / src / FTel_SimManagerEventArg.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_SimManagerEventArg.cpp
19  * @brief       This is the implementation file for the %_SimManagerEventArg class.
20  *
21  * This file contains the implementation of the %_SimManagerEventArg class.
22  */
23
24 #include <FBaseErrorDefine.h>
25 #include <FBaseColArrayList.h>
26 #include "FTel_SimManagerEventArg.h"
27
28 namespace Tizen { namespace Telephony
29 {
30
31 _SimManagerEventArg::_SimManagerEventArg(void)
32         : __eventType(_SIM_MANAGER_EVENT_NONE)
33         , __isPinLockEnabled(false)
34         , __result(E_SUCCESS)
35 {
36 }
37
38 _SimManagerEventArg::_SimManagerEventArg(_SimManagerEventType type, bool isEnabled, result r)
39         : __eventType(type)
40         , __isPinLockEnabled(isEnabled)
41         , __result(r)
42 {
43 }
44
45 _SimManagerEventType
46 _SimManagerEventArg::GetEventType(void) const
47 {
48         return __eventType;
49 }
50
51 result
52 _SimManagerEventArg::GetResult(void) const
53 {
54         return __result;
55 }
56
57 bool
58 _SimManagerEventArg::IsPinLockEnabled(void) const
59 {
60         return __isPinLockEnabled;
61 }
62
63 } } // Tizen::Telephony