#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()
{
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;
(void)handle;
}
-void InstallerController::OnEventReceived(const InstallerControllerEvents::
- InstallPluginGeolocationEvent &event)
-{
- PluginInstallerStruct installerStruct = event.GetArg0();
-
- InstallerLogic::InstallPluginGeolocation(installerStruct);
-}
-
void InstallerController::OnEventReceived(
const InstallerControllerEvents::UninstallWidgetEvent &event)
{
{
m_installerLogic.Terminate();
}
+
+} //Logic
+