epoc32/include/mw/favouritesdbobserver.h
branchSymbian2
changeset 2 2fe1408b6811
parent 1 666f914201fb
equal deleted inserted replaced
1:666f914201fb 2:2fe1408b6811
     1 favouritesdbobserver.h
     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 the License "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:  Declaration of FavouritesDbObserver
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef FAVOURITES_DB_OBSERVER_H
       
    20 #define FAVOURITES_DB_OBSERVER_H
       
    21 
       
    22 //  INCLUDES
       
    23 
       
    24 #include <e32base.h>
       
    25 #include <d32dbms.h>
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 /**
       
    30 * MFavouritesDbObserver is a Mixin for handling events from an CFavouritesDb. Users of
       
    31 * CActiveFavouritesDbNotifier must derive from this.
       
    32 */
       
    33 class MFavouritesDbObserver
       
    34     {
       
    35 
       
    36     public:     // new methods
       
    37 
       
    38         /**
       
    39         * Derived classes should implement this method, and act accordingly
       
    40         * to database events.
       
    41         * (Note that when a using a CActiveFavouritesDbNotifier, after a
       
    42         * RDbNotifier::EClose event the notifier is Cancel()-led.)
       
    43         * @since 0.9       
       
    44         * @param aEvent Database event.
       
    45         * @return void
       
    46         */
       
    47         IMPORT_C virtual void HandleFavouritesDbEventL
       
    48             ( RDbNotifier::TEvent aEvent ) = 0;
       
    49 
       
    50     };
       
    51 
       
    52 #endif
       
    53             
       
    54 // End of File