homescreenapp/stateplugins/hsmenuworkerstateplugin/inc/hspreviewhswidgetstate.h
changeset 39 4e8ebe173323
parent 36 cdae8c6c3876
child 46 23b5d6a29cce
equal deleted inserted replaced
36:cdae8c6c3876 39:4e8ebe173323
    25 HS_STATES_TEST_CLASS(MenuStatesTest)
    25 HS_STATES_TEST_CLASS(MenuStatesTest)
    26 
    26 
    27 class HbDialog;
    27 class HbDialog;
    28 class HsWidgetHost;
    28 class HsWidgetHost;
    29 class CaNotifier;
    29 class CaNotifier;
    30 
    30 class HbAction;
       
    31 class HbScrollArea;
    31 
    32 
    32 /**
    33 /**
    33  * @ingroup group_hsmenustateprovider
    34  * @ingroup group_hsworkerstateplugin
    34  * @brief Application Library State.
    35  * @brief Application Library State.
    35  *
    36  *
    36  * Parent state for Application Library functionality (browsing applications and collections)
    37  * Parent state for Application Library functionality (browsing applications and collections)
    37  *
    38  *
    38  * @see StateMachine
    39  * @see StateMachine
    64     virtual ~HsPreviewHSWidgetState();
    65     virtual ~HsPreviewHSWidgetState();
    65 
    66 
    66 private slots:
    67 private slots:
    67 
    68 
    68     /**
    69     /**
       
    70      * Slot invoked when preview dialog is dismissed.
       
    71      *
       
    72      * @since S60 ?S60_version.
       
    73      */
       
    74     void previewDialogFinished(HbAction* finishedAction);
       
    75 
       
    76     /**
       
    77      * Slot invoked when message for corrupted widget is dismissed
       
    78      *
       
    79      * @since S60 ?S60_version.
       
    80      */
       
    81     void messageWidgetCorruptedFinished(HbAction* finishedAction);
       
    82     /**
    69      * Inherited from HsMenuBaseState.
    83      * Inherited from HsMenuBaseState.
    70      *
    84      *
    71      * @since S60 ?S60_version.
    85      * @since S60 ?S60_version.
    72      */
    86      */
    73     void onEntry(QEvent *event);
    87     void onEntry(QEvent *event);
    74 
    88 
    75     /**
    89     /**
    76      * Slot invoked when a state is exited.
       
    77      *
       
    78      * @since S60 ?S60_version.
       
    79      */
       
    80     void stateExited();
       
    81 
       
    82     /**
       
    83      * Memory card removed.
    90      * Memory card removed.
    84      */
    91      */
    85     void memoryCardRemoved();
    92     void memoryCardRemoved();
       
    93 
    86 
    94 
    87 private:
    95 private:
    88 
    96 
    89     /**
    97     /**
    90      * Show message widget corrupted.
    98      * Show message widget corrupted.
    91      *
    99      *
    92      * @param itemId Widget id.
       
    93      */
   100      */
    94     void showMessageWidgetCorrupted(int itemId);
   101     void showMessageWidgetCorrupted();
    95 
   102 
    96     /**
   103     /**
    97      * Subscribe for memory card remove.
   104      * Subscribe for memory card remove.
    98      *
   105      *
    99      * @param entryId Widget id.
       
   100      */
   106      */
   101     void subscribeForMemoryCardRemove(int entryId);
   107     void subscribeForMemoryCardRemove();
   102 
   108 
   103 private:
   109 private:
   104     
   110     
   105     HbDialog *mPopupDialog;
   111     HbDialog *mPopupDialog;
   106 
   112 
   107     CaNotifier *mNotifier;
   113     CaNotifier *mNotifier;
   108     
   114 
       
   115     HbScrollArea *mScrollArea;
       
   116 
       
   117     HsWidgetHost *mWidget;
       
   118 
   109     QObjectList mObjectList;
   119     QObjectList mObjectList;
       
   120 
       
   121     int mEntryId;
   110 
   122 
   111 };
   123 };
   112 
   124 
   113 
   125 
   114 
   126