2 // Open Service Platform
3 // Copyright (c) 2013 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 FApp_DataControlManager.h
20 * @brief This is the header file for the _DataControlManager class.
23 #ifndef _FAPP_INTERNAL_DATA_CONTROL_MANAGER_H_
24 #define _FAPP_INTERNAL_DATA_CONTROL_MANAGER_H_
26 #include <FBaseObject.h>
27 #include <FBaseColHashMap.h>
28 #include <FBaseRtEvent.h>
30 namespace Tizen { namespace App
33 class _DataControlRequestInfo
34 : public Tizen::Base::Object
37 _DataControlRequestInfo(Tizen::Base::Runtime::Event* pEvent)
42 virtual ~_DataControlRequestInfo(void)
46 Tizen::Base::Runtime::Event* GetEvent(void)
51 _DataControlRequestInfo(void)
56 Tizen::Base::Runtime::Event* __pEvent;
59 class _DataControlManager
60 : public Tizen::Base::Object
63 static _DataControlManager* GetInstance(void);
65 result AddRequestInfo(Tizen::Base::Integer* pReqId, _DataControlRequestInfo* pReqInfo);
67 _DataControlRequestInfo* GetRequestInfo(Tizen::Base::Integer& reqId);
69 void RemoveRequestInfo(Tizen::Base::Integer& reqId);
72 _DataControlManager(void);
74 virtual ~_DataControlManager(void);
76 static void InitSingleton(void);
78 static void DestroySingleton(void);
81 static _DataControlManager* __pDataControlManagerInstance;
82 Tizen::Base::Collection::HashMap* __pDataControlRequestList;
84 }; // _DataControlManager
88 #endif // _FAPP_INTERNAL_DATA_CONTROL_MANAGER_H_