Location:
HLPMODEL.H
Link against: hlpmodel.lib
class CHlpModel : public CBase, public MHlpDbObserver, public MPictureFactory, public MRichTextStoreResolver;
Help model interface.
It provides functions to search help files in various ways.
The interface implements MHlpDbObserver
for help database events, and MRichTextStoreResolver
and MPictureFactory
to obtain pictures from rich text stores.
MRichTextStoreResolver
- No description.
MPictureFactory
- Abstract interface for instantiating and restoring new
MHlpDbObserver
- No description.
CBase
- Base class for all classes to be instantiated on the heap
CHlpModel
- Help model interface
Defined in CHlpModel
:
CancelSearch()
, CategoryListL()
, CategoryUIDSearchL()
, CloseFileL()
, CloseL()
, ContextSearchL()
, HandleDbEventL()
, IndexSearchL()
, LoadListL()
, LoadTopicL()
, LoadTopicL()
, LoadTopicL()
, MatchUidL()
, NewL()
, NewLC()
, NewPictureL()
, OpenFileL()
, OpenL()
, SearchL()
, SearchL()
, SearchL()
, SetObserver()
, SetZoomFactors()
, SetZoomSizeL()
, StreamStoreL()
, TopicSearchL()
, ZoomSize()
, ~CHlpModel()
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
static IMPORT_C CHlpModel *NewL(RFs &aFs, MHlpModelObserver *aObserver);
Allocates and creates a help model object.
|
|
static IMPORT_C CHlpModel *NewLC(RFs &aFs, MHlpModelObserver *aObserver);
Allocates and creates a help model object, leaving the object on the cleanup stack.
|
|
IMPORT_C void OpenFileL(const TDesC &aFileName);
Opens a specified help file.
|
IMPORT_C void CloseFileL(const TDesC &aFileName);
Closes a specified help file.
|
IMPORT_C void ContextSearchL(TCoeHelpContext &aContext);
Searches for a topic with the specified help context.
A successful search generates an ETopicAvailable event. The topic can then be retrieved using LoadTopicL()
.
An unsuccessful search generates an ETopicNotFound event.
|
IMPORT_C void CategoryUIDSearchL(TUid aCategoryUID);
Searches for topics with the specified help category UID.
A successful search generates an ETopicListAvailable event. The list can then be retrieved using LoadListL()
.
An unsuccessful search generates an ETopicListNoneFound event.
|
IMPORT_C void TopicSearchL(const CHlpItem &aHelpItem);
Searches for a topic for the specified help item.
A successful search generates an ETopicAvailable event. The topic can then be retrieved using LoadTopicL()
.
An unsuccessful search generates an ETopicNotFound event.
|
IMPORT_C void IndexSearchL(const CHlpItem &aHelpItem);
Searches for index entries for the specified help item.
A successful search generates an ETopicListAvailable event. The list can then be retrieved using LoadListL()
.
An unsuccessful search generates an ETopicListNoneFound event.
|
IMPORT_C void SearchL(TInt aType, TUint32 aId);
Searches using a specified type of search with a numeric criterion.
|
IMPORT_C void SearchL(TInt aType, HBufC *aCriterion=0);
Searches using a specified type of search, allowing a NULL seach criterion.
|
IMPORT_C void SearchL(TInt aType, const TDesC &aCriterion);
Searches using a specified type of search with a string search criterion.
Note that the full text search, EFullTextSearch, is asynchronous.
|
IMPORT_C TInt CancelSearch();
Cancels a full text search.
|
IMPORT_C void LoadTopicL(CRichText &aRichText, TDes &aTitle);
Gets the current help topic text and title.
The function assumes that a successful search has already been performed.
|
IMPORT_C void LoadTopicL(CRichText &aRichText);
Gets the current help topic text.
The function assumes that a successful search has already been performed.
|
IMPORT_C void LoadTopicL(CHlpTopic *aTopic);
Gets the current help topic.
The function assumes that a successful search has already been performed.
|
IMPORT_C void LoadListL(CHlpList *aList);
Gets the current help list.
The function assumes that a successful search has already been performed.
|
IMPORT_C void CategoryListL(CDesCArray *aList);
Populates a list of available help categories.
This can be called without needing to perform a prior search.
|
IMPORT_C void SetZoomSizeL(THlpZoomState aState=EHlpZoomStateMedium);
Sets the zoom size to use for help text and pictures.
|
IMPORT_C THlpZoomState ZoomSize() const;
Gets the zoom size used for help text and pictures.
|
IMPORT_C void SetZoomFactors(THlpZoomState aZoomState, TInt aFactor);
Sets a zoom factor for a logical zoom size.
|
virtual void NewPictureL(TPictureHeader &aHdr, const CStreamStore &aDeferredPictureStore) const;
Interface to the picture restoration process that ensures that a picture of the correct type is restored.
The class of the object to be restored is determined by the UID of the stored picture, contained in the specified picture header.
The function can allow the restoration of:
just one CPicture-derived class, returning an error if the UID indicates that the stored picture is not of the required type
many different CPicture-derived classes, using the UID to choose which of the possible CPicture-derived classes should be instantiated
|
virtual IMPORT_C const CStreamStore &StreamStoreL(TInt aPos) const;
Gets the current rich text store.
|
|
IMPORT_C TInt MatchUidL(TUid aUid);
Searches the open help databases for the specified topic UID.
|
|
IMPORT_C void SetObserver(MHlpModelObserver *aObserver);
Sets the client callback interface.
|