|
|
|||
Location:
QikCategoryModel.h
Link against: qikcore.lib
class QikCategoryUtils;
Category utility functions.
This class provides static methods to initialise categories from an INI file or resource file, and to externalise to an INI file. It has a private constructor and destructor, making it impossible to create instances of this class.
Defined in QikCategoryUtils:
ConstructCategoriesLC(), LoadCategoriesFromIniFileL(), LoadCategoriesFromResourceL(), SaveCategoriesToIniFileL()
static IMPORT_C CQikCategoryModel *ConstructCategoriesLC(TInt aCategoryResourceId=KNoCategoryResource, TUid aCategoryStreamId=TUid::Uid(KCategoryNullStream));
Constructs a category model and initialises it from a resource or ini file.
To construct a category model:
using a resource id, use the KCategoryNullStream as the second argument.
using a stream id, use the KNoCategoryResource as the first argument.
If both resource and stream IDs are given, the categories are loaded from the ini file if possible. If this is not possible, the categories are loaded from the resource.
|
|
static IMPORT_C void LoadCategoriesFromResourceL(CQikCategoryModel &aCategoryModel, TInt aCategoryResourceId, TResourceReader *aResourceReader=0);
Initialises a CQikCategoryModel from the applications resource file.
|
static IMPORT_C TBool LoadCategoriesFromIniFileL(CQikCategoryModel &aCategoryModel, TUid aCategoryStreamId, const CDictionaryStore *aStore=0);
Initialises a CQikCategoryModel from the applications INI file.
|
|
static IMPORT_C void SaveCategoriesToIniFileL(const CQikCategoryModel &aCategoryModel, TUid aCategoryStreamId, CDictionaryStore *aStore=0);
Saves category data from the category model to the application's INI file.
|