homescreenapp/hsutils/src/hsmenueventfactory.cpp
changeset 55 03646e8da489
parent 51 4785f57bf3d4
child 61 2b1b11a301d2
--- a/homescreenapp/hsutils/src/hsmenueventfactory.cpp	Thu May 27 12:46:08 2010 +0300
+++ b/homescreenapp/hsutils/src/hsmenueventfactory.cpp	Fri Jun 11 13:30:16 2010 +0300
@@ -207,6 +207,20 @@
 }
 
 /*!
+    Creates an HsMenuEvent::UninstallApplication event.
+
+    \param aItemId Item id of the application to be removed from a collection.
+    \param aCollectionId Item id of the collection the application is to be removed from.
+    \return UninstallApplication event.
+ */
+QEvent *HsMenuEventFactory::createUninstallApplicationEvent(int aItemId)
+{
+    QVariantMap params;
+    params.insert(itemIdKey(), aItemId);
+    return new HsMenuEvent(HsMenuEvent::UninstallApplication, params);
+}
+
+/*!
     Creates an HsMenuEvent::ArrangeCollection event.
 
     \param aTopItemId Item id to be scrolled.