phonebookui/Phonebook2/inc/MPbk2FetchResultsObserver.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 fetch results observer interface.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MPBK2FETCHRESULTSOBSERVER_H
       
    20 #define MPBK2FETCHRESULTSOBSERVER_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32std.h>
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class MVPbkContactLink;
       
    27 
       
    28 // CLASS DECLARATION
       
    29 
       
    30 /**
       
    31  * Phonebook 2 fetch results observer interface.
       
    32  */
       
    33 class MPbk2FetchResultsObserver
       
    34     {
       
    35     public: // Interface
       
    36 
       
    37         /**
       
    38          * Informs the observer that contact was selected.
       
    39          *
       
    40          * @param aLink         The contact that was selected/deselected.
       
    41          * @param aSelected     ETrue if contact was selected,
       
    42          *                      EFalse if it was deselected.
       
    43          */
       
    44         virtual void ContactSelected(
       
    45                 const MVPbkContactLink& aLink,
       
    46                 TBool aSelected ) = 0;
       
    47 
       
    48         /**
       
    49          * Informs the observer that contact selection failed.
       
    50          */
       
    51         virtual void ContactSelectionFailed() = 0;
       
    52 
       
    53     protected: // Disabled functions
       
    54         virtual ~MPbk2FetchResultsObserver()
       
    55             {};
       
    56     };
       
    57 
       
    58 #endif // MPBK2FETCHRESULTSOBSERVER_H
       
    59 
       
    60 // End of File