projects
/
platform
/
core
/
appfw
/
wgt-backend.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0d1b025
)
Generate appwidget metadata
05/81505/2
accepted/tizen/common/20160803.193306
accepted/tizen/ivi/20160804.080818
accepted/tizen/mobile/20160804.080907
accepted/tizen/tv/20160804.080734
accepted/tizen/wearable/20160804.080640
submit/tizen/20160803.012753
author
Tomasz Iwanek
<t.iwanek@samsung.com>
Tue, 26 Jul 2016 13:04:20 +0000
(15:04 +0200)
committer
Sangyoon Jang
<s89.jang@samsung.com>
Wed, 3 Aug 2016 02:22:20 +0000
(19:22 -0700)
Requires:
- https://review.tizen.org/gerrit/81504
Change-Id: I236535a8707aa01325215146b3f1ca8ccf3ab84b
src/wgt/step/pkgmgr/step_generate_xml.cc
patch
|
blob
|
history
diff --git
a/src/wgt/step/pkgmgr/step_generate_xml.cc
b/src/wgt/step/pkgmgr/step_generate_xml.cc
index
dffb4c8
..
262acb9
100644
(file)
--- a/
src/wgt/step/pkgmgr/step_generate_xml.cc
+++ b/
src/wgt/step/pkgmgr/step_generate_xml.cc
@@
-114,6
+114,9
@@
bool WriteWidgetApplicationAttributesAndElements(
appwidget->update_period.front())).c_str());
}
appwidget->update_period.front())).c_str());
}
+ xmlTextWriterWriteAttribute(writer, BAD_CAST "max-instance",
+ BAD_CAST std::to_string(appwidget->max_instance).c_str());
+
for (auto& size : appwidget->content_size) {
xmlTextWriterStartElement(writer, BAD_CAST "support-size");
for (auto& size : appwidget->content_size) {
xmlTextWriterStartElement(writer, BAD_CAST "support-size");
@@
-132,6
+135,16
@@
bool WriteWidgetApplicationAttributesAndElements(
BAD_CAST type.c_str());
xmlTextWriterEndElement(writer);
}
BAD_CAST type.c_str());
xmlTextWriterEndElement(writer);
}
+
+ for (auto& pair : appwidget->metadata) {
+ xmlTextWriterStartElement(writer, BAD_CAST "metadata");
+ xmlTextWriterWriteAttribute(writer, BAD_CAST "key",
+ BAD_CAST pair.first.c_str());
+ if (!pair.second.empty())
+ xmlTextWriterWriteAttribute(writer, BAD_CAST "value",
+ BAD_CAST pair.second.c_str());
+ xmlTextWriterEndElement(writer);
+ }
return true;
}
return true;
}