parseResObjectCommonData( dataPtr, dataNode);
parseDependencies( dataPtr, dataNode);
- for (xmlNodePtr child = dataNode->children; child && child != dataNode; child = child->next)
- {
- if (_helper.isElement(child))
- {
- string name = _helper.name(child);
-
- if (name == "summary")
- {
- dataPtr->summary.setText(_helper.content(child), Locale(_helper.attribute(child,"lang")));
- }
- else if (name == "description") {
- dataPtr->description.setText(_helper.content(child), Locale(_helper.attribute(child,"lang")));
- }
- }
- }
+// for (xmlNodePtr child = dataNode->children; child && child != dataNode; child = child->next)
+// {
+// if (_helper.isElement(child))
+// {
+// string name = _helper.name(child);
+//
+//
+// }
+// }
return dataPtr;
} /* end process */
XMLResObjectData::XMLResObjectData() : install_only(false)
{ }
- XMLPatternData::XMLPatternData()
+ XMLPatternData::XMLPatternData() : userVisible(true)
{ }
/*
XMLPatternData();
std::string default_;
- std::string userVisible;
+ bool userVisible;
TranslatedText category;
std::string icon;
std::string script;
{
string name = _helper.name(child);
- if (name == "summary") {
- patchPtr->summary.setText(_helper.content(child), Locale(_helper.attribute(child,"lang")));
- }
- else if (name == "description") {
- patchPtr->description.setText(_helper.content(child), Locale(_helper.attribute(child,"lang")));
- }
- else if (name == "id") {
+ if (name == "id") {
patchPtr->patchId = _helper.content(child);
}
else if (name == "timestamp") {
{
string name = _helper.name(child);
- if (name == "summary")
- {
- dataPtr->summary.setText(_helper.content(child), Locale(_helper.attribute(child,"lang")));
- }
- else if (name == "default") {
+ if (name == "default") {
dataPtr->default_ = _helper.content(child);
}
else if (name == "uservisible") {
- dataPtr->userVisible = _helper.content(child);
- }
- else if (name == "description") {
- dataPtr->description.setText(_helper.content(child), Locale(_helper.attribute(child,"lang")));
+ dataPtr->userVisible = (_helper.content(child) == "false") ? false : true;
}
else if (name == "category") {
dataPtr->category.setText(_helper.content(child));
else if (name == "shortname") {
productPtr->short_name.setText(_helper.content(child), Locale(_helper.attribute(child,"lang")));
}
- else if (name == "summary") {
- productPtr->summary.setText(_helper.content(child), Locale(_helper.attribute(child,"lang")));
- }
- else if (name == "description") {
- productPtr->description.setText(_helper.content(child), Locale(_helper.attribute(child,"lang")));
- }
else if (name == "product-flags") {
parseProductFlags( productPtr, child);
}
impl->_build_time = parsed.build_time;
impl->_install_time = parsed.install_time;
- impl->_user_visible = ((parsed.userVisible == "false" ) ? false : true );
+ impl->_user_visible = parsed.userVisible;
impl->_default = ((parsed.default_ == "false" ) ? false : true );
impl->_category = parsed.category;
impl->_icon = parsed.icon;
impl->_build_time = parsed.build_time;
impl->_install_time = parsed.install_time;
- impl->_visible = ((parsed.userVisible == "false" ) ? false : true );
+ impl->_visible = parsed.userVisible;
impl->_name = parsed.name;
//impl->_default = ((parsed.default_ == "false" ) ? false : true );
- impl->_category = parsed.category.text();
+ impl->_category = parsed.category;
Arch arch;
if (!parsed.arch.empty())
// METHOD NAME : XMLSelectionImpl::XMLSelectionImpl
// METHOD TYPE : Ctor
//
- XMLSelectionImpl::XMLSelectionImpl()
+ XMLSelectionImpl::XMLSelectionImpl() : _visible(true)
{}
///////////////////////////////////////////////////////////////////
{}
Label XMLSelectionImpl::category() const
- { return _category; }
+ { return _category.text(); }
bool XMLSelectionImpl::visible() const
{ return _visible; }
std::string _release;
std::string _arch;
std::string _order;
- std::string _category;
+ TranslatedText _category;
bool _visible;
std::set<std::string> _suggests;