sync with master
[platform/framework/native/appfw.git] / src / system / FSys_DeviceEventListenerContainer.cpp
1 //
2 // Open Service Platform
3 // Copyright (c) 2012 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                FSys_DeviceEventListenerContainer.cpp
20  * @brief               This is the implementation file for _DeviceEventListenerContainer class.
21  */
22
23 #include <FSys_DeviceEventListenerContainer.h>
24
25 using namespace Tizen::Base::Runtime;
26
27 namespace Tizen { namespace System
28 {
29
30 _DeviceEventListenerContainer::_DeviceEventListenerContainer(void)
31         : __bluetoothHeadset(false)
32         , __charger(false)
33         , __usbClient(false)
34         , __tvOut(false)
35         , __wiredHeadset(false)
36         , __wiredHeadphone(false)
37         , __storageCard(false)
38         , __keyboard(false)
39         , __hdmi(false)
40         , __pEvent(null)
41         , __pListener(null)
42 {
43 }
44
45 _DeviceEventListenerContainer::~_DeviceEventListenerContainer(void)
46 {
47 }
48
49 bool
50 _DeviceEventListenerContainer::IsInvalid()
51 {
52         if(__bluetoothHeadset == false && __charger == false
53                 && __usbClient == false && __tvOut == false
54                 && __wiredHeadset == false && __wiredHeadphone == false
55                 && __storageCard == false && __keyboard == false && __hdmi == false)
56         {
57                 return true;
58         }
59         else
60         {
61                 return false;
62         }
63 }
64 } }