williamr@2: /* williamr@2: * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). williamr@2: * All rights reserved. williamr@2: * This component and the accompanying materials are made available williamr@2: * under the terms of the License "Eclipse Public License v1.0" williamr@2: * which accompanies this distribution, and is available williamr@2: * at the URL "http://www.eclipse.org/legal/epl-v10.html". williamr@2: * williamr@2: * Initial Contributors: williamr@2: * Nokia Corporation - initial contribution. williamr@2: * williamr@2: * Contributors: williamr@2: * williamr@2: * Description: Declaration of FavouritesDbObserver williamr@2: * williamr@2: */ williamr@2: williamr@2: williamr@2: #ifndef FAVOURITES_DB_OBSERVER_H williamr@2: #define FAVOURITES_DB_OBSERVER_H williamr@2: williamr@2: // INCLUDES williamr@2: williamr@2: #include williamr@2: #include williamr@2: williamr@2: // CLASS DECLARATION williamr@2: williamr@2: /** williamr@2: * MFavouritesDbObserver is a Mixin for handling events from an CFavouritesDb. Users of williamr@2: * CActiveFavouritesDbNotifier must derive from this. williamr@2: */ williamr@2: class MFavouritesDbObserver williamr@2: { williamr@2: williamr@2: public: // new methods williamr@2: williamr@2: /** williamr@2: * Derived classes should implement this method, and act accordingly williamr@2: * to database events. williamr@2: * (Note that when a using a CActiveFavouritesDbNotifier, after a williamr@2: * RDbNotifier::EClose event the notifier is Cancel()-led.) williamr@2: * @since 0.9 williamr@2: * @param aEvent Database event. williamr@2: * @return void williamr@2: */ williamr@2: IMPORT_C virtual void HandleFavouritesDbEventL williamr@2: ( RDbNotifier::TEvent aEvent ) = 0; williamr@2: williamr@2: }; williamr@2: williamr@2: #endif williamr@2: williamr@2: // End of File