author | William Roberts <williamr@symbian.org> |
Tue, 16 Mar 2010 16:12:26 +0000 | |
branch | Symbian2 |
changeset 2 | 2fe1408b6811 |
parent 1 | 666f914201fb |
permissions | -rw-r--r-- |
williamr@2 | 1 |
/* |
williamr@2 | 2 |
* Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). |
williamr@2 | 3 |
* All rights reserved. |
williamr@2 | 4 |
* This component and the accompanying materials are made available |
williamr@2 | 5 |
* under the terms of the License "Eclipse Public License v1.0" |
williamr@2 | 6 |
* which accompanies this distribution, and is available |
williamr@2 | 7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
williamr@2 | 8 |
* |
williamr@2 | 9 |
* Initial Contributors: |
williamr@2 | 10 |
* Nokia Corporation - initial contribution. |
williamr@2 | 11 |
* |
williamr@2 | 12 |
* Contributors: |
williamr@2 | 13 |
* |
williamr@2 | 14 |
* Description: Declaration of FavouritesDbObserver |
williamr@2 | 15 |
* |
williamr@2 | 16 |
*/ |
williamr@2 | 17 |
|
williamr@2 | 18 |
|
williamr@2 | 19 |
#ifndef FAVOURITES_DB_OBSERVER_H |
williamr@2 | 20 |
#define FAVOURITES_DB_OBSERVER_H |
williamr@2 | 21 |
|
williamr@2 | 22 |
// INCLUDES |
williamr@2 | 23 |
|
williamr@2 | 24 |
#include <e32base.h> |
williamr@2 | 25 |
#include <d32dbms.h> |
williamr@2 | 26 |
|
williamr@2 | 27 |
// CLASS DECLARATION |
williamr@2 | 28 |
|
williamr@2 | 29 |
/** |
williamr@2 | 30 |
* MFavouritesDbObserver is a Mixin for handling events from an CFavouritesDb. Users of |
williamr@2 | 31 |
* CActiveFavouritesDbNotifier must derive from this. |
williamr@2 | 32 |
*/ |
williamr@2 | 33 |
class MFavouritesDbObserver |
williamr@2 | 34 |
{ |
williamr@2 | 35 |
|
williamr@2 | 36 |
public: // new methods |
williamr@2 | 37 |
|
williamr@2 | 38 |
/** |
williamr@2 | 39 |
* Derived classes should implement this method, and act accordingly |
williamr@2 | 40 |
* to database events. |
williamr@2 | 41 |
* (Note that when a using a CActiveFavouritesDbNotifier, after a |
williamr@2 | 42 |
* RDbNotifier::EClose event the notifier is Cancel()-led.) |
williamr@2 | 43 |
* @since 0.9 |
williamr@2 | 44 |
* @param aEvent Database event. |
williamr@2 | 45 |
* @return void |
williamr@2 | 46 |
*/ |
williamr@2 | 47 |
IMPORT_C virtual void HandleFavouritesDbEventL |
williamr@2 | 48 |
( RDbNotifier::TEvent aEvent ) = 0; |
williamr@2 | 49 |
|
williamr@2 | 50 |
}; |
williamr@2 | 51 |
|
williamr@2 | 52 |
#endif |
williamr@2 | 53 |
|
williamr@2 | 54 |
// End of File |