phonebookui/Phonebook2/Application/inc/MPbk2ViewLoaderObserver.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:  Phonebook 2 memory entry contact loader.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MPBK2VIEWLOADEROBSERVER_H
       
    20 #define MPBK2VIEWLOADEROBSERVER_H
       
    21 
       
    22 //  INCLUDES
       
    23 
       
    24 // FORWARD DECLARATIONS
       
    25 class MVPbkContactViewBase;
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 /**
       
    30  * Phonebook 2 view loader
       
    31  * Responsible for:
       
    32  *  
       
    33  */
       
    34 class MPbk2ViewLoaderObserver
       
    35 
       
    36     {
       
    37     public: 
       
    38         /**
       
    39          * Destructor.
       
    40          */
       
    41         virtual ~MPbk2ViewLoaderObserver(){}
       
    42     
       
    43     public: // Interface
       
    44         
       
    45         /**
       
    46          * Called when a loaded view is ready to use.
       
    47          *
       
    48          * @param aView loaded view
       
    49          */
       
    50         virtual void ViewLoaded( MVPbkContactViewBase& aView ) = 0;
       
    51         
       
    52         /**
       
    53          * Called when an error occurs in the loading
       
    54          *
       
    55          * @param aView loaded view
       
    56          * @param aError An error code of the failure.
       
    57          */
       
    58         virtual void ViewError( 
       
    59                 MVPbkContactViewBase& aView, 
       
    60                 TInt aError ) = 0;
       
    61         
       
    62 
       
    63     };
       
    64 
       
    65 #endif // MPBK2VIEWLOADEROBSERVER_H
       
    66 
       
    67 // End of File