</xs:restriction>
</xs:simpleType>
-<xs:simpleType name="liveboxIdType">
+<xs:simpleType name="appWidgetIdType">
<xs:restriction base="xs:string">
- <xs:pattern value="[0-9a-zA-Z]{10}.[0-9a-zA-Z]{1,}"/>
+ <xs:pattern value="[0-9a-zA-Z]{10}.[0-9a-zA-Z]{1,}.[0-9a-zA-Z]{1,}"/>
</xs:restriction>
</xs:simpleType>
</xs:complexType>
</xs:element>
-<xs:element name="livebox">
+<xs:element name="app-widget">
<xs:complexType mixed="true">
<xs:all>
<xs:element ref="tizen:box-label"/>
<xs:element ref="tizen:box-icon"/>
<xs:element ref="tizen:box-content"/>
</xs:all>
- <xs:attribute name="id" type="tizen:liveboxIdType" use="required"/>
+ <xs:attribute name="id" type="tizen:appWidgetIdType" use="required"/>
<xs:attribute name="primary" type="widgets:data.boolean" use="required"/>
<xs:attribute name="auto-launch" type="widgets:data.boolean" use="optional"/>
<xs:attribute name="update-period" type="tizen:updatePeriodType" use="optional"/>
<xs:element ref="tizen:pd"/>
</xs:sequence>
<xs:attribute name="src" use="required" type="xs:anyURI"/>
+ <xs:attribute name="mouse-event" use="optional" type="xs:anyURI"/>
+ <xs:attribute name="touch-effect" use="optional" type="xs:anyURI"/>
</xs:complexType>
</xs:element>
<xs:element ref="tizen:setting" maxOccurs="unbounded" xmlns:tizen="http://tizen.org/ns/widgets"/>\r
<xs:element ref="tizen:application" minOccurs="1" maxOccurs="1" xmlns:tizen="http://tizen.org/ns/widgets"/>\r
<xs:element ref="tizen:content" minOccurs="1" maxOccurs="1" xmlns:tizen="http://tizen.org/ns/widgets"/>\r
- <xs:element ref="tizen:livebox" minOccurs="0" maxOccurs="unbounded" xmlns:tizen="http://tizen.org/ns/widgets"/>\r
+ <xs:element ref="tizen:app-widget" minOccurs="0" maxOccurs="unbounded" xmlns:tizen="http://tizen.org/ns/widgets"/>\r
<xs:element ref="tizen:privilege" minOccurs="0" maxOccurs="unbounded" xmlns:tizen="http://tizen.org/ns/widgets"/>\r
</xs:choice>\r
<xs:attribute ref="xml:lang"/>\r
BuildRequires: pkgconfig(capi-appfw-app-manager)
BuildRequires: pkgconfig(drm-service-core-intel)
BuildRequires: pkgconfig(app2sd)
-BuildRequires: pkgconfig(web-provider-svc)
+BuildRequires: pkgconfig(web-provider)
BuildRequires: pkgconfig(libprivilege-control)
BuildRequires: pkgconfig(osp-appfw)
BuildRequires: osp-appfw-internal-devel
wrt-plugins-types
pkgmgr-installer
pkgmgr-parser
- web-provider-svc
+ web-provider
osp-appfw
REQUIRED
)
ConfigParserData& m_data;
};
-class LiveboxParser : public ElementParser
+class AppWidgetParser : public ElementParser
{
public:
if (name == L"box-size") {
return DPL::MakeDelegate(
this,
- &LiveboxParser::BoxContentParser::
+ &AppWidgetParser::BoxContentParser::
OnBoxSizeElement);
} else if (name == L"pd") {
return DPL::MakeDelegate(
this,
- &LiveboxParser::BoxContentParser::
+ &AppWidgetParser::BoxContentParser::
OnPdElement);
} else {
ThrowMsg(Exception::ParseError,
if (attribute.name == L"mouse-event") {
m_box.m_boxMouseEvent = attribute.value;
}
+ if (attribute.name == L"touch-effect") {
+ m_box.m_boxTouchEffect = attribute.value;
+ }
}
}
const DPL::String& name)
{
if (name == L"box-label") {
- return DPL::MakeDelegate(this, &LiveboxParser::OnBoxLabelElement);
+ return DPL::MakeDelegate(this, &AppWidgetParser::OnBoxLabelElement);
} else if (name == L"box-icon") {
- return DPL::MakeDelegate(this, &LiveboxParser::OnBoxIconElement);
+ return DPL::MakeDelegate(this, &AppWidgetParser::OnBoxIconElement);
} else if (name == L"box-content") {
- return DPL::MakeDelegate(this, &LiveboxParser::OnBoxContentElement);
+ return DPL::MakeDelegate(this, &AppWidgetParser::OnBoxContentElement);
} else {
return &IgnoringParser::Create;
}
m_data.m_livebox.push_back(m_livebox);
}
- explicit LiveboxParser(ConfigParserData& data) :
+ explicit AppWidgetParser(ConfigParserData& data) :
ElementParser(),
m_data(data),
m_properNamespace(false)
OnAppControlElement);
m_map[L"category"] = DPL::MakeDelegate(this,
&WidgetParser::OnCategoryElement);
- m_map[L"livebox"] = DPL::MakeDelegate(this, &WidgetParser::OnLiveboxElement);
+ m_map[L"app-widget"] = DPL::MakeDelegate(this, &WidgetParser::OnAppWidgetElement);
#ifdef CSP_ENABLED
m_map[L"Content-Security-Policy"] = DPL::MakeDelegate(
this,
return ElementParserPtr(new CategoryParser(m_data));
}
-ElementParserPtr WidgetParser::OnLiveboxElement()
+ElementParserPtr WidgetParser::OnAppWidgetElement()
{
- return ElementParserPtr(new LiveboxParser(m_data));
+ return ElementParserPtr(new AppWidgetParser(m_data));
}
ElementParserPtr WidgetParser::OnCspElement()
ElementParserPtr OnAppServiceElement();
ElementParserPtr OnAppControlElement();
ElementParserPtr OnCategoryElement();
- ElementParserPtr OnLiveboxElement();
+ ElementParserPtr OnAppWidgetElement();
ElementParserPtr OnCspElement();
ElementParserPtr OnCspReportOnlyElement();
startElement(writer, "box");
writeAttribute(writer, "type", "buffer");
writeAttribute(writer, "mouse_event", this->box.boxMouseEvent);
+ writeAttribute(writer, "touch_effect", this->box.boxTouchEffect);
FOREACH(m, this->box.boxSize)
{
{
NcnameType boxSrc;
NcnameType boxMouseEvent;
+ NcnameType boxTouchEffect;
boxSizeType boxSize;
NcnameType pdSrc;
NcnameType pdWidth;
#include <widget_install/job_widget_install.h>
#include <widget_install/widget_install_errors.h>
#include <widget_install/widget_install_context.h>
-#include <web-provider-info.h>
+#include <web_provider_livebox_info.h>
#include <dpl/wrt-dao-rw/widget_dao.h>
#include <dpl/wrt-dao-ro/vconf_config.h>
#include <dpl/foreach.h>
std::string boxId = DPL::ToUTF8String((**it).m_liveboxId);
std::string boxType;
if ((**it).m_type == L"") {
- boxType = web_provider_info_get_default_type();
+ boxType = web_provider_livebox_get_default_type();
} else {
boxType = DPL::ToUTF8String((**it).m_type);
}
LogInfo("livebox type: " << boxType);
int ret =
- web_provider_info_insert_box_type(
+ web_provider_livebox_insert_box_type(
boxId.c_str(), tizenId.c_str(), boxType.c_str());
if (ret < 0) {
box.boxMouseEvent = L"false";
}
+ if (ConfigInfo->m_boxInfo.m_boxTouchEffect == L"true") {
+ box.boxTouchEffect = ConfigInfo->m_boxInfo.m_boxTouchEffect;
+ } else {
+ box.boxTouchEffect= L"false";
+ }
+
std::list<std::pair<DPL::String, DPL::String> > BoxSizeList
= ConfigInfo->m_boxInfo.m_boxSize;
FOREACH(im, BoxSizeList) {
* @brief Implementation file for uninstaller task database updating
*/
-#include <web-provider-info.h>
+#include <web_provider_livebox_info.h>
#include <widget_uninstall/task_db_update.h>
#include <widget_uninstall/job_widget_uninstall.h>
#include <widget_uninstall/widget_uninstall_errors.h>
void TaskDbUpdate::StepLiveboxDBDelete()
{
int ret =
- web_provider_info_delete_by_app_id(m_context.tzAppid.c_str());
+ web_provider_livebox_delete_by_app_id(m_context.tzAppid.c_str());
if (ret < 0) {
LogDebug("failed to delete box info");