Fixed progres bar
authorSoyoung Kim <sy037.kim@samsung.com>
Mon, 29 Apr 2013 14:34:32 +0000 (23:34 +0900)
committerGerrit Code Review <gerrit2@kim11>
Mon, 29 Apr 2013 14:42:18 +0000 (23:42 +0900)
[Issue#] TREL-479
[Problem] Installation progress bar displays abnormal after installing is completed.
[Cause] there is no send signal of 100%.
[Solution] send 100% signal when installation success.
[SCMRequest] N/A

Change-Id: I515d322b2fd8fd7193505b2adb72d2ab9b94903a

src/jobs/widget_install/task_smack.cpp
src/jobs/widget_install/task_smack.h

index a9c285a..a5624a9 100644 (file)
@@ -47,6 +47,7 @@ TaskSmack::TaskSmack(InstallerContext& context) :
     AddStep(&TaskSmack::SmackFolderLabelingStep);
     AddStep(&TaskSmack::SmackPrivilegeStep);
     AddStep(&TaskSmack::SmackTemporaryStep);
+    AddStep(&TaskSmack::SetEndofInstallation);
 }
 
 void TaskSmack::SmackFolderLabelingStep()
@@ -174,5 +175,11 @@ void TaskSmack::SmackTemporaryStep()
 #endif
 }
 
+void TaskSmack::SetEndofInstallation() 
+{
+    m_context.job->UpdateProgress(
+        InstallerContext::INSTALL_END,
+        "End installation");
+}
 } //namespace WidgetInstall
 } //namespace Jobs
index b602819..4b09f19 100644 (file)
@@ -39,6 +39,7 @@ class TaskSmack :
     void SmackFolderLabelingStep();
     void SmackPrivilegeStep();
     void SmackTemporaryStep();
+    void SetEndofInstallation();
 
   public:
     TaskSmack(InstallerContext& context);