phonebookui/Phonebook2/ServerApplication/inc/MPbk2ContactAssignerObserver.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 contact assigner observer interface.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MPBK2CONTACTASSIGNEROBSERVER_H
       
    20 #define MPBK2CONTACTASSIGNEROBSERVER_H
       
    21 
       
    22 // FORWARD DECLARATIONS
       
    23 class MPbk2ContactAssigner;
       
    24 
       
    25 // CLASS DECLARATION
       
    26 
       
    27 /**
       
    28  * Phonebook 2 contact assigner observer interface.
       
    29  */
       
    30 class MPbk2ContactAssignerObserver
       
    31     {
       
    32     public: // Interface
       
    33 
       
    34         /**
       
    35          * Notifies assign operation completed succesfully.
       
    36          *
       
    37          * @param aAssigner     Assigner that sends this notification.
       
    38          * @param aIndex        Index of the field the data was assigned.
       
    39          */
       
    40         virtual void AssignComplete(
       
    41                 MPbk2ContactAssigner& aAssigner,
       
    42                 TInt aIndex ) = 0;
       
    43 
       
    44         /**
       
    45          * Notifies was assign operation completed unsuccesfully.
       
    46          *
       
    47          * @param aAssigner         Assigner that sends this notification.
       
    48          * @param aErrorCode        Error code.
       
    49          */
       
    50         virtual void AssignFailed(
       
    51                 MPbk2ContactAssigner& aAssigner,
       
    52                 TInt aErrorCode ) = 0;
       
    53 
       
    54     protected: // Disabled functions
       
    55         virtual ~MPbk2ContactAssignerObserver()
       
    56             {};
       
    57     };
       
    58 
       
    59 #endif // MPBK2CONTACTASSIGNEROBSERVER_H
       
    60 
       
    61 // End of File