homescreenapp/stateplugins/hsmenuworkerstateplugin/inc/hspreviewhswidgetstate.h
changeset 60 30f14686fb04
parent 55 03646e8da489
child 63 52b0f64eeb51
child 77 4b195f3bea29
equal deleted inserted replaced
55:03646e8da489 60:30f14686fb04
    17 
    17 
    18 
    18 
    19 #ifndef HSPREVIEWHSWIDGETSTATE_H
    19 #ifndef HSPREVIEWHSWIDGETSTATE_H
    20 #define HSPREVIEWHSWIDGETSTATE_H
    20 #define HSPREVIEWHSWIDGETSTATE_H
    21 
    21 
    22 #include <hsmenubasestate.h>
    22 #include <QState>
    23 
    23 
    24 #include "hsmenustates_global.h"
    24 #include "hsmenustates_global.h"
    25 HS_STATES_TEST_CLASS(MenuStatesTest)
    25 HS_STATES_TEST_CLASS(MenuStatesTest)
    26 
    26 
       
    27 class CaEntry;
    27 class HbDialog;
    28 class HbDialog;
    28 class HsWidgetHost;
    29 class HsWidgetHost;
    29 class CaNotifier;
    30 class CaNotifier;
    30 class HbAction;
    31 class HbAction;
    31 class HbScrollArea;
    32 class HbScrollArea;
    32 class HbMessageBox;
    33 class HbMessageBox;
    33 
    34 
    34 class HsPreviewHSWidgetState : public HsMenuBaseState
    35 class HsPreviewHSWidgetState : public QState
    35 {
    36 {
    36     Q_OBJECT
    37     Q_OBJECT
    37 
    38 
    38     HS_STATES_TEST_FRIEND_CLASS(MenuStatesTest)
    39     HS_STATES_TEST_FRIEND_CLASS(MenuStatesTest)
    39 
    40 
    59 private:
    60 private:
    60 
    61 
    61     void showMessageWidgetCorrupted();
    62     void showMessageWidgetCorrupted();
    62 
    63 
    63     void subscribeForMemoryCardRemove();
    64     void subscribeForMemoryCardRemove();
       
    65     
       
    66     HbDialog* buildPreviewDialog(const CaEntry& entry) const;
    64 
    67 
    65 private:
    68 private:
    66     
    69     
    67     HbDialog *mPopupDialog;
    70     HbDialog *mPreviewDialog;
    68 
    71 
    69     CaNotifier *mNotifier;
    72     CaNotifier *mNotifier;
    70 
    73 
    71     HbScrollArea *mScrollArea;
    74     QScopedPointer<HsWidgetHost> mWidget;
    72 
       
    73     HsWidgetHost *mWidget;
       
    74 
       
    75     QObjectList mObjectList;
       
    76 
    75 
    77     int mEntryId;
    76     int mEntryId;
    78 
    77 
    79     HbMessageBox *mCorruptedMessage;
    78     HbMessageBox *mCorruptedMessage;
    80     
       
    81 };
    79 };
    82 
    80 
    83 
    81 
    84 
    82 
    85 #endif //HSPREVIEWHSWIDGETSTATE_H
    83 #endif //HSPREVIEWHSWIDGETSTATE_H