2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
8 // http://www.apache.org/licenses/LICENSE-2.0
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.
18 * @file FSys_DeviceManager.h
19 * @brief This is the header file of the _DeviceManager class.
21 * This header file contains the declarations of the _DeviceManager class.
25 #include <FSys_IDeviceManagerEventListener.h>
26 #include <FSysIDeviceEventListener.h>
28 #ifndef _FSYS_INTERNAL_DEVICE_MANAGER_H_
29 #define _FSYS_INTERNAL_DEVICE_MANAGER_H_
31 namespace Tizen { namespace System {
34 * @class _DeviceManager
35 * @brief This class contains implementaion of device control.
38 class _OSP_EXPORT_ _DeviceManager
42 virtual ~_DeviceManager(void);
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();
50 virtual Tizen::Base::String GetId(void);
51 void SetBluetoothStatus(bool status);
52 virtual bool GetBluetoothStatus(void);
53 static _DeviceManager* GetInstance(void);
55 static void InitSingleton(void);
56 static void DestroySingleton(void);
58 static _DeviceManager* __pDeviceManager;
59 bool isBluetoothHeadSetConnected;
61 IDeviceEventListener* __pDeviceManagerListener;
65 #endif /* _FSYS_INTERNAL_DEVICE_MANAGER_H_ */