MVPbkContactViewObserver Class Reference
#include
<app/MVPbkContactViewObserver.h>
Link against: contactservice.lib
class MVPbkContactViewObserver |
Detailed Description
An observer interface for contact views.
A client will receive events related to the view state and the view content via this interface.
See also: CVPbkContactManager::CreateContactViewLC
Constructor & Destructor Documentation
~MVPbkContactViewObserver ( )
~MVPbkContactViewObserver | ( | ) | [protected, inline, virtual] |
Member Function Documentation
ContactAddedToView ( MVPbkContactViewBase &, TInt, const MVPbkContactLink & )
Called when a contact has been added to the view.
Parameter | Description | aView | A contact view sending the event. |
aIndex | An index of the contact in the view. |
aContactLink | A link to the added contact that is valid only during the functio call. |
ContactRemovedFromView ( MVPbkContactViewBase &, TInt, const MVPbkContactLink & )
Called when a contact has been removed from a view.
Parameter | Description | aView | A contact view sending the event. |
aIndex | An index of the removed contact. |
aContactLink | A link to the removed contact that is valid only during this function call. |
ContactViewError ( MVPbkContactViewBase &, TInt, TBool )
Called when an error occurs in the view.
If client decides to destroy the view then it should do it asynchronously because the view can access member data after a call to this.
Parameter | Description | aView | A contact view sending the event. |
aError | An error code of the failure. |
aErrorNotified | ETrue if the implementation has already notified user about the error using e.g an ECOM plug-in, EFalse otherwise. |
ContactViewObserverExtension ( TUid )
TAny * | ContactViewObserverExtension | ( | TUid | | ) | [inline, virtual] |
Returns an extension point for this interface or NULL.
Returns: an extension point for this interface or NULL.
ContactViewReady ( MVPbkContactViewBase & )
Called when a view is ready for use.
This function may also be called if view is already ready. Then it means that the view has been updated and the observer have to take this into account.
Parameter | Description | aView | A contact view sending the event. |
ContactViewUnavailable ( MVPbkContactViewBase & )
Called when a view is unavailable for a while.
When the view is again available ContactViewReady will be called. The contents of the view may change completely while it is unavailable.
Parameter | Description | aView | A contact view sending the event. |