170 */ |
170 */ |
171 |
171 |
172 /*! |
172 /*! |
173 Constructor. |
173 Constructor. |
174 \return \a true on success, \a false otherwise. |
174 \return \a true on success, \a false otherwise. |
175 \param parent Owner. |
175 \param parent Parent state. |
176 */ |
176 */ |
177 HsAddAppsToCollectionState::HsAddAppsToCollectionState(QState *parent) : |
177 HsAddAppsToCollectionState::HsAddAppsToCollectionState(QState *parent) : |
178 QState(parent), mCollectionName(), mCollectionId(0), mAppList(), |
178 QState(parent), mCollectionName(), mCollectionId(0), mAppList(), |
179 mShowConfirmation(0), mInitialState(0), mSelectCollectionState(0), |
179 mShowConfirmation(0), mInitialState(0), mSelectCollectionState(0), |
180 mNewCollectionState(0), mAppsCheckListState(0), mActionType( |
180 mNewCollectionState(0), mAppsCheckListState(0), mActionType( |
393 } |
393 } |
394 |
394 |
395 /*! |
395 /*! |
396 Slot invoked when new collection state is entered.. |
396 Slot invoked when new collection state is entered.. |
397 */ |
397 */ |
398 #ifdef COVERAGE_MEASUREMENT |
|
399 #pragma CTC SKIP |
|
400 #endif //COVERAGE_MEASUREMENT |
|
401 void HsAddAppsToCollectionState::newCollection() |
398 void HsAddAppsToCollectionState::newCollection() |
402 { |
399 { |
403 qDebug("HsAddAppsToCollectionState::newCollection"); |
400 qDebug("HsAddAppsToCollectionState::newCollection"); |
404 HSMENUTEST_FUNC_ENTRY("HsAddAppsToCollectionState::newCollection"); |
401 HSMENUTEST_FUNC_ENTRY("HsAddAppsToCollectionState::newCollection"); |
405 mEditorDialog = new HsCollectionNameDialog(); |
402 mEditorDialog = new HsCollectionNameDialog(); |
406 mEditorDialog->open(this, SLOT(editorDialogFinished(HbAction*))); |
403 mEditorDialog->open(this, SLOT(editorDialogFinished(HbAction*))); |
407 |
404 |
408 HSMENUTEST_FUNC_EXIT("HsAddAppsToCollectionState::newCollection"); |
405 HSMENUTEST_FUNC_EXIT("HsAddAppsToCollectionState::newCollection"); |
409 } |
406 } |
410 #ifdef COVERAGE_MEASUREMENT |
|
411 #pragma CTC ENDSKIP |
|
412 #endif //COVERAGE_MEASUREMENT |
|
413 |
407 |
414 |
408 |
415 // --------------------------------------------------------------------------- |
409 // --------------------------------------------------------------------------- |
416 // --------------------------------------------------------------------------- |
410 // --------------------------------------------------------------------------- |
417 // |
411 // |
437 } |
431 } |
438 |
432 |
439 /*! |
433 /*! |
440 Slot invoked when select collection state is entered. |
434 Slot invoked when select collection state is entered. |
441 */ |
435 */ |
442 #ifdef COVERAGE_MEASUREMENT |
|
443 #pragma CTC SKIP |
|
444 #endif //COVERAGE_MEASUREMENT |
|
445 void HsAddAppsToCollectionState::selectCollection() |
436 void HsAddAppsToCollectionState::selectCollection() |
446 { |
437 { |
447 qDebug("HsAddAppsToCollectionState::selectCollection()"); |
438 qDebug("HsAddAppsToCollectionState::selectCollection()"); |
448 HSMENUTEST_FUNC_ENTRY("HsAddAppsToCollectionState::selectCollection"); |
439 HSMENUTEST_FUNC_ENTRY("HsAddAppsToCollectionState::selectCollection"); |
449 mListDialog = new HsCollectionsListDialog(mCollectionsSortAttribute, |
440 mListDialog = new HsCollectionsListDialog(mCollectionsSortAttribute, |
450 mCollectionId); |
441 mCollectionId); |
451 mListDialog->open(this, SLOT(listDialogFinished(HbAction*))); |
442 mListDialog->open(this, SLOT(listDialogFinished(HbAction*))); |
452 HSMENUTEST_FUNC_EXIT("HsAddAppsToCollectionState::selectCollection"); |
443 HSMENUTEST_FUNC_EXIT("HsAddAppsToCollectionState::selectCollection"); |
453 } |
444 } |
454 |
|
455 #ifdef COVERAGE_MEASUREMENT |
|
456 #pragma CTC ENDSKIP |
|
457 #endif //COVERAGE_MEASUREMENT |
|
458 |
|
459 |
445 |
460 // --------------------------------------------------------------------------- |
446 // --------------------------------------------------------------------------- |
461 // --------------------------------------------------------------------------- |
447 // --------------------------------------------------------------------------- |
462 // |
448 // |
463 void HsAddAppsToCollectionState::listDialogFinished(HbAction* finishedAction) |
449 void HsAddAppsToCollectionState::listDialogFinished(HbAction* finishedAction) |