homescreenapp/stateplugins/hsapplibrarystateplugin/inc/hsinstalledappsstate.h
changeset 63 52b0f64eeb51
parent 62 341166945d65
child 81 7dd137878ff8
equal deleted inserted replaced
62:341166945d65 63:52b0f64eeb51
    16  */
    16  */
    17 
    17 
    18 #ifndef HSINSTALLEDAPPSSTATE_H
    18 #ifndef HSINSTALLEDAPPSSTATE_H
    19 #define HSINSTALLEDAPPSSTATE_H
    19 #define HSINSTALLEDAPPSSTATE_H
    20 
    20 
    21 #include <qstate.h>
    21 #include <QState>
    22 #include <QModelIndex>
       
    23 #include <QPointer>
       
    24 
    22 
    25 #include "hsbaseviewstate.h"
    23 #include "hsbaseviewstate.h"
    26 
    24 
    27 HS_STATES_TEST_CLASS(MenuStatesTest)
    25 HS_STATES_TEST_CLASS(MenuStatesTest)
    28 
    26 
    49 
    47 
    50     ~HsInstalledAppsState();
    48     ~HsInstalledAppsState();
    51 
    49 
    52 private slots:
    50 private slots:
    53 
    51 
    54     bool openTaskSwitcher();
    52     void openInstallationLog();
    55 
       
    56     void listItemActivated(const QModelIndex &index);
       
    57 
       
    58     void listItemLongPressed(HbAbstractViewItem *item,
       
    59                              const QPointF &coords);
       
    60 
       
    61     void backAction();
       
    62 
       
    63     void stateEntered();
    53     void stateEntered();
    64 
    54 
    65     void stateExited();
    55     void stateExited();
    66 
    56 
    67     void setEmptyLabelVisibility(bool visibility);
    57     void setEmptyLabelVisibility(bool visibility);
    69     void contextMenuAction(HbAction *action);
    59     void contextMenuAction(HbAction *action);
    70 
    60 
    71 private:
    61 private:
    72 
    62 
    73     void construct();
    63     void construct();
    74 
       
    75     void setMenuOptions();
    64     void setMenuOptions();
    76 
    65     void setContextMenuOptions(HbAbstractViewItem *item, EntryFlags flags);
    77 private:
       
    78     /**
       
    79      * The View widget.
       
    80      * Own.
       
    81      */
       
    82     HsMenuView mMenuView;
       
    83 
       
    84     /**
       
    85      * Item Model for the List.
       
    86      * Own.
       
    87      */
       
    88     HsMenuItemModel *mInstalledAppsModel;
       
    89 
       
    90     /**
       
    91      * Secondary Softkey action.
       
    92      * Backstepping functionality.
       
    93      * Own.
       
    94      */
       
    95     HbAction *const mSecondarySoftkeyAction;
       
    96     
       
    97     HsMainWindow &mMainWindow;
       
    98 
       
    99     QModelIndex mContextModelIndex;
       
   100     QPointer<HbMenu> mContextMenu;
       
   101 };
    66 };
   102 
    67 
   103 #endif // HSINSTALLEDAPPSSTATE_H
    68 #endif // HSINSTALLEDAPPSSTATE_H