Tizen 2.0 Release
[framework/web/wrt-commons.git] / modules / widget_dao / include / dpl / wrt-dao-rw / property_dao.h
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  *        http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16 /**
17  * @file    property_dao.h
18  * @author  Pawel Sikorski (p.sikorski@samsung.com)
19  * @version 1.0
20  * @brief   This file contains the declaration of property dao
21  */
22
23 #ifndef WRT_SRC_CONFIGURATION_PROPERTY_DAO_H_
24 #define WRT_SRC_CONFIGURATION_PROPERTY_DAO_H_
25
26 #include <dpl/wrt-dao-ro/property_dao_read_only.h>
27
28 namespace WrtDB {
29
30 struct WidgetRegisterInfo; //forward declaration
31
32 namespace PropertyDAO {
33
34 //deprecated
35 void RemoveProperty(DbWidgetHandle widgetHandle,
36                     const PropertyDAOReadOnly::WidgetPropertyKey &key)
37                                         __attribute__((deprecated));
38
39 void RemoveProperty(WidgetPkgName pkgName,
40                     const PropertyDAOReadOnly::WidgetPropertyKey &key);
41
42 //deprecated
43 /* This method sets widget property
44  */
45 void SetProperty(DbWidgetHandle widgetHandle,
46                  const PropertyDAOReadOnly::WidgetPropertyKey &key,
47                  const PropertyDAOReadOnly::WidgetPropertyValue &value,
48                  bool readOnly = false)
49                                         __attribute__((deprecated));
50
51 /* This method sets widget property
52  */
53 void SetProperty(WidgetPkgName pkgName,
54                  const PropertyDAOReadOnly::WidgetPropertyKey &key,
55                  const PropertyDAOReadOnly::WidgetPropertyValue &value,
56                  bool readOnly = false);
57
58 //deprecated
59 /* This method registers properties for widget.
60  * Properties unregistering is done via "delete cascade" mechanism in SQL
61  */
62 void RegisterProperties(DbWidgetHandle widgetHandle,
63                         const WidgetRegisterInfo &regInfo)
64                                         __attribute__((deprecated));
65
66 /* This method registers properties for widget.
67  * Properties unregistering is done via "delete cascade" mechanism in SQL
68  */
69 void RegisterProperties(WidgetPkgName pkgName,
70                         const WidgetRegisterInfo &regInfo);
71
72 } // namespace PropertyDAO
73 } // namespace WrtDB
74
75 #endif /* WRT_SRC_CONFIGURATION_PROPERTY_DAO_H_ */