diff -r 666f914201fb -r 2fe1408b6811 epoc32/include/hlplch.h --- a/epoc32/include/hlplch.h Tue Nov 24 13:55:44 2009 +0000 +++ b/epoc32/include/hlplch.h Tue Mar 16 16:12:26 2010 +0000 @@ -1,1 +1,98 @@ -hlplch.h +// Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members +// which accompanies this distribution, and is available +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// Help Launcher module +// +// + +#ifndef __HLPLCH_H__ +#define __HLPLCH_H__ + +#if !defined(__APGTASK_H__) +#include +#endif + +#if !defined(__EIKDLL_H__) +#include +#endif + +#if !defined(__WSERV_H__) +#include +#endif + +#if !defined(__COEHELP_H__) +#include +#endif + +/** Help application UID. +@internalComponent +@released +*/ +const TUid KHlpAppUid={ 0x10005234 }; + +/** UID of window message to send to application. +@internalComponent +@released +*/ +const TUid KHlpAppWsMsg={ 0x100055c7 }; + +/** Maximum length of command line to launch application. +@internalComponent +@released +*/ +const TInt KMaxCmdLineLength = 512; + +// resource file name +_LIT(KHelpLauncherResource, "z:\\resource\\apps\\lch.rsc"); + +class CHlpCmdLine : public CBase +/** +@internalComponent +@released +*/ + { +public: + static CHlpCmdLine* NewL(CArrayFix* aContextList); + static CHlpCmdLine* NewLC(CArrayFix* aContextList); + ~CHlpCmdLine(); +public: + TPtr8 CmdLineL(); +private: + void BuildCmdLineL(); + void AddContextL(TCoeHelpContext& aContext); +private: + void ConstructL(); + CHlpCmdLine(CArrayFix* aContextList); +private: + CArrayFix* iContextList; + CBufFlat* iCmdLine; + }; + +class HlpLauncher +/** Launches the help application. + +It assumes that such an application is at z:\\Sys\\Bin\\CsHelp.exe + +@publishedAll +@released +*/ + { +public: + IMPORT_C static void LaunchHelpApplicationL(RWsSession& aWsSession, CArrayFix* aContextList); + IMPORT_C static void LaunchHelpApplicationL(RWsSession& aWsSession, TUid aUid); + IMPORT_C static void LaunchHelpApplicationL(RWsSession& aWsSession); +private: + static void DoLaunchHelpApplicationL(RWsSession& aWsSession, const TDesC8& aCmdLine); + }; + +#endif