Update wrt-installer_0.0.54
[framework/web/wrt-installer.git] / src / logic / installer_controller.cpp
index 8009b98..754a886 100644 (file)
 #include "installer_controller.h"
 #include <dpl/log/log.h>
 #include <dpl/singleton_impl.h>
-IMPLEMENT_SINGLETON(InstallerController)
+
+IMPLEMENT_SINGLETON(Logic::InstallerController)
+
+namespace Logic
+{
 
 InstallerController::InstallerController()
 {
@@ -25,10 +29,10 @@ InstallerController::InstallerController()
 void InstallerController::OnEventReceived(
         const InstallerControllerEvents::InstallWidgetEvent &event)
 {
-    std::string zipFileName = event.GetArg0();
+    std::string fileName = event.GetArg0();
     WidgetInstallationStruct installerStruct = event.GetArg1();
     Jobs::JobHandle handle =
-        m_installerLogic.InstallWidget(zipFileName, installerStruct);
+        m_installerLogic.InstallWidget(fileName, installerStruct);
 
     //TODO return handle to API
     (void)handle;
@@ -47,14 +51,6 @@ void InstallerController::OnEventReceived(
     (void)handle;
 }
 
-void InstallerController::OnEventReceived(const InstallerControllerEvents::
-            InstallPluginGeolocationEvent &event)
-{
-    PluginInstallerStruct installerStruct = event.GetArg0();
-
-    InstallerLogic::InstallPluginGeolocation(installerStruct);
-}
-
 void InstallerController::OnEventReceived(
         const InstallerControllerEvents::UninstallWidgetEvent &event)
 {
@@ -106,3 +102,6 @@ void InstallerController::OnEventReceived(
 {
     m_installerLogic.Terminate();
 }
+
+} //Logic
+