photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandlersend.cpp
branchRCL_3
changeset 12 ce1c7ad1f18b
parent 11 71da52165949
child 15 191387a8b767
equal deleted inserted replaced
11:71da52165949 12:ce1c7ad1f18b
   154 	{
   154 	{
   155     GLX_FUNC("CGlxCommandHandlerSend::DoActivateL");
   155     GLX_FUNC("CGlxCommandHandlerSend::DoActivateL");
   156 
   156 
   157     iViewId = aViewId;
   157     iViewId = aViewId;
   158 	MGlxMediaList& mediaList = MediaList();
   158 	MGlxMediaList& mediaList = MediaList();
   159                   
       
   160                      // TAP2GenericPluginParams::EGenericStdIconSend,
       
   161    //                 TAP2GenericPluginParams::EGenericStdIconSendMask);
       
   162 
   159 
   163 	// need to check the category attribute for image or video
   160 	// need to check the category attribute for image or video
   164     iAttributeContext = CGlxDefaultAttributeContext::NewL();
   161     iAttributeContext = CGlxDefaultAttributeContext::NewL();
   165     iAttributeContext->AddAttributeL(TMPXAttribute(KMPXMediaGeneralCategory));
   162     iAttributeContext->AddAttributeL(TMPXAttribute(KMPXMediaGeneralCategory));
   166     iAttributeContext->AddAttributeL(TMPXAttribute(KMPXMediaGeneralUri));
   163     iAttributeContext->AddAttributeL(TMPXAttribute(KMPXMediaGeneralUri));
   215 	{
   212 	{
   216 	GLX_FUNC("CGlxCommandHandlerSend::HandleFocusChangedL");
   213 	GLX_FUNC("CGlxCommandHandlerSend::HandleFocusChangedL");
   217 	if ( aList && aNewIndex >= 0 )
   214 	if ( aList && aNewIndex >= 0 )
   218 		{
   215 		{
   219 		const CGlxMedia* media = aList->Item(aNewIndex).Properties();  
   216 		const CGlxMedia* media = aList->Item(aNewIndex).Properties();  
   220 		if (media)
       
   221 			{// show the active palette send item
       
   222 		//    iUiUtility->ScreenFurniture().ShowActivePaletteItemL(iViewId, 
       
   223 		//				EGlxCmdSend, IsValidTypeL(*media));	
       
   224 			}
       
   225 		}	
   217 		}	
   226 	}
   218 	}
   227 
   219 
   228             
   220             
   229 
   221