Previous Topic: LPCTSTR GetRemotePassword(void)

Next Topic: void SetCBUserData( void* pUserData )


void SetCallBack( PFN_CAMVICB pfCallBack )

Sets the callback function for the move item function that is called after each item is refactored.

Note: PFN_CAMVICB is a function pointer with the following return value and argument list: void (*PFN_CAMVICB)(int iBaseCBReturn, CaMoveItem* pMoveItem, void *pUserData, CaContainer *pBag = NULL);

pBag contains data from the checkout operation. The callback function has ownership of pBag and must delete the data it points to.

Owning Class

CaMoveItem

Arguments

PFN_CARNICB-function pointer to callback

Return Value

None

Example

void cbFunction(int iBaseCBReturn, CaMoveItem* pMoveItem, void *pUserData, CaContainer *pBag = NULL)
{
   CaString* pString = (CaString*)pUserData;
   CaString szViewPath = (LPCTSTR)pBag->Props(ATTR_KEY_VIEWPATH, 0);
   cout << *pString << szViewPath << endl;
}
CaMoveItem& rMoveItem = rContext.GetMoveItem();
rMoveItem.SetCallBack( cbFunction );

More information: