--- a/homescreenapp/hswidgetuninstaller/src/main.cpp Wed Jun 23 18:03:36 2010 +0300
+++ b/homescreenapp/hswidgetuninstaller/src/main.cpp Tue Jul 06 14:06:53 2010 +0300
@@ -21,10 +21,11 @@
#include <QStringList>
#include <QDir>
#include <QFileInfo>
-#include <apacmdln.h>
+#include <apacmdln.h>
#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();
}