diff -r 2e2dc3d30ca8 -r 341166945d65 homescreenapp/hswidgetuninstaller/src/main.cpp --- a/homescreenapp/hswidgetuninstaller/src/main.cpp Thu Jun 24 13:11:40 2010 +0100 +++ b/homescreenapp/hswidgetuninstaller/src/main.cpp Fri Jun 25 19:19:22 2010 +0300 @@ -21,10 +21,11 @@ #include #include #include -#include +#include #include "hswidgetcomponentparser.h" #include "hswidgetinstallersender.h" +#include "hswidgetcomponentdescriptor.h" const char UNINSTALL_WIDGET_FUNCTION_NAME[] = "widgetUninstalled(QVariantHash)"; @@ -35,14 +36,14 @@ TInt err = CApaCommandLine::GetCommandLineFromProcessEnvironment(commandLine); QString commandParam((QChar*)commandLine->DocumentName().Ptr(),commandLine->DocumentName().Length()); qDebug() << "HSWIDGETUNINSTALLER commandParam:" << commandParam; - + QCoreApplication app(argc, argv); QStringList args = QCoreApplication::arguments(); - + if (commandParam.isEmpty()) { return -1; } - + HsWidgetComponentParser componentParser(commandParam); if ( !componentParser.error() ) { HsWidgetInstallerSender installerSender; @@ -51,12 +52,12 @@ componentDir.cdUp(); QString componentPath = componentDir.path(); if ( componentDir.exists(componentPath)) { - componentDescriptor.installationPath = componentPath; + componentDescriptor.setInstallationPath(componentPath); } installerSender.widgetChanged(UNINSTALL_WIDGET_FUNCTION_NAME, componentDescriptor); } - + qDebug() << "HSWIDGETUNINSTALLER finished"; - + return 0; //app.exec(); }