homescreenapp/stateplugins/hsmenuworkerstateplugin/inc/hsappschecklist.h
changeset 69 87476091b3f5
parent 46 23b5d6a29cce
child 81 7dd137878ff8
equal deleted inserted replaced
67:474929a40a0f 69:87476091b3f5
    18 #ifndef APPSCHECKLIST_H
    18 #ifndef APPSCHECKLIST_H
    19 #define APPSCHECKLIST_H
    19 #define APPSCHECKLIST_H
    20 
    20 
    21 #include <QModelIndexList>
    21 #include <QModelIndexList>
    22 #include <hsmenuservice.h>
    22 #include <hsmenuservice.h>
    23 #include "hbmainwindow.h"
       
    24 
    23 
    25 #include "hsmenustates_global.h"
    24 #include "hsmenustates_global.h"
    26 HS_STATES_TEST_CLASS(MenuStatesTest)
    25 HS_STATES_TEST_CLASS(MenuStatesTest)
    27 
    26 
    28 //forward declarations
    27 //forward declarations
    29 class HbView;
    28 class HbDialog;
    30 class HbAction;
    29 class HbAction;
    31 class HbListView;
    30 class HbListView;
    32 class QStandardItemModel;
    31 class QStandardItemModel;
    33 class HsMenuItemModel;
    32 class HsMenuItemModel;
    34 
    33 
    54 
    53 
    55     void commit(const QList<int> &appList);
    54     void commit(const QList<int> &appList);
    56 
    55 
    57 protected slots:
    56 protected slots:
    58 
    57 
    59     void selectApplicationsDone();
    58     void appsSelectionDialogFinished(HbAction* finishedAction);
       
    59 
       
    60     void selectedItemsChanged();
    60 
    61 
    61 private:
    62 private:
    62 
    63 
    63     void constructControls();
    64     void constructControls();
    64 
    65 
    65     HbMainWindow *mainWindow() const;
       
    66 
       
    67     QList<int> getSortedItemsList(const QModelIndexList &modelIndexList);
    66     QList<int> getSortedItemsList(const QModelIndexList &modelIndexList);
    68 
    67 
    69 private:
    68 private:
    70 
    69 
    71     HbView *mView;
    70     HbDialog *mAppsSelectDialog;
    72 
    71 
    73     HbView *mPreviousView;
    72     HbAction *mActionConfirm; // delete with dialog
    74 
    73 
    75     HbAction *mActionConfirm;
    74     HbListView *mListView; // delete with dialog
    76 
    75 
    77     HbListView *mListView;
    76     HsMenuItemModel *mModel; // delete with dialog
    78 
       
    79     HsMenuItemModel *mModel;
       
    80 
    77 
    81     HsSortAttribute mSortAttribute;
    78     HsSortAttribute mSortAttribute;
    82 
       
    83     QObjectList mLoadedObjects;
       
    84 
    79 
    85 };
    80 };
    86 
    81 
    87 #endif /* APPSCHECKLIST_H */
    82 #endif /* APPSCHECKLIST_H */