Change name (getInstallerStruct -> GetInstallerStruct)
authorAdam Banasiak <a.banasiak@samsung.com>
Tue, 10 Sep 2013 13:46:41 +0000 (15:46 +0200)
committerSoo-Hyun Choi <sh9.choi@samsung.com>
Wed, 11 Sep 2013 07:20:21 +0000 (16:20 +0900)
[Issue#]   LINUXWRT-358
[Problem]  Incorrect function name
[Cause]    N/A
[Solution] Rename function in src/jobs/widget_install/job_widget_install.cpp

Change-Id: I36e92f37799a93d6537ee60b16fcb7d1d0e454d3

src/jobs/widget_install/job_widget_install.cpp

index 53cf66b..d58a707 100644 (file)
@@ -187,10 +187,10 @@ void JobWidgetInstall::appendFailureTaskList()
 {
     // Installation is not allowed to proceed due to widget update policy
     LogWarning("Configure installation failed!");
-    getInstallerStruct().pkgmgrInterface->sendSignal(
+    GetInstallerStruct().pkgmgrInterface->sendSignal(
             PKGMGR_START_KEY,
             PKGMGR_START_INSTALL);
-    getInstallerStruct().pkgmgrInterface->sendSignal(
+    GetInstallerStruct().pkgmgrInterface->sendSignal(
             PKGMGR_PROGRESS_KEY,
             PKGMGR_START_VALUE);
 
@@ -201,17 +201,17 @@ void JobWidgetInstall::SendProgress()
 {
     using namespace PackageManager;
     if (GetProgressFlag() != false) {
-        if (getInstallerStruct().progressCallback != NULL) {
+        if (GetInstallerStruct().progressCallback != NULL) {
             // send progress signal of pkgmgr
             std::ostringstream percent;
             percent << static_cast<int>(GetProgressPercent());
-            getInstallerStruct().pkgmgrInterface->sendSignal(
+            GetInstallerStruct().pkgmgrInterface->sendSignal(
                 PKGMGR_PROGRESS_KEY,
                 percent.str());
 
             LogPedantic("Call widget install progressCallback");
-            getInstallerStruct().progressCallback(
-                getInstallerStruct().userParam,
+            GetInstallerStruct().progressCallback(
+                GetInstallerStruct().userParam,
                 GetProgressPercent(),
                 GetProgressDescription());
         }
@@ -222,9 +222,9 @@ void JobWidgetInstall::SendProgressIconPath(const std::string &path)
 {
     using namespace PackageManager;
     if (GetProgressFlag() != false) {
-        if (getInstallerStruct().progressCallback != NULL) {
+        if (GetInstallerStruct().progressCallback != NULL) {
             // send progress signal of pkgmgr
-            getInstallerStruct().pkgmgrInterface->sendSignal(
+            GetInstallerStruct().pkgmgrInterface->sendSignal(
                 PKGMGR_ICON_PATH,
                 path);
         }
@@ -255,12 +255,12 @@ void JobWidgetInstall::SendFinishedSuccess()
     TizenAppId& tizenId = m_installerContext.widgetConfig.tzAppid;
 
     // send signal of pkgmgr
-    getInstallerStruct().pkgmgrInterface->sendSignal(
+    GetInstallerStruct().pkgmgrInterface->sendSignal(
         PKGMGR_END_KEY,
         PKGMGR_END_SUCCESS);
 
     LogDebug("Call widget install successfinishedCallback");
-    getInstallerStruct().finishedCallback(getInstallerStruct().userParam,
+    GetInstallerStruct().finishedCallback(GetInstallerStruct().userParam,
                                           DPL::ToUTF8String(
                                               tizenId), Jobs::Exceptions::Success);
 }
@@ -280,15 +280,15 @@ void JobWidgetInstall::SendFinishedFailure()
     errorNum << m_exceptionCaught;
 
     // send signal of pkgmgr
-    getInstallerStruct().pkgmgrInterface->sendSignal(
+    GetInstallerStruct().pkgmgrInterface->sendSignal(
         PKGMGR_ERROR,
         errorNum.str());
 
-    getInstallerStruct().pkgmgrInterface->sendSignal(
+    GetInstallerStruct().pkgmgrInterface->sendSignal(
         PKGMGR_END_KEY,
         PKGMGR_END_FAILURE);
 
-    getInstallerStruct().finishedCallback(getInstallerStruct().userParam,
+    GetInstallerStruct().finishedCallback(GetInstallerStruct().userParam,
                                           DPL::ToUTF8String(
                                               tizenId), m_exceptionCaught);
 }