q:/epoc32/include/app/CVPbkxSPContacts.h

A class for fetching xSP Contacts. Operations are asynchronous and accept two observers. One used to signal completion and return result. Another one used to signal an error if operation fails.

A client fetch xSP contactlinks for given contact.

class CxSPContactsClient : public CActive, public MVPbkOperationErrorObserver, public MVPbkOperationResultObserver<MVPbkContactLinkArray*> ...

void CxSPContactsClient::FetchxSPLinksL() { ixSPManager = CVPbkxSPContacts::NewL( iContactManager ); ixSPContactOperation = ixSPManager->GetxSPContactLinksL(*iContact, *this, *this); }

//From MVPbkOperationErrorObserver void CxSPContactsClient::VPbkOperationFailed( MVPbkContactOperationBase*, TInt aError ) { ... }

// From MVPbkOperationResultObserver void CxSPContactsClient::VPbkOperationResultCompleted( MVPbkContactOperationBase*, MVPbkContactLinkArray* aArray ) { TInt count = aArray->Count(); for(TInt a = 0; a < count; a++) { const MVPbkContactLink& link = aArray->At(a); ... do something } }