landmarksui/engine/inc/MLmkListProviderObserver.h
branchRCL_3
changeset 18 870918037e16
parent 0 522cd55cc3d7
equal deleted inserted replaced
17:1fc85118c3ae 18:870918037e16
       
     1 /*
       
     2 * Copyright (c) 2004 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:    LandmarksUi Content File -    Interface for list provider observers.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 #ifndef MLMKLISTPROVIDEROBSERVER_H
       
    25 #define MLMKLISTPROVIDEROBSERVER_H
       
    26 
       
    27 //  INCLUDES
       
    28 #include <e32base.h>
       
    29 
       
    30 // DATA TYPES
       
    31 
       
    32 enum TLmkListProviderEventType
       
    33     {
       
    34     ELmkEventNull,
       
    35     ELmkEventNewDefaultDatabaseLocation,
       
    36     ELmkEventMediaRemoved,
       
    37     ELmkEventListReady,
       
    38     ELmkEventCategoryDeleted,
       
    39     ELmkEventCategoryUpdated,
       
    40     ELmkEventItemAdditionComplete,
       
    41     ELmkEventFindListReady
       
    42     };
       
    43 
       
    44 // CLASS DECLARATION
       
    45 
       
    46 /**
       
    47 * MLmkListProviderObserver class
       
    48 */
       
    49 class MLmkListProviderObserver
       
    50     {
       
    51     public: // New functions
       
    52         /**
       
    53         * It is essential that this method is non-leaving, so that
       
    54         * all observers will be safely notified.
       
    55         * @param aEvent
       
    56         */
       
    57         virtual void HandleListProviderEvent(
       
    58                         TLmkListProviderEventType aEvent ) = 0;
       
    59 
       
    60         /**
       
    61         * It is essential that this method is non-leaving, so that
       
    62         * all observers will be safely notified.
       
    63         * @param aError
       
    64         */
       
    65         virtual void HandleListProviderError( TInt aError ) = 0;
       
    66     };
       
    67 
       
    68 #endif      // MLMKLISTPROVIDEROBSERVER_H
       
    69 
       
    70 // End of File