API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

ITYPEDLISTMODELFACTORY_CREATE()

Brew Release
Brew MP 1.0.2
Description
This method is creates an ITypedListModel interface from a set of function callbacks provided by the caller. The caller is also responsible for emitting the correct model notifications whenever the data contained in the ITypedListModel changes using ITypedListModel_Notify()
Params
pif
[]:
Pointer to the ITypedListModelFactory interface object.
pUser
[]:
Pointer to user context passed into the following three functions
pfnSize
[]:
Function to invoke when ITypedListModel_Size() is called
pfnGetAt
[]:
Function to invoke when ITypedListModel_GetAt() is called
pfnGetAtIntoModel
[]:
Function to invoke when ITypedListModel_GetAtIntoModel() is called
pfnDtor
[]:
Cleanup function invoked when the ITypedListModel is released.
ppiTypedListModel
[]:
On success, the newly created ITypedListModel backed by the provided functions.
Prototype
  •    AEEResult ITypedListModelFactory_Create(ITypedListModelFactory *pif, void *pUser, 
          int (*pfnSize)(void *pUser, int *pnSize), 
          int (*pfnGetAt)(void *pUser, int index, AEEUID *pType, void **ppValue, int *pnLen),
          int (*pfnGetAtIntoModel)(void *pUser, int index, ITypedValueModel *piModel), 
          void (*pfnDtor)(void *pUser), ITypedListModel **ppiTypedListModel);
    
    
Return
  •    AEE_SUCCESS             : On success.
       Error code              : Otherwise.
    
Side Effect
  • None
Comments
None