userguide/inc/HelpDataProvider.h
changeset 23 99b096216bc8
parent 15 c0dfc135a46c
child 26 97d7f0705d0a
equal deleted inserted replaced
18:375271912456 23:99b096216bc8
    40 	void setHelpContentUrl(const QString& uid, const QString& href);
    40 	void setHelpContentUrl(const QString& uid, const QString& href);
    41 	void getHelpContentData(QString& content, QString& url);
    41 	void getHelpContentData(QString& content, QString& url);
    42 
    42 
    43 private:
    43 private:
    44 	void createHelpCategory();
    44 	void createHelpCategory();
    45 	void createBuiltInCategory(const QString& path);
    45 
    46 	void constructAppHelp(const QString& path);
    46 	//construct 1st category
       
    47 	void constructCategory();
       
    48 	//construct help category in rom
       
    49 	void constructBuiltInCategory(const QString& path, const QStringList& uidList, const QStringList& titleList);
       
    50 	//construct help category for 3rd party application
       
    51 	void constructAppCategory(const QString& path, QStringList& uidList);
       
    52 	void constructBuiltInCategoryItem(const QString& uid, const QString& title);
       
    53 
       
    54 	//construct 2nd category
       
    55 	void constructCategory2(HelpStandardItem* itemParent);
       
    56 	void constructCategory2Item(HelpStandardItem* itemParent);
       
    57 
       
    58 	//construct keyword list
    47 	void constructKeywordModel(const QString& title, const QString& uid, const QString& href);
    59 	void constructKeywordModel(const QString& title, const QString& uid, const QString& href);
    48 //	void searchInAllData(HelpStandardItem* item, const QString& key=QString());
    60 
    49 //	void searchInResult(const QString& key=QString());
    61 	//parse xml
    50 	HelpStandardItem* constructCategory2(const QString& title, const QString& uid);
    62 	void parseCategoryIndexXml(const QString& path, QStringList& uidList, QStringList& titleList);
    51 	HelpStandardItem* findItemWithHref(HelpStandardItem* itemParent, const QString& href);
    63 	void parseCategory2IndexXml(const QString& path, QStringList& hrefList, QStringList& titleList);
       
    64 	void parseBuiltInMetaxml(const QString& path, int& featureId, int& priority);
       
    65 	void parseAppMetaxml(const QString& path, QString& title);	
    52 
    66 
    53 private:
    67 private:
    54 	QStandardItemModel*		mHelpModel;         //category tree model
    68 	QStandardItemModel*		mHelpModel;         //category tree model
    55 	QStandardItemModel*		mKeywordModel;      //keyword list model
    69 	QStandardItemModel*		mKeywordModel;      //keyword list model
    56 	HelpProxyModel*		mSearhResultModel;  //search result proxy model of keyword model	
    70 	HelpProxyModel*			mSearhResultModel;  //search result proxy model of keyword model	
       
    71 	HelpStandardItem*		mAppItem;
    57 	QString					mHelpContentRoot;
    72 	QString					mHelpContentRoot;
    58 	QString					mLastSrhKey;
    73 	QString					mLastSrhKey;
       
    74 	QStringList				mUpdateUidList;
    59 
    75 
    60 };
    76 };
    61 
    77 
    62 #endif //HELPDATAPROVIDER_H
    78 #endif //HELPDATAPROVIDER_H