idlefw/plugins/mcsplugin/publisher/src/mcsplugin.cpp
branchRCL_3
changeset 31 8baec10861af
parent 30 a5a39a295112
equal deleted inserted replaced
30:a5a39a295112 31:8baec10861af
    38 
    38 
    39 _LIT( KEventNameLaunchByIndex,  "LaunchByIndex" );
    39 _LIT( KEventNameLaunchByIndex,  "LaunchByIndex" );
    40 _LIT( KEventNameShowSettings,   "ShowSettings" );
    40 _LIT( KEventNameShowSettings,   "ShowSettings" );
    41 _LIT( KContentItemTypeText, "text" );
    41 _LIT( KContentItemTypeText, "text" );
    42 _LIT( KContentItemTypeImage, "image" );
    42 _LIT( KContentItemTypeImage, "image" );
       
    43 const TInt KUndefinedIndex = -1;
    43 
    44 
    44 const TImplementationProxy KImplementationTable[] =
    45 const TImplementationProxy KImplementationTable[] =
    45     {
    46     {
    46     IMPLEMENTATION_PROXY_ENTRY( KImplUidMCSPlugin, CMCSPlugin::NewL ) 
    47     IMPLEMENTATION_PROXY_ENTRY( KImplUidMCSPlugin, CMCSPlugin::NewL ) 
    47     };
    48     };
   373         
   374         
   374         TRAP_IGNORE( iEngine->LaunchItemL( index - 1 ) );
   375         TRAP_IGNORE( iEngine->LaunchItemL( index - 1 ) );
   375         }
   376         }
   376     else if( aEventName == KEventNameShowSettings )
   377     else if( aEventName == KEventNameShowSettings )
   377         {
   378         {
   378         TRAP_IGNORE( iEngine->ShowSettingsL() );
   379         TRAP_IGNORE( iEngine->ShowSettingsL( KUndefinedIndex ) );
   379         }    
   380         }    
   380     }
   381     }
   381 
   382 
   382 // ----------------------------------------------------------------------------
   383 // ----------------------------------------------------------------------------
   383 // CMCSPlugin::CompareItems
   384 // CMCSPlugin::CompareItems