ui/viewmanagement/statehandler/src/glxactionhandler.cpp
changeset 24 99ad1390cd33
parent 23 74c9f037fd5d
child 26 c499df2dbb33
--- a/ui/viewmanagement/statehandler/src/glxactionhandler.cpp	Fri Mar 19 09:28:59 2010 +0200
+++ b/ui/viewmanagement/statehandler/src/glxactionhandler.cpp	Fri Apr 16 14:58:46 2010 +0300
@@ -20,6 +20,7 @@
 #include <glxcommandhandler.h>
 #include<glxcommandhandlerfactory.h>
 #include "glxmediaid.h"
+#include <QModelIndexList>
 
 GlxActionHandler::GlxActionHandler()
 {
@@ -32,20 +33,26 @@
     mCommandHandlerList.clear();
 }
 
-void GlxActionHandler::handleAction(qint32 commandId,int collectionId)
+void GlxActionHandler::handleAction(qint32 commandId,int collectionId,QModelIndexList indexList)
 {
     GlxCommandHandler* cmdHandler = NULL;
 	switch ( commandId ) {
 	    case EGlxCmdContextAddToAlbum:
 	        commandId = EGlxCmdAddToAlbum;
 	        break;
+	        
 	    case EGlxCmdContextDelete:
 	        commandId = EGlxCmdDelete;
 	        break;
+	        
 	    case EGlxCmdContextAlbumDelete:
 	        commandId = EGlxCmdDelete;
-			collectionId = KGlxAlbumsMediaId;
 	        break;
+	        
+	    case EGlxCmdContextSend:
+	         commandId = EGlxCmdSend;
+	         break;
+	         
 		default : break;	
 		}
 		
@@ -57,7 +64,7 @@
         addCommandHandler(commandId,cmdHandler);
     }
     if ( cmdHandler ) {
-        cmdHandler->executeCommand(commandId,collectionId);
+        cmdHandler->executeCommand(commandId,collectionId,indexList);
     }
 }