homescreenapp/stateplugins/hsmenuworkerstateplugin/inc/hsaddappstocollectionstate.h
changeset 69 87476091b3f5
parent 63 52b0f64eeb51
child 81 7dd137878ff8
equal deleted inserted replaced
67:474929a40a0f 69:87476091b3f5
    23 #include <hsmenuservice.h>
    23 #include <hsmenuservice.h>
    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 QStandardItemModel;
    27 class QStandardItemModel;
       
    28 class QModelIndex;
    28 class HbAction;
    29 class HbAction;
    29 class HsAppsCheckList;
    30 class HsAppsCheckList;
    30 class HsCollectionNameDialog;
    31 class HsCollectionNameDialog;
    31 class HsCollectionsListDialog;
    32 class HbDialog;
    32 
    33 
    33 class HsAddAppsToCollectionState: public QState
    34 class HsAddAppsToCollectionState: public QState
    34 {
    35 {
    35     Q_OBJECT
    36     Q_OBJECT
    36 
    37 
    52 
    53 
    53 signals:
    54 signals:
    54 
    55 
    55     void transitToSaveState(const QString &collectionName);
    56     void transitToSaveState(const QString &collectionName);
    56 
    57 
    57     void transitToAppsCheckListState(const QString &collectionName);
       
    58 
       
    59     void transitToSaveState(int collectionId);
    58     void transitToSaveState(int collectionId);
    60 
    59 
    61     void transitToAppsCheckListState(int collectionId);
    60     void transitToSelectCollectionState();
    62 
    61 
    63     void transitToNewCollectionState();
    62     void transitToNewCollectionState();
    64 
    63 
    65     void transitToSaveState(const QList<int> &appList);
    64     void transitToSaveState(const QList<int> &appList);
    66 
    65 
    83     void save();
    82     void save();
    84 
    83 
    85     void cleanData();
    84     void cleanData();
    86 
    85 
    87     void selectApplicationsDone(const QList<int> &appList);
    86     void selectApplicationsDone(const QList<int> &appList);
       
    87     
       
    88     void collectionSelected(const QModelIndex &modelIndex);
    88 
    89 
    89 private slots:
    90 private slots:
    90 
    91 
    91     void stateExited();
    92     void stateExited();
    92 
    93 
   103 private:
   104 private:
   104 
   105 
   105     void construct();
   106     void construct();
   106 
   107 
   107     void createStates();
   108     void createStates();
       
   109     
       
   110     QStandardItemModel *standardItemModel(int collectionId);
   108 
   111 
   109 private:
   112 private:
   110 
   113 
   111     QString mCollectionName;
   114     QString mCollectionName;
   112 
   115 
   130 
   133 
   131     HsAppsCheckList *mAppsCheckList;
   134     HsAppsCheckList *mAppsCheckList;
   132 
   135 
   133     HsCollectionNameDialog *mEditorDialog;
   136     HsCollectionNameDialog *mEditorDialog;
   134 
   137 
   135     HsCollectionsListDialog *mListDialog;
   138     HbDialog *mListDialog; // not owned
   136 
   139 
       
   140     QStandardItemModel *mModel; // delete with dialog
   137 };
   141 };
   138 
   142 
   139 #endif /* ADDAPPSTOCOLLECTIONSTATE_H */
   143 #endif /* ADDAPPSTOCOLLECTIONSTATE_H */