diff -r 2e2dc3d30ca8 -r 341166945d65 homescreenapp/stateplugins/hsmenuworkerstateplugin/inc/hsuninstallitemstate.h --- 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