2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Flora License, Version 1.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://floralicense.org/license/
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_AccessoryManagerService.h
20 * @brief This is the header file of the _AccessoryManagerService class.
22 * This header file contains the declarations of the _AccessoryManagerService class.
26 #include "FApp_CommunicationDispatcher.h"
27 #include "FApp_ICommunicationRequestListener.h"
29 #ifndef _FSYS_INTERNAL_ACCESSORY_MANAGER_SERVICE_H_
30 #define _FSYS_INTERNAL_ACCESSORY_MANAGER_SERVICE_H_
32 namespace Tizen { namespace Base { namespace Runtime {
35 namespace Tizen { namespace System {
37 typedef void (*OnRequestOccuredFunction)(Tizen::App::AppId appId, Tizen::Base::Collection::ArrayList* request, Tizen::Base::Collection::ArrayList* response);
38 typedef void (*RemoveOwnerApplicationFunction)(const Tizen::App::AppId appId, const Tizen::Base::String& executableName);
41 * @class _AccessoryManagerService
42 * @brief This class contains implementaion of device control.
45 class _AccessoryManagerService
46 : public Tizen::App::_ICommunicationRequestListener
49 _AccessoryManagerService(void);
50 virtual ~_AccessoryManagerService(void);
53 virtual Tizen::Base::String GetId(void);
54 virtual void OnRequestOccured(Tizen::App::AppId appId, Tizen::Base::Collection::ArrayList* request, Tizen::Base::Collection::ArrayList* response);
55 virtual void OnApplicationTerminated(const Tizen::App::AppId& appId, Tizen::App::_AppType type);
56 result SendData(Tizen::App::AppId appId, Tizen::Base::Collection::ArrayList* data);
57 static _AccessoryManagerService* GetInstance(void);
60 _AccessoryManagerService(const _AccessoryManagerService& value);
61 _AccessoryManagerService& operator =(const _AccessoryManagerService& value);
62 Tizen::Base::Runtime::Library* __pLib;
63 Tizen::App::_CommunicationDispatcher* __pCommunicationDispatcher;
64 OnRequestOccuredFunction __pOnRequestOccuredFunction;
65 RemoveOwnerApplicationFunction __pRemoveOwnerApplicationFunction;
66 }; //_AccessoryManagerService
69 #endif /* _FSYS_INTERNAL_ACCESSORY_MANAGER_SERVICE_H_ */