2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 * @file property_dao.h
18 * @author Pawel Sikorski (p.sikorski@samsung.com)
20 * @brief This file contains the declaration of property dao
23 #ifndef WRT_SRC_CONFIGURATION_PROPERTY_DAO_H_
24 #define WRT_SRC_CONFIGURATION_PROPERTY_DAO_H_
26 #include <dpl/wrt-dao-ro/property_dao_read_only.h>
30 struct WidgetRegisterInfo; //forward declaration
32 namespace PropertyDAO {
35 void RemoveProperty(DbWidgetHandle widgetHandle,
36 const PropertyDAOReadOnly::WidgetPropertyKey &key)
37 __attribute__((deprecated));
39 void RemoveProperty(WidgetPkgName pkgName,
40 const PropertyDAOReadOnly::WidgetPropertyKey &key);
43 /* This method sets widget property
45 void SetProperty(DbWidgetHandle widgetHandle,
46 const PropertyDAOReadOnly::WidgetPropertyKey &key,
47 const PropertyDAOReadOnly::WidgetPropertyValue &value,
48 bool readOnly = false)
49 __attribute__((deprecated));
51 /* This method sets widget property
53 void SetProperty(WidgetPkgName pkgName,
54 const PropertyDAOReadOnly::WidgetPropertyKey &key,
55 const PropertyDAOReadOnly::WidgetPropertyValue &value,
56 bool readOnly = false);
59 /* This method registers properties for widget.
60 * Properties unregistering is done via "delete cascade" mechanism in SQL
62 void RegisterProperties(DbWidgetHandle widgetHandle,
63 const WidgetRegisterInfo ®Info)
64 __attribute__((deprecated));
66 /* This method registers properties for widget.
67 * Properties unregistering is done via "delete cascade" mechanism in SQL
69 void RegisterProperties(WidgetPkgName pkgName,
70 const WidgetRegisterInfo ®Info);
72 } // namespace PropertyDAO
75 #endif /* WRT_SRC_CONFIGURATION_PROPERTY_DAO_H_ */