application->icon = g_list_append(application->icon, icon);
}
- // TODO(t.iwanek): what about description, how is it different from name?
-
for (auto& category : service_info.categories()) {
application->category = g_list_append(application->category,
strdup(category.c_str()));
}
bool StepParse::FillManifestX(manifest_x* manifest) {
+ // Fill data for main application
if (!FillIconPaths(manifest))
return false;
if (!FillMainApplicationInfo(manifest))
return false;
if (!FillMetadata(manifest))
return false;
- // TODO(t.iwanek): fix adding ui application element
- // for now adding application service is added here because rest of code
- // assumes that there is one application at manifest->application
- // so this must execute last. Don't move it above any item
- if (!FillServiceApplicationInfo(manifest))
- return false;
- if (!FillWidgetApplicationInfo(manifest))
- return false;
if (!FillBackgroundCategoryInfo(manifest))
return false;
+
+ // Fill data for other applications
+ if (!FillAdditionalApplications(manifest))
+ return false;
+
+ // Fill extra data, other than manifest_x structure
if (!FillExtraManifestInfo(manifest))
return false;
+
+ return true;
+}
+
+
+bool StepParse::FillAdditionalApplications(manifest_x* manifest) {
+ if (!FillServiceApplicationInfo(manifest))
+ return false;
+ if (!FillWidgetApplicationInfo(manifest))
+ return false;
return true;
}
if (error_code)
return false;
if (is_sym)
- continue; // TODO(p.sikorski) is it enough?
+ continue;
// it is regular file (not dir, not symlink)
if (ToBeEncrypted(current)) {
unsigned char* encrypted_data = nullptr;
size_t enc_data_len = 0;
- // TODO(p.sikorski) check if it is Preloaded
int ret;
if (context_->request_mode.get() == common_installer::RequestMode::GLOBAL)
ret = wae_encrypt_global_web_application(