homescreenapp/stateplugins/hsmenuworkerstateplugin/inc/hsuninstallitemstate.h
changeset 62 341166945d65
parent 55 03646e8da489
child 63 52b0f64eeb51
child 77 4b195f3bea29
equal deleted inserted replaced
57:2e2dc3d30ca8 62:341166945d65
    25 
    25 
    26 class HbAction;
    26 class HbAction;
    27 class HbMessageBox;
    27 class HbMessageBox;
    28 class HsShortcutService;
    28 class HsShortcutService;
    29 class HsMenuService;
    29 class HsMenuService;
       
    30 class HbDialog;
       
    31 class CaNotifier;
    30 
    32 
    31 class HsUninstallItemState: public QState
    33 class HsUninstallItemState: public QState
    32 {
    34 {
    33     Q_OBJECT
    35     Q_OBJECT
    34 
    36 
    35     HS_STATES_TEST_FRIEND_CLASS(MenuStatesTest)
    37     HS_STATES_TEST_FRIEND_CLASS(MenuStatesTest)
    36 
    38 
    37 public:
    39 public:
       
    40     enum UninstallDialogType {
       
    41         UninstallDialogDefinition01 = 1,
       
    42         UninstallDialogDefinition02,
       
    43         UninstallDialogDefinition03,
       
    44         UninstallDialogDefinition04
       
    45     };
    38 
    46 
    39     HsUninstallItemState(QState *parent = 0);
    47     HsUninstallItemState(QState *parent = 0);
    40 
    48 
    41     virtual ~HsUninstallItemState();
    49     virtual ~HsUninstallItemState();
    42 
    50 
    55     void exit();
    63     void exit();
    56 
    64 
    57 private:
    65 private:
    58 
    66 
    59     void construct();
    67     void construct();
    60 
    68     
    61     HsShortcutService *shortcutService() const;
    69     bool getApplicationsNames(QString &componentName,
       
    70         QStringList &applicationsNames,
       
    71         QString &confirmationMessage);
       
    72     
       
    73     void createUninstallMessage();
       
    74     void createUninstallJavaMessage();
       
    75     void subscribeForMemoryCardRemove();
    62 
    76 
    63 private:
    77 private:
    64 
    78 
    65     int mItemId;
    79     int mItemId;
       
    80     
       
    81     CaNotifier *mNotifier;
    66 
    82 
    67     HbMessageBox *mUninstallMessage; // deletes itself automatically on close
    83     HbMessageBox *mUninstallMessage; // deletes itself automatically on close
       
    84     HbDialog *mUninstallJavaMessage;
       
    85     QObjectList mObjectList;
       
    86     UninstallDialogType mDialogType;
    68 
    87 
    69     HbAction *mConfirmAction; // child for mConfirmMessage
    88     HbAction *mConfirmAction; // child for mConfirmMessage
    70 
    89 
    71 };
    90 };
    72 
    91