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(TizenAppId tzAppid,
35 const PropertyDAOReadOnly::WidgetPropertyKey &key);
38 /* This method sets widget property
40 void SetProperty(DbWidgetHandle widgetHandle,
41 const PropertyDAOReadOnly::WidgetPropertyKey &key,
42 const PropertyDAOReadOnly::WidgetPropertyValue &value,
43 bool readOnly = false)
44 __attribute__((deprecated));
46 /* This method sets widget property
48 void SetProperty(TizenAppId tzAppid,
49 const PropertyDAOReadOnly::WidgetPropertyKey &key,
50 const PropertyDAOReadOnly::WidgetPropertyValue &value,
51 bool readOnly = false);
53 /* This method registers properties for widget.
54 * Properties unregistering is done via "delete cascade" mechanism in SQL
56 void RegisterProperties(TizenAppId tzAppid,
57 const WidgetRegisterInfo ®Info);
59 } // namespace PropertyDAO
62 #endif /* WRT_SRC_CONFIGURATION_PROPERTY_DAO_H_ */