step/step_copy_storage_directories.cc
step/step_create_storage_directories.cc
step/step_fail.cc
- step/step_generate_xml.cc
step/step_recover_application.cc
step/step_recover_files.cc
step/step_recover_icons.cc
#include "common/step/step_copy_backup.h"
#include "common/step/step_check_old_certificate.h"
#include "common/step/step_fail.h"
-#include "common/step/step_generate_xml.h"
#include "common/step/step_old_manifest.h"
#include "common/step/step_open_recovery_file.h"
#include "common/step/step_parse.h"
step/step_check_settings_level.cc
step/step_create_symbolic_link.cc
step/step_encrypt_resources.cc
+ step/step_generate_xml.cc
step/step_parse.cc
step/step_remove_encryption_data.cc
step/step_parse_recovery.cc
// Use of this source code is governed by a apache 2.0 license that can be
// found in the LICENSE file.
-#include "common/step/step_generate_xml.h"
+#include "wgt/step/step_generate_xml.h"
#include <boost/filesystem/path.hpp>
#include <boost/system/error_code.hpp>
namespace bs = boost::system;
namespace fs = boost::filesystem;
-namespace common_installer {
+namespace wgt {
namespace pkgmgr {
static void _writeUIApplicationAttributes(
}
template <typename T>
-Step::Status StepGenerateXml::GenerateApplicationCommonXml(T* app,
+common_installer::Step::Status StepGenerateXml::GenerateApplicationCommonXml(T* app,
xmlTextWriterPtr writer) {
// common appributes among uiapplication_x and serviceapplication_x
xmlTextWriterWriteAttribute(writer, BAD_CAST "appid", BAD_CAST app->appid);
return Step::Status::OK;
}
-Step::Status StepGenerateXml::precheck() {
+common_installer::Step::Status StepGenerateXml::precheck() {
if (!context_->manifest_data.get()) {
LOG(ERROR) << "manifest_data attribute is empty";
return Step::Status::INVALID_VALUE;
return Step::Status::OK;
}
-Step::Status StepGenerateXml::process() {
+common_installer::Step::Status StepGenerateXml::process() {
fs::path xml_path = fs::path(getUserManifestPath(context_->uid.get()))
/ fs::path(context_->pkgid.get());
xml_path += ".xml";
return Status::OK;
}
-Step::Status StepGenerateXml::undo() {
+common_installer::Step::Status StepGenerateXml::undo() {
bs::error_code error;
if (fs::exists(context_->xml_path.get()))
fs::remove_all(context_->xml_path.get(), error);
}
} // namespace pkgmgr
-} // namespace common_installer
+} // namespace wgt
// Use of this source code is governed by a apache 2.0 license that can be
// found in the LICENSE file.
-#ifndef COMMON_STEP_STEP_GENERATE_XML_H_
-#define COMMON_STEP_STEP_GENERATE_XML_H_
+#ifndef WGT_STEP_STEP_GENERATE_XML_H_
+#define WGT_STEP_STEP_GENERATE_XML_H_
#include <libxml/xmlwriter.h>
#include "common/step/step.h"
#include "common/utils/logging.h"
-namespace common_installer {
+namespace wgt {
namespace pkgmgr {
-class StepGenerateXml : public Step {
+class StepGenerateXml : public common_installer::Step {
public:
using Step::Step;
};
} // namespace pkgmgr
-} // namespace common_installer
+} // namespace wgt
-#endif // COMMON_STEP_STEP_GENERATE_XML_H_
+#endif // WGT_STEP_STEP_GENERATE_XML_H_
#include "common/step/step_copy_backup.h"
#include "common/step/step_copy_storage_directories.h"
#include "common/step/step_fail.h"
-#include "common/step/step_generate_xml.h"
#include "common/step/step_open_recovery_file.h"
#include "common/step/step_parse.h"
#include "common/step/step_register_app.h"
#include "wgt/step/step_create_symbolic_link.h"
#include "wgt/step/step_check_settings_level.h"
#include "wgt/step/step_encrypt_resources.h"
+#include "wgt/step/step_generate_xml.h"
#include "wgt/step/step_parse.h"
#include "wgt/step/step_parse_recovery.h"
#include "wgt/step/step_remove_encryption_data.h"
AddStep<wgt::filesystem::StepWgtCreateStorageDirectories>();
AddStep<wgt::filesystem::StepCreateSymbolicLink>();
AddStep<wgt::filesystem::StepWgtCreateIcons>();
- AddStep<ci::pkgmgr::StepGenerateXml>();
+ AddStep<wgt::pkgmgr::StepGenerateXml>();
AddStep<ci::pkgmgr::StepRegisterApplication>();
AddStep<ci::security::StepRegisterSecurity>();
break;
AddStep<wgt::filesystem::StepCreateSymbolicLink>();
AddStep<wgt::filesystem::StepWgtCreateIcons>();
AddStep<ci::security::StepUpdateSecurity>();
- AddStep<ci::pkgmgr::StepGenerateXml>();
+ AddStep<wgt::pkgmgr::StepGenerateXml>();
AddStep<ci::pkgmgr::StepUpdateApplication>();
break;
}