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 * This file contains the declaration of widget dao class.
19 * @file widget_dao_read_only.cpp
20 * @author Yang Jie (jie2.yang@samsung.com)
21 * @author Przemyslaw Dobrowolski (p.dobrowolsk@samsung.com)
22 * @author Pawel Sikorski (p.sikorski@samsung.com)
24 * @brief This file contains the declaration of widget dao
27 //#include "../mockup_include/dpl/wrt-dao-rw/widget_dao.h"
28 #include <dpl/wrt-dao-rw/widget_dao.h>
31 #include <dpl/foreach.h>
32 #include <dpl/log/log.h>
33 #include <dpl/sstream.h>
36 std::map<DbWidgetHandle,
37 WidgetDAO::WidgetStartFileList> WidgetDAO::s_startFileMap;
38 std::map<DbWidgetHandle,
39 WidgetDAO::LocalizedStartFileList> WidgetDAO::s_localizedStartFileMap;
40 std::map<DbWidgetHandle, DPL::String> WidgetDAO::s_pathMap;
42 DbWidgetHandle WidgetDAO::getHandle(const WidgetGUID /* GUID */) const
44 LogError("Not impleneted!");
48 DbWidgetHandle WidgetDAO::getHandle(const DPL::String /* tizenAppId */)
50 LogError("Not implemented!");
54 DPL::String WidgetDAO::getPath() const
56 return s_pathMap[m_widgetHandle];
59 void WidgetDAO::setPath(const DPL::String &path) const
61 s_pathMap[m_widgetHandle] = path;
65 WidgetDAO::getLocalizedInfo(const DPL::String& /* languageTag */)
68 LogError("Not implemented!");
69 return WidgetLocalizedInfo();
72 DPL::OptionalString WidgetDAO::getDefaultlocale() const
74 LogError("Not implemented!");
75 return DPL::OptionalString();
78 WidgetDAO::WidgetLocalizedIconList WidgetDAO::getLocalizedIconList() const
80 LogError("Not implemented!");
81 return WidgetLocalizedIconList();
84 WidgetDAO::WidgetIconList WidgetDAO::getIconList() const
86 LogError("Not implemented!");
87 return WidgetIconList();
90 WidgetDAO::LocalizedStartFileList WidgetDAO::getLocalizedStartFileList() const
92 return s_localizedStartFileMap[m_widgetHandle];
95 void WidgetDAO::setLocalizedStartFileList(const LocalizedStartFileList &list)
98 s_localizedStartFileMap[m_widgetHandle] = list;
101 WidgetDAO::WidgetStartFileList WidgetDAO::getStartFileList() const
103 return s_startFileMap[m_widgetHandle];
106 void WidgetDAO::setStartFileList(const WidgetStartFileList &list) const
108 s_startFileMap[m_widgetHandle] = list;