diff -r 4e8ebe173323 -r 23b5d6a29cce homescreenapp/stateplugins/hsmenuworkerstateplugin/inc/hscollectionslistdialog.h --- a/homescreenapp/stateplugins/hsmenuworkerstateplugin/inc/hscollectionslistdialog.h Mon May 03 12:24:59 2010 +0300 +++ b/homescreenapp/stateplugins/hsmenuworkerstateplugin/inc/hscollectionslistdialog.h Fri May 14 15:43:04 2010 +0300 @@ -18,14 +18,14 @@ #ifndef HS_LIST_DIALOG_H #define HS_LIST_DIALOG_H -#include +#include #include #include "hsmenustates_global.h" HS_STATES_TEST_CLASS(MenuStatesTest) class QStandardItemModel; -class HsCollectionsListDialog: public HbListDialog +class HsCollectionsListDialog: public HbSelectionDialog { Q_OBJECT @@ -38,51 +38,28 @@ virtual ~HsCollectionsListDialog(); - HbAction *exec(); + void open(QObject* receiver, const char* member ); int getItemId(); +protected: + void closeEvent( QCloseEvent * event ); + private: - /** - * Connects edit line signals to slots. - */ void makeConnect(); - /** - * Disconnects edit line signals from slots. - */ void makeDisconnect(); - /** - * Creates standard item model. - * - * @since S60 ?S60_version. - * @param sortOrder sort order. - * @param collectionId id of collection to remove from model. - * @return QStandardItemModel - caller takes ownership. - */ QStandardItemModel *standartItemModel(HsSortAttribute sortOrder, int collectionId); - /** - * Inserts "new collection" item into model. - * - * @since S60 ?S60_version. - * @param model a model. - */ void insertNewCollectionItem(QStandardItemModel *model); private: - /** - * Model - */ QStandardItemModel *mModel; - /** - * Selected item id - */ int mItemId; };