X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fjobs%2Fwidget_install%2Fmanifest.h;h=cb7e6d6879d30dcc85eac26e12f61c2b29cdd6db;hb=7fb83d1e97cd557be2a3b16edd5dc651a2d27306;hp=d30ef15195a4af9ba14d2bbc73d3f451c401d810;hpb=ee89c702e5a597593c33d0c23e9abf2632928fb3;p=framework%2Fweb%2Fwrt-installer.git diff --git a/src/jobs/widget_install/manifest.h b/src/jobs/widget_install/manifest.h index d30ef15..cb7e6d6 100644 --- a/src/jobs/widget_install/manifest.h +++ b/src/jobs/widget_install/manifest.h @@ -77,6 +77,7 @@ typedef DPL::String NcnameType, NmtokenType, AnySimpleType, LangType; typedef DPL::String OperationType, MimeType, UriType, TypeType, PackageType; typedef DPL::OptionalString InstallLocationType, CategoriesType; typedef DPL::String AppCategoryType; +typedef DPL::String KeyType, ValueType; /** * xmllib2 wrappers @@ -202,6 +203,23 @@ class Privilege typedef Privilege PrivilegeType; +class Metadata +{ + public: + Metadata(KeyType k, ValueType v) : + key(k), + value(v) + {} + void serialize(xmlTextWriterPtr writer); + + private: + KeyType key; + ValueType value; +}; + +typedef Metadata MetadataType; + + /** * @brief ime-application element */ @@ -360,6 +378,10 @@ class UiApplication { this->appCategory.push_back(x); } + void addMetadata(const MetadataType &m) + { + this->metadata.push_back(m); + } void serialize(xmlTextWriterPtr writer); private: @@ -375,6 +397,7 @@ class UiApplication std::list icon; std::list appControl; std::list appCategory; + std::list metadata; }; typedef UiApplication UiApplicationType;