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 {
34 void RemoveProperty(DbWidgetHandle widgetHandle,
35 const PropertyDAOReadOnly::WidgetPropertyKey &key);
37 /* This method sets widget property
39 void SetProperty(DbWidgetHandle widgetHandle,
40 const PropertyDAOReadOnly::WidgetPropertyKey &key,
41 const PropertyDAOReadOnly::WidgetPropertyValue &value,
42 bool readOnly = false);
44 /* This method registers properties for widget.
45 * Properties unregistering is done via "delete cascade" mechanism in SQL
47 void RegisterProperties(DbWidgetHandle widgetHandle,
48 const WidgetRegisterInfo ®Info);
50 } // namespace PropertyDAO
53 #endif /* WRT_SRC_CONFIGURATION_PROPERTY_DAO_H_ */