photosgallery/viewframework/plugins/gridviewpluginbase/src/glxgridviewpluginbase.cpp
changeset 3 9a9c174934f5
parent 0 4e91876724a2
child 4 57d388cc48c1
equal deleted inserted replaced
2:7d9067c6fcb1 3:9a9c174934f5
   112 // ---------------------------------------------------------------------------
   112 // ---------------------------------------------------------------------------
   113 //
   113 //
   114 EXPORT_C void CGlxGridViewPluginBase::AddCommandHandlersL()
   114 EXPORT_C void CGlxGridViewPluginBase::AddCommandHandlersL()
   115     {
   115     {
   116     TRACER("CGlxGridViewPluginBase::AddCommandHandlersL()");
   116     TRACER("CGlxGridViewPluginBase::AddCommandHandlersL()");
       
   117 #ifdef _DEBUG
       
   118     TTime startTime;
       
   119     GLX_LOG_INFO("CGlxGridViewPluginBase::AddCommandHandlersL()");	
       
   120     startTime.HomeTime();
       
   121 #endif
   117         
   122         
   118     GLX_LOG_INFO( "Adding CGlxCommandHandlerSlideshow" );
   123     GLX_LOG_INFO( "Adding CGlxCommandHandlerSlideshow" );
   119     
       
   120     iGridView->AddCommandHandlerL(
   124     iGridView->AddCommandHandlerL(
   121                         CGlxCommandHandlerSlideshow::NewL( iGridView, ETrue , EFalse ) );
   125                         CGlxCommandHandlerSlideshow::NewL( iGridView, ETrue , EFalse ) );
   122     
   126     
   123 
       
   124     GLX_LOG_INFO("Adding CGlxCommandHandlerSend");
   127     GLX_LOG_INFO("Adding CGlxCommandHandlerSend");
   125                 iGridView->AddCommandHandlerL(CGlxCommandHandlerSend::NewL(iGridView, ETrue));
   128                 iGridView->AddCommandHandlerL(CGlxCommandHandlerSend::NewL(iGridView, ETrue));
   126         
   129         
   127     
   130     GLX_LOG_INFO("Adding CGlxCommandHandlerAddToContainer-Album");
   128     GLX_LOG_INFO("Adding CGlxCommandHandlerAddToContainer");
       
   129     iGridView->AddCommandHandlerL(CGlxCommandHandlerAddToContainer::
   131     iGridView->AddCommandHandlerL(CGlxCommandHandlerAddToContainer::
   130                                 NewAddToAlbumCommandHandlerL(iGridView, EFalse));                             
   132                                 NewAddToAlbumCommandHandlerL(iGridView, EFalse));   
       
   133 								    
       
   134     GLX_LOG_INFO("Adding CGlxCommandHandlerAddToContainer-Album SingleClick");
       
   135         iGridView->AddCommandHandlerL(CGlxCommandHandlerAddToContainer::
       
   136                                 NewAddToAlbumSingleClickCommandHandlerL(iGridView, EFalse));  
   131     GLX_LOG_INFO("Adding CGlxCommandHandlerDetails");
   137     GLX_LOG_INFO("Adding CGlxCommandHandlerDetails");
   132     iGridView->AddCommandHandlerL(CGlxCommandHandlerDetails::
   138     iGridView->AddCommandHandlerL(CGlxCommandHandlerDetails::
   133                                 NewL(iGridView));
   139                                 NewL(iGridView));
   134                                 
   140                                 
   135     GLX_LOG_INFO("Adding CGlxCommandHandlerOpen");
   141     GLX_LOG_INFO("Adding CGlxCommandHandlerOpen");
   138                             
   144                             
   139     GLX_LOG_INFO("Adding CGlxCommandHandlerDelete");
   145     GLX_LOG_INFO("Adding CGlxCommandHandlerDelete");
   140     iGridView->AddCommandHandlerL(CGlxCommandHandlerDelete::
   146     iGridView->AddCommandHandlerL(CGlxCommandHandlerDelete::
   141                                 NewL(iGridView, EFalse, EFalse));
   147                                 NewL(iGridView, EFalse, EFalse));
   142                                 
   148                                 
   143     GLX_LOG_INFO("Adding CGlxCommandHandlerAddToContainer");
   149     GLX_LOG_INFO("Adding CGlxCommandHandlerAddToContainer-Tag");
   144     iGridView->AddCommandHandlerL(CGlxCommandHandlerAddToContainer::
   150     iGridView->AddCommandHandlerL(CGlxCommandHandlerAddToContainer::
   145                                 NewAddToTagCommandHandlerL(iGridView, EFalse));
   151                                 NewAddToTagCommandHandlerL(iGridView, EFalse));
       
   152 								
       
   153     GLX_LOG_INFO("Adding CGlxCommandHandlerAddToContainer-Tag Single Click");
       
   154         iGridView->AddCommandHandlerL(CGlxCommandHandlerAddToContainer::
       
   155                                 NewAddToTagSingleClickCommandHandlerL(iGridView, EFalse));
   146     // The AIW service handlers 
   156     // The AIW service handlers 
   147     // ShowMap must be the first one                           
   157     // ShowMap must be the first one                           
   148     GLX_LOG_INFO("Adding CGlxCommandHandlerAiwShowMap");
   158     GLX_LOG_INFO("Adding CGlxCommandHandlerAiwShowMap");
   149     iGridView->AddCommandHandlerL(CGlxCommandHandlerAiwShowMap::
   159     iGridView->AddCommandHandlerL(CGlxCommandHandlerAiwShowMap::
   150                                 NewL(iGridView, iResourceIds.iMenuId));
   160                                 NewL(iGridView, iResourceIds.iMenuId));
   153     iGridView->AddCommandHandlerL(CGlxCommandHandlerAiwAssign::
   163     iGridView->AddCommandHandlerL(CGlxCommandHandlerAiwAssign::
   154                                 NewL(iGridView, iResourceIds.iMenuId));
   164                                 NewL(iGridView, iResourceIds.iMenuId));
   155     GLX_LOG_INFO("Adding CGlxCommandHandlerAiwEdit");
   165     GLX_LOG_INFO("Adding CGlxCommandHandlerAiwEdit");
   156     iGridView->AddCommandHandlerL(CGlxCommandHandlerAiwEdit::
   166     iGridView->AddCommandHandlerL(CGlxCommandHandlerAiwEdit::
   157                                 NewL(iGridView, iResourceIds.iMenuId));
   167                                 NewL(iGridView, iResourceIds.iMenuId));
       
   168     
       
   169     GLX_LOG_INFO("Adding CGlxCommandHandlerAiwEdit-Single Click");
       
   170     iGridView->AddCommandHandlerL(CGlxCommandHandlerAiwEdit::
       
   171                                 NewL(iGridView, iResourceIds.iMenuId, ETrue));
   158     GLX_LOG_INFO("Adding CGlxCommandHandlerAiwPrintPreview");
   172     GLX_LOG_INFO("Adding CGlxCommandHandlerAiwPrintPreview");
   159     iGridView->AddCommandHandlerL(CGlxCommandHandlerAiwPrintPreview::
   173     iGridView->AddCommandHandlerL(CGlxCommandHandlerAiwPrintPreview::
   160                                 NewL(iGridView, iResourceIds.iMenuId));
   174                                 NewL(iGridView, iResourceIds.iMenuId));
   161     GLX_LOG_INFO("Adding CGlxCommandHandlerAiwShareOnOvi");
   175     GLX_LOG_INFO("Adding CGlxCommandHandlerAiwShareOnOvi");
   162     iGridView->AddCommandHandlerL(CGlxCommandHandlerAiwShareOnOvi::
   176     iGridView->AddCommandHandlerL(CGlxCommandHandlerAiwShareOnOvi::
   201 	//@ UPnP will get play command first everytime, where it'll check for UPnP active.
   215 	//@ UPnP will get play command first everytime, where it'll check for UPnP active.
   202 	//@ if UPnP is active it'll consume the event, else it'll allow other registered command to execute it.
   216 	//@ if UPnP is active it'll consume the event, else it'll allow other registered command to execute it.
   203     GLX_LOG_INFO("Adding CGlxCommandHandlerShowVisUpnp");
   217     GLX_LOG_INFO("Adding CGlxCommandHandlerShowVisUpnp");
   204     iGridView->AddCommandHandlerL(CGlxCommandHandlerShowViaUpnp::NewL(iGridView, ETrue));
   218     iGridView->AddCommandHandlerL(CGlxCommandHandlerShowViaUpnp::NewL(iGridView, ETrue));
   205 
   219 
       
   220 #ifdef _DEBUG
       
   221     TTime stopTime;
       
   222     stopTime.HomeTime();
       
   223     GLX_DEBUG2("CGlxGridViewPluginBase::AddCommandHandlersL() took <%d> us", 
       
   224                     (TInt)stopTime.MicroSecondsFrom(startTime).Int64());
       
   225 #endif    
   206     }
   226     }
   207 
   227 
   208 // ---------------------------------------------------------------------------
   228 // ---------------------------------------------------------------------------
   209 // GetResourceFilenameL
   229 // GetResourceFilenameL
   210 // ---------------------------------------------------------------------------
   230 // ---------------------------------------------------------------------------