phonebookui/Phonebook2/Commands/inc/MPbk2RetrieverObserver.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2005-2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  An observer for retrieving contact
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MPBK2RETRIEVEROBSERVER_H
       
    20 #define MPBK2RETRIEVEROBSERVER_H
       
    21 
       
    22 // FORWARD DECLARATIONS
       
    23 class MVPbkStoreContact;
       
    24 
       
    25 // CLASS DECLARATIONS
       
    26 class MPbk2RetrieverObserver
       
    27 	{
       
    28 	public:
       
    29 		/**
       
    30 		 * Called when all contacts have been retrieved.
       
    31 		 * @param aContacts Array of MVPbkStoreContacts. 
       
    32 		 */
       
    33 		virtual void ContactsRetrieved(
       
    34 			RPointerArray<MVPbkStoreContact>& aContacts) = 0;
       
    35 		
       
    36 		/**
       
    37 		 * Called when all contact have been committed.
       
    38 		 */
       
    39 		virtual void ContactCommitCompelete() = 0;
       
    40 		
       
    41 		/**
       
    42 		 * Called when error occurs in the retrieving process.
       
    43 		 * @param aError Error code.
       
    44 		 */
       
    45 		virtual void ContactsRetrieveError(TInt aError) = 0;
       
    46 		
       
    47 		/**
       
    48 		 * Called when one contact retrieve has done.
       
    49 		 * @param aStepsToGo Number of steps to go.
       
    50 		 */
       
    51 		virtual void ContactRetrievedStep(TInt aStepsToGo) = 0;
       
    52 	};
       
    53 	
       
    54 #endif // MPBK2RETRIEVEROBSERVER_H
       
    55 //End of file