aac5aaa3f24a9cbf8fb5286fb46742515d843fd3
[platform/framework/native/appfw.git] / src / system-server / inc / FSys_DeviceManager.h
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
3 //
4 // Licensed under the Apache License, Version 2.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 //     http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16
17 /**
18  * @file         FSys_DeviceManager.h
19  * @brief       This is the header file of the _DeviceManager class.
20  *
21  * This header file contains the declarations of the _DeviceManager class.
22  */
23 #include <FApp.h>
24 #include <FBase.h>
25 #include <FSys_IDeviceManagerEventListener.h>
26 #include <FSysIDeviceEventListener.h>
27
28 #ifndef _FSYS_INTERNAL_DEVICE_MANAGER_H_
29 #define _FSYS_INTERNAL_DEVICE_MANAGER_H_
30
31 namespace Tizen { namespace System {
32
33 /**
34  * @class       _DeviceManager
35  * @brief       This class contains implementaion of device control.
36  * @since 2.1
37  */
38 class _OSP_EXPORT_ _DeviceManager
39 {
40 private:
41         _DeviceManager(void);
42         virtual ~_DeviceManager(void);
43 public:
44         virtual result InitializeDevice(void);
45         virtual result DeinitializeDevice(void);
46         virtual result RegisterListner(IDeviceEventListener &listener);
47         virtual result UnregisterListner(IDeviceEventListener &listener);
48         IDeviceEventListener* GetEventListener();
49
50         virtual Tizen::Base::String GetId(void);
51         void SetBluetoothStatus(bool status);
52         virtual bool GetBluetoothStatus(void);
53         static _DeviceManager* GetInstance(void);
54 private:
55         static void InitSingleton(void);
56         static void DestroySingleton(void);
57 private:
58         static _DeviceManager* __pDeviceManager;
59         bool isBluetoothHeadSetConnected;
60         bool isInitBluetooth;
61         IDeviceEventListener* __pDeviceManagerListener;
62 };      //_DeviceManager
63
64 }} //Tizen::System
65 #endif /* _FSYS_INTERNAL_DEVICE_MANAGER_H_ */