idlehomescreen/xmluicontroller/src/appui.cpp
branchRCL_3
changeset 34 d05a55b217df
parent 30 b8fae6b8a148
child 47 7be2816dbabd
--- a/idlehomescreen/xmluicontroller/src/appui.cpp	Wed Mar 31 21:17:19 2010 +0300
+++ b/idlehomescreen/xmluicontroller/src/appui.cpp	Wed Apr 14 15:47:59 2010 +0300
@@ -27,6 +27,7 @@
 #include <aknconsts.h>
 #include <akntitle.h>
 #include <StringLoader.h>
+#include <csxhelp/hmsc.hlp.hrh>
 
 // User includes
 #include <hspublisherinfo.h>
@@ -642,4 +643,30 @@
     sp->DrawNow();
     }
 
+// -----------------------------------------------------------------------------
+// CAppUi::HelpContextL
+// Returns the help context
+// -----------------------------------------------------------------------------
+//
+CArrayFix<TCoeHelpContext>* CAppUi::HelpContextL() const
+    {
+	TUid fwUid = TUid::Uid( AI_UID3_AIFW_COMMON );
+	TCoeContextName helpString;
+	if( iUiCtl.UiEngineL()->IsEditMode()) 
+	    {
+	    helpString.Copy( KSET_HLP_HOME_SCREEN_EDIT );
+	    }
+    else
+	    {
+	    helpString.Copy( KSET_HLP_HOME_SCREEN );
+	    }
+    
+    CArrayFixFlat<TCoeHelpContext>* array =
+                   new( ELeave ) CArrayFixFlat<TCoeHelpContext>( 1 );
+    CleanupStack::PushL( array );
+    array->AppendL( TCoeHelpContext( fwUid, helpString  ) );
+    CleanupStack::Pop( array );
+    return array;
+    }
+
 // End of File.