Refactor DataControl request list.
[platform/framework/native/appfw.git] / src / app / FApp_DataControlManager.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2013 Samsung Electronics Co., Ltd.
4 //
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
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
10 //
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.
16 //
17
18 /**
19  * @file        FApp_DataControlManager.h
20  * @brief       This is the header file for the _DataControlManager class.
21  */
22
23 #ifndef _FAPP_INTERNAL_DATA_CONTROL_MANAGER_H_
24 #define _FAPP_INTERNAL_DATA_CONTROL_MANAGER_H_
25
26 #include <FBaseObject.h>
27 #include <FBaseColHashMap.h>
28
29 namespace Tizen { namespace App
30 {
31
32 class _DataControlManager
33         : public Tizen::Base::Object
34 {
35 public:
36         static _DataControlManager* GetInstance(void);
37
38         void AddEvent(int reqId, Tizen::Base::Object* pObj);
39
40         Tizen::Base::Object* GetEvent(int reqId);
41
42 private:
43         _DataControlManager(void);
44
45         virtual ~_DataControlManager(void);
46
47 private:
48         Tizen::Base::Collection::HashMap __pDataControlRequestList;
49
50 }; // _DataControlManager
51
52 }} // Tizen::App
53
54 #endif // _FAPP_INTERNAL_DATA_CONTROL_MANAGER_H_
55