phonebookui/Phonebook2/Commands/inc/MPbk2RetrieverObserver.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 14 Apr 2010 15:45:35 +0300
branchRCL_3
changeset 23 5586b4d2ec3e
parent 0 e686773b3f54
permissions -rw-r--r--
Revision: 201013 Kit: 201015

/*
* Copyright (c) 2005-2007 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  An observer for retrieving contact
*
*/


#ifndef MPBK2RETRIEVEROBSERVER_H
#define MPBK2RETRIEVEROBSERVER_H

// FORWARD DECLARATIONS
class MVPbkStoreContact;

// CLASS DECLARATIONS
class MPbk2RetrieverObserver
	{
	public:
		/**
		 * Called when all contacts have been retrieved.
		 * @param aContacts Array of MVPbkStoreContacts. 
		 */
		virtual void ContactsRetrieved(
			RPointerArray<MVPbkStoreContact>& aContacts) = 0;
		
		/**
		 * Called when all contact have been committed.
		 */
		virtual void ContactCommitCompelete() = 0;
		
		/**
		 * Called when error occurs in the retrieving process.
		 * @param aError Error code.
		 */
		virtual void ContactsRetrieveError(TInt aError) = 0;
		
		/**
		 * Called when one contact retrieve has done.
		 * @param aStepsToGo Number of steps to go.
		 */
		virtual void ContactRetrievedStep(TInt aStepsToGo) = 0;
	};
	
#endif // MPBK2RETRIEVEROBSERVER_H
//End of file