homescreenapp/stateplugins/hsmenuworkerstateplugin/inc/hsuninstallitemstate.h
changeset 62 341166945d65
parent 55 03646e8da489
child 63 52b0f64eeb51
child 77 4b195f3bea29
--- a/homescreenapp/stateplugins/hsmenuworkerstateplugin/inc/hsuninstallitemstate.h	Thu Jun 24 13:11:40 2010 +0100
+++ b/homescreenapp/stateplugins/hsmenuworkerstateplugin/inc/hsuninstallitemstate.h	Fri Jun 25 19:19:22 2010 +0300
@@ -27,6 +27,8 @@
 class HbMessageBox;
 class HsShortcutService;
 class HsMenuService;
+class HbDialog;
+class CaNotifier;
 
 class HsUninstallItemState: public QState
 {
@@ -35,6 +37,12 @@
     HS_STATES_TEST_FRIEND_CLASS(MenuStatesTest)
 
 public:
+    enum UninstallDialogType {
+        UninstallDialogDefinition01 = 1,
+        UninstallDialogDefinition02,
+        UninstallDialogDefinition03,
+        UninstallDialogDefinition04
+    };
 
     HsUninstallItemState(QState *parent = 0);
 
@@ -57,14 +65,25 @@
 private:
 
     void construct();
-
-    HsShortcutService *shortcutService() const;
+    
+    bool getApplicationsNames(QString &componentName,
+        QStringList &applicationsNames,
+        QString &confirmationMessage);
+    
+    void createUninstallMessage();
+    void createUninstallJavaMessage();
+    void subscribeForMemoryCardRemove();
 
 private:
 
     int mItemId;
+    
+    CaNotifier *mNotifier;
 
     HbMessageBox *mUninstallMessage; // deletes itself automatically on close
+    HbDialog *mUninstallJavaMessage;
+    QObjectList mObjectList;
+    UninstallDialogType mDialogType;
 
     HbAction *mConfirmAction; // child for mConfirmMessage