Fix codes for Manifest installation
[platform/core/appfw/wgt-backend.git] / src / hybrid / step / configuration / step_merge_tpk_config.h
index 623eba5..6491d34 100644 (file)
@@ -15,12 +15,17 @@ namespace configuration {
  * \brief MergeTpkConfig
  *        Merges information from tpk manifest into information from widget
  *        configuration for hybrid package.
- *
- * Expection is the information about native privileges. These are merged in
- * \see StepMergeTpkPrivileges
  */
 class StepMergeTpkConfig : public common_installer::Step {
  public:
+  enum class MergeType {
+    CONCAT,      // Concatenate configurations
+    OVERWRITE    // Overwrite one with others
+  };
+
+  explicit StepMergeTpkConfig(common_installer::InstallerContext* context,
+      MergeType type);
+
   using Step::Step;
 
   Status process() override;
@@ -28,6 +33,9 @@ class StepMergeTpkConfig : public common_installer::Step {
   Status undo() override { return Status::OK; }
   Status precheck() override { return Status::OK; }
 
+ private:
+  MergeType merge_type_;
+
   STEP_NAME(MergeTpkConfig)
 };