classicui_plat/extended_options_menu_api/tsrc/src/testdomoptionsmenublocks.cpp
branchRCL_3
changeset 16 71dd06cfe933
parent 0 2f259fa3e83a
child 55 aecbbf00d063
--- a/classicui_plat/extended_options_menu_api/tsrc/src/testdomoptionsmenublocks.cpp	Wed Mar 31 21:59:52 2010 +0300
+++ b/classicui_plat/extended_options_menu_api/tsrc/src/testdomoptionsmenublocks.cpp	Wed Apr 14 16:14:00 2010 +0300
@@ -59,6 +59,7 @@
         ENTRY( "TestIMShowMenuL", CTestDomOptionsMenu::TestIMShowMenuL ),
         ENTRY( "TestIMInitMenuL", CTestDomOptionsMenu::TestIMInitMenuL ),
         ENTRY( "TestIMCollectionChangedL", CTestDomOptionsMenu::TestIMCollectionChangedL ),
+        ENTRY( "TestIMRegisterCollection2L", CTestDomOptionsMenu::TestIMRegisterCollection2L )
         };
 
     const TInt count = sizeof( KFunctions ) / 
@@ -204,4 +205,30 @@
     return KErrNone;
     }
 
+// -----------------------------------------------------------------------------
+// CTestSDKOptionsMenu::TestIMRegisterCollection2L
+// -----------------------------------------------------------------------------
+//
+TInt CTestDomOptionsMenu::TestIMRegisterCollection2L( CStifItemParser& /*aItem*/ )
+    {
+    // Print to UI
+    _LIT( KTestSDKDomMenu, "TestSDKDomMenu" );
+    _LIT( KTestIMRegisterCollectionL, "In TestIMRegisterCollection2L" );
+    TestModuleIf().Printf( 0, KTestSDKDomMenu, KTestIMRegisterCollectionL );
+    // Print to log file
+    iLog->Log( KTestIMRegisterCollectionL );
+
+    if( !iCollection )
+        {
+        iCollection = new(ELeave) TTestCollection;
+        }
+    
+    //since STIF does not enable single click now, can't get instance of CAknItemActionMenu. 
+    //Hence following method will not be invoked.
+    CAknItemActionMenu::RegisterCollectionL( *iCollection, iCollection );
+    return KErrNone;
+
+    }
+
+
 //  [End of File] - Do not remove