activefavouritesdbnotifier.h

Go to the documentation of this file.
00001 /*
00002 * ==============================================================================
00003 *  Name        : ActiveFavouritesDbNotifier.h 
00004 *  Part of     : Favourites Engine
00005 *  Interface   : Favourites Engine API
00006 *  Description : Declaration of CActiveFavouritesDbNotifier.
00007 *  Version     : %Version%
00008 *
00009 *  Copyright (C) 2004 Nokia Corporation.
00010 *  This material, including documentation and any related 
00011 *  computer programs, is protected by copyright controlled by 
00012 *  Nokia Corporation. All rights are reserved. Copying, 
00013 *  including reproducing, storing,  adapting or translating, any 
00014 *  or all of this material requires the prior written consent of 
00015 *  Nokia Corporation. This material also contains confidential 
00016 *  information which may not be disclosed to others without the 
00017 *  prior written consent of Nokia Corporation.
00018 *
00019 * ============================================================================
00020 */
00021 
00022 #ifndef ACTIVE_FAVOURITES_DB_NOTIFIER_H
00023 #define ACTIVE_FAVOURITES_DB_NOTIFIER_H
00024 
00025 //  INCLUDES
00026 
00027 #include <e32base.h>
00028 #include <d32dbms.h>
00029 #include <FavouritesDbNotifier.h>
00030 
00031 // FORWARD DECLARATION
00032 
00033 class RFavouritesDb;
00034 class MFavouritesDbObserver;
00035 
00036 // CLASS DECLARATION
00037 
00044 class CActiveFavouritesDbNotifier : public CActive
00045     {
00046     public:     // Constructor and destructor
00047 
00054         IMPORT_C CActiveFavouritesDbNotifier( RFavouritesDb& aDb, MFavouritesDbObserver& aObserver );
00055 
00059         IMPORT_C virtual ~CActiveFavouritesDbNotifier();
00060 
00061     protected:  // from CActive
00062 
00068         IMPORT_C void RunL();
00069 
00075         IMPORT_C void DoCancel();
00076 
00077     public:     // new methods
00078 
00086         IMPORT_C TInt Start();
00087 
00088     private:
00089 
00095         void NotifyChange();
00096 
00097     private:    // data
00098 
00099         RFavouritesDbNotifier iNotifier;    
00100         RFavouritesDb& iDb;                 
00101         MFavouritesDbObserver* iObserver;   
00102     };
00103 
00104 #endif
00105             
00106 // End of File

Copyright © Nokia Corporation 2001-2008
Back to top