equal
deleted
inserted
replaced
749 { |
749 { |
750 HbNotificationDialog::launchDialog("Not Implemented"); |
750 HbNotificationDialog::launchDialog("Not Implemented"); |
751 id = EGlxCmdHandled; |
751 id = EGlxCmdHandled; |
752 } |
752 } |
753 break; |
753 break; |
754 |
|
755 case EGlxCmdDelete : |
|
756 { |
|
757 GlxExternalData* externalItems = GlxExternalUtility::instance()->getExternalData(); |
|
758 if(externalItems){ |
|
759 QVariant variant = mCurrentModel->data( mCurrentModel->index(0,0), GlxFocusIndexRole ); |
|
760 if ( variant.isValid() && variant.canConvert<int> () ) { |
|
761 int selIndex = variant.value<int>(); |
|
762 int externalDataCount = externalItems->count(); |
|
763 if(selIndex < externalDataCount){ |
|
764 GlxInterfaceParams tmp = externalItems->value(selIndex); |
|
765 tmp.isSelected = true; |
|
766 externalItems->replace(selIndex,tmp); |
|
767 emit externalCommand(EGlxPluginCmdDelete); |
|
768 return; |
|
769 } |
|
770 } |
|
771 } |
|
772 mActionHandler->handleAction(id,mCollectionId); |
|
773 } |
|
774 break; |
|
775 |
754 |
776 case EGlxCmdMarkAll : |
755 case EGlxCmdMarkAll : |
777 case EGlxCmdUnMarkAll : |
756 case EGlxCmdUnMarkAll : |
778 case EGlxCmd3DEffectOn : |
757 case EGlxCmd3DEffectOn : |
779 case EGlxCmd3DEffectOff : |
758 case EGlxCmd3DEffectOff : |
839 |
818 |
840 void GlxStateManager::cleanupExternal() |
819 void GlxStateManager::cleanupExternal() |
841 { |
820 { |
842 qDebug("GlxStateManager::cleanupExternal"); |
821 qDebug("GlxStateManager::cleanupExternal"); |
843 mViewManager->deactivateCurrentView(); |
822 mViewManager->deactivateCurrentView(); |
844 GlxMediaModel *glxModel = dynamic_cast<GlxMediaModel *>(mCurrentModel); |
823 } |
845 if(glxModel) { |
|
846 glxModel->clearExternalItems(); |
|
847 } |
|
848 } |
|