35 #include "oomconfig.h" |
35 #include "oomconfig.h" |
36 #include "oomactionref.h" |
36 #include "oomactionref.h" |
37 #include "oomapplicationconfig.h" |
37 #include "oomapplicationconfig.h" |
38 #include "oomcloseappconfig.h" |
38 #include "oomcloseappconfig.h" |
39 #include "oomrunpluginconfig.h" |
39 #include "oomrunpluginconfig.h" |
40 |
40 #ifdef FCC_UNIT_TEST |
|
41 #include "ut_oom.h" |
|
42 #endif |
41 const TUid KUidMatrixMenuApp = { 0x101F4CD2 }; |
43 const TUid KUidMatrixMenuApp = { 0x101F4CD2 }; |
42 |
44 |
43 template <class T> |
45 template <class T> |
44 COomPluginList<T>::COomPluginList() |
46 COomPluginList<T>::COomPluginList() |
45 { |
47 { |
696 // Get the config for this plugin |
698 // Get the config for this plugin |
697 COomRunPluginConfig& pluginConfig = aConfig.GetPluginConfig(iPluginListV2->Uid(pluginIndex)); |
699 COomRunPluginConfig& pluginConfig = aConfig.GetPluginConfig(iPluginListV2->Uid(pluginIndex)); |
698 |
700 |
699 // Create an action acording to the config |
701 // Create an action acording to the config |
700 COomRunPlugin* action = COomRunPlugin::NewL(iPluginList->Uid(pluginIndex), pluginConfig, *this, iPluginListV2->Implementation(pluginIndex), &(iPluginListV2->Implementation(pluginIndex))); |
702 COomRunPlugin* action = COomRunPlugin::NewL(iPluginList->Uid(pluginIndex), pluginConfig, *this, iPluginListV2->Implementation(pluginIndex), &(iPluginListV2->Implementation(pluginIndex))); |
701 |
703 CleanupStack::PushL(action); |
702 iRunPluginActions.AppendL(action); |
704 iRunPluginActions.AppendL(action); |
|
705 CleanupStack::Pop(); |
703 } |
706 } |
704 |
707 |
705 //allocate empty COomCloseApp objects |
708 //allocate empty COomCloseApp objects |
706 TInt appCloseIndex = aConfig.GlobalConfig().iMaxCloseAppBatch; |
709 TInt appCloseIndex = aConfig.GlobalConfig().iMaxCloseAppBatch; |
707 while (appCloseIndex--) |
710 while (appCloseIndex--) |
708 { |
711 { |
709 COomCloseApp* action = COomCloseApp::NewL(*this, iWs); |
712 COomCloseApp* action = COomCloseApp::NewL(*this, iWs); |
|
713 CleanupStack::PushL(action); |
710 iCloseAppActions.AppendL(action); |
714 iCloseAppActions.AppendL(action); |
711 } |
715 CleanupStack::Pop(); |
712 } |
716 } |
|
717 } |