2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
9 // http://www.apache.org/licenses/LICENSE-2.0
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.
19 * @file FSys_DeviceManagerService.h
20 * @brief This is the header file of the _DeviceManagerService class.
22 * This header file contains the declarations of the _DeviceManagerService class.
26 #include <FSys_IDeviceManagerEventListener.h>
27 #include "FApp_ICommunicationRequestListener.h"
29 #ifndef _FSYS_INTERNAL_DEVICE_MANAGER_SERVICE_H_
30 #define _FSYS_INTERNAL_DEVICE_MANAGER_SERVICE_H_
32 namespace Tizen { namespace System {
35 * @class _DeviceManagerService
36 * @brief This class contains implementaion of device control.
39 class _DeviceManagerService
40 : public Tizen::App::_ICommunicationRequestListener
41 , public Tizen::System::_IDeviceManagerEventListener
44 _DeviceManagerService(void);
45 virtual ~_DeviceManagerService(void);
47 virtual Tizen::Base::String GetId(void);
48 virtual void OnRequestOccured(Tizen::App::AppId appId, Tizen::Base::Collection::ArrayList* request, Tizen::Base::Collection::ArrayList* response);
49 virtual void OnApplicationTerminated(const Tizen::App::AppId& appId, Tizen::App::_AppType type);
50 virtual void OnBluetoothEventOccured(int code);
51 void SendEvent(Tizen::Base::String event);
52 void SetBluetoothStatus(bool status);
53 bool GetBluetoothStatus(void);
54 static _DeviceManagerService* GetInstance(void);
57 void AddInterestedApp(Tizen::App::AppId appId);
58 void RemoveInterestedApp(Tizen::App::AppId appId);
59 Tizen::Base::Collection::ArrayList __interestedAppList;
60 Tizen::App::_CommunicationDispatcher* __pCommunicationDispatcher;
61 bool isBluetoothHeadSetConnected;
62 static _DeviceManagerService* __pDeviceManagerService;
64 }; //_DeviceManagerService
67 #endif /* _FSYS_INTERNAL_DEVICE_MANAGER_SERVICE_H_ */