Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
/*
* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
* Interface class declaration for Phonebook contact database observers.
*
*/
#ifndef __MPbkContactDbObserver_H__
#define __MPbkContactDbObserver_H__
// INCLUDES
#include <cntdef.h> // cntdbobs.h requires TContactItemId from this header
#include <cntdbobs.h> // MContactDbObserver
// FORWARD DECLARATIONS
class CPbkContactEngine;
// CLASS DECLARATION
/**
* Interface class for Phonebook contact database observers.
*
* @see MContactDbObserver
* @see CPbkContactChangeNotifier
*/
class MPbkContactDbObserver : public MContactDbObserver
{
protected: // Derived class interface
/**
* Called by CPbkContactEngine when it receives a database
* change event. From MContactDbObserver.
* @param aEvent The database event.
*/
virtual void HandleDatabaseEventL(TContactDbObserverEvent aEvent) = 0;
/**
* Called by CPbkContactEngine after HandleDatabaseEventL has been
* called for all observers.
* In other words: CPbkContactEngine calls first HandleDatabaseEventL
* for all its observers and then this function again for all
* observers. You can think of it as an "all observers have seen
* aEvent" -notification. This used in Phonebook view activation for
* now. Default implementation does nothing.
*
* @param aEvent The database event
*/
virtual void DatabaseEventHandledL(TContactDbObserverEvent /*aEvent*/)
{
// Empty default implementation
}
/**
* Protected destructor.
* Observers are not destroyed via this interface.
*/
virtual ~MPbkContactDbObserver() { }
private: // friend declarations
/// CPbkContactEngine calls protected functions of this class.
friend class CPbkContactEngine;
};
#endif // __MPbkContactDbObserver_H__
// End of File