phonebookengines/VirtualPhonebook/inc/MVPbkSimViewFindObserver.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2002-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 API for find view
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef MVPBKSIMVIEWFINDOBSERVER_H
       
    21 #define MVPBKSIMVIEWFINDOBSERVER_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32std.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class MVPbkSimCntView;
       
    28 class RVPbkStreamedIntArray;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33 *  An observer API for find view
       
    34 *
       
    35 */
       
    36 class MVPbkSimViewFindObserver
       
    37     {
       
    38     public: // New functions
       
    39         
       
    40         /**
       
    41         * Called after find is completed
       
    42         * @param aSimCntView the view into which results applies
       
    43         * @param aSimIndexArray an array sim indexes that matched.
       
    44         *        If array is empty there is no matches
       
    45         */
       
    46         virtual void ViewFindCompleted( MVPbkSimCntView& aSimCntView,
       
    47             const RVPbkStreamedIntArray& aSimIndexArray ) = 0;
       
    48 
       
    49         /**
       
    50         * Called if there was an error
       
    51         * @param aSimCntView the view into which results applies
       
    52         * @param aError the error value
       
    53         */
       
    54         virtual void ViewFindError( MVPbkSimCntView& aSimCntView, TInt aError ) = 0;
       
    55 
       
    56     protected:
       
    57 
       
    58         /**
       
    59         * Destructor
       
    60         */
       
    61         virtual ~MVPbkSimViewFindObserver() {}
       
    62     };
       
    63 
       
    64 #endif      // MVPBKSIMVIEWFINDOBSERVER_H
       
    65             
       
    66 // End of File