|
|
|
Location:
HLPMODEL.h
Link against: HLPMODEL.LIB
class CHlpModel : public CBase, public MHlpDbObserver, public MPictureFactory, public MRichTextStoreResolver
Supported from 6.0
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.
|
Defined in CHlpModel:
BuildListForDriveLC(), CHlpModel(), CancelSearch(), CategoryListL(), CategoryUIDSearchL(), CloseFileL(), CloseL(), ConstructL(), ContextSearchL(), CurrentDatabase(), CurrentSearchType(), CurrentView(), CurrentZoomFactor(), DatabaseCount(), DiskPresent(), DoNextSearchL(), DoSearchL(), HandleDbEventL(), IndexSearchL(), LoadListL(), LoadTopicL(), LoadTopicL(), LoadTopicL(), MatchUidL(), NewL(), NewLC(), NewPictureL(), NotifyHelpModelDestructionToPictures(), OpenFileL(), OpenL(), RemoveHelpPicture(), ReportEventToObserverL(), ResetAndDestroyArrayOfCHlpFileEntry(), ResetReadyForSearch(), ResetViews(), SearchL(), SearchL(), SearchL(), SetCriterionL(), SetObserver(), SetSearchType(), SetZoomFactors(), SetZoomSizeL(), StreamStoreL(), TopicSearchL(), ZoomSize(), iCriterion, iCurrentDb, iCurrentRichTextStore, iDatabases, iFound, iFsSession, iObserver, iPictures, iSearch, iSearchType, iTransientCategoryUid, iZoomFactors, iZoomSize, ~CHlpModel()
Inherited from CBase:
operator new()
static CHlpModel* NewL(RFs& aFs, MHlpModelObserver* aObserver);
Allocates and creates a help model object.
|
|
static CHlpModel* NewLC(RFs& aFs, MHlpModelObserver* aObserver);
Allocates and creates a help model object, leaving the object on the cleanup stack.
|
|
void OpenFileL(const TDesC& aFileName);
Opens a specified help file.
|
void CloseFileL(const TDesC& aFileName);
Closes a specified help file.
|
void ContextSearchL(TCoeHelpContext& aContext);
Searches for a topic with the specified help context.
A successful search generates a ETopicAvailable event. The topic can then be retrieved using LoadTopicL().
A unsuccessful search generates a ETopicNotFound event.
|
void CategoryUIDSearchL(TUid aCategoryUID);
Searches for topics with the specified help category UID.
A successful search generates a ETopicListAvailable event. The list can then be retrieved using LoadListL().
An unsuccessful search generates a ETopicListNoneFound event.
|
void TopicSearchL(const CHlpItem& aHelpItem);
Searches for a topic for the specified help item.
A successful search generates a ETopicAvailable event. The topic can then be retrieved using LoadTopicL().
A unsuccessful search generates a ETopicNotFound event.
|
void IndexSearchL(const CHlpItem& aHelpItem);
Searches for index entries for the specified help item.
A successful search generates a ETopicListAvailable event. The list can then be retrieved using LoadListL().
An unsuccessful search generates a ETopicListNoneFound event.
|
void SearchL(TInt aType, TUint32 aId);
Searches using a specified type of search with a numeric criterion.
|
void SearchL(TInt aType, HBufC* aCriterion=NULL);
Searches using a specified type of search, allowing a NULL seach criterion.
|
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.
|
TInt CancelSearch();
Cancels a full text search.
|
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.
|
void LoadTopicL(CRichText& aRichText);
Gets the current help topic text.
The function assumes that a successful search has already been performed.
|
void LoadTopicL(CHlpTopic* aTopic);
Gets the current help topic.
The function assumes that a successful search has already been performed.
|
void LoadListL(CHlpList* aList);
Gets the current help list.
The function assumes that a successful search has already been performed.
|
void CategoryListL(CDesCArray* aList);
Populates a list of available help categories.
This can be called without needing to perform a prior search.
|
void SetZoomSizeL(THlpZoomState aState=EHlpZoomStateMedium);
Supported from 7.0
Sets the zoom size to use for help text and pictures.
|
THlpZoomState ZoomSize() const;
Gets the zoom size used for help text and pictures.
|
void SetZoomFactors(THlpZoomState aZoomState, TInt aFactor);
Sets a zoom factor for a logical zoom size.
|
const CStreamStore& StreamStoreL(TInt aPos) const;
Gets the current rich text store.
|
|
TInt MatchUidL(TUid aUid);
Searches the open help databases for the specified topic UID.
|
|
void SetObserver(MHlpModelObserver* aObserver);
Sets the client callback interface.
|
private: CHlpModel(RFs& aFs, MHlpModelObserver& aObserver);
This member is internal and not intended for use.
void RemoveHelpPicture(CHlpPicture* aHelpPicture);
This member is internal and not intended for use.
void NewPictureL(TPictureHeader& aHdr, const CStreamStore& aDeferredPictureStore) const;
This member is internal and not intended for use.
void NotifyHelpModelDestructionToPictures();
This member is internal and not intended for use.
private: void DoSearchL(TInt aType, const TDesC& aCriterion);
This member is internal and not intended for use.
private: void SetCriterionL(const TDesC& aCriterion);
This member is internal and not intended for use.
private: void HandleDbEventL(TInt aEvent);
This member is internal and not intended for use.
private: void ReportEventToObserverL(TInt aEvent);
This member is internal and not intended for use.
private: inline CHlpDatabase* CurrentDatabase() const;
This member is internal and not intended for use.
private: inline TInt DatabaseCount() const;
This member is internal and not intended for use.
private: inline void SetSearchType(TInt aSearchType);
This member is internal and not intended for use.
private: inline TInt CurrentSearchType() const;
This member is internal and not intended for use.
private: TBool DiskPresent(TInt aDrive) const;
This member is internal and not intended for use.
private: CHlpFileList* BuildListForDriveLC(TDriveUnit aDrive, RFs& aFsSession) const;
This member is internal and not intended for use.
private: static void ResetAndDestroyArrayOfCHlpFileEntry(TAny* aObject);
This member is internal and not intended for use.
private: CStreamStore* iCurrentRichTextStore;
This member is internal and not intended for use.
private: CArrayPtr<CHlpPicture>* iPictures;
This member is internal and not intended for use.
private: CArrayFix<TInt>* iZoomFactors;
This member is internal and not intended for use.