williamr@2: /* williamr@2: * Copyright (c) 2002-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 "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members williamr@2: * which accompanies this distribution, and is available williamr@2: * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: * williamr@2: * Initial Contributors: williamr@2: * Nokia Corporation - initial contribution. williamr@2: * williamr@2: * Contributors: williamr@2: * williamr@2: * Description: Profile modification observer interface. williamr@2: * williamr@2: */ williamr@2: williamr@2: williamr@2: williamr@2: #ifndef MPROENGPROFILEOBSERVER_H williamr@2: #define MPROENGPROFILEOBSERVER_H williamr@2: williamr@2: // INCLUDES williamr@2: #include williamr@2: williamr@2: // FORWARD DECLARATIONS williamr@2: class MProEngProfileObserverExt; williamr@2: williamr@2: // CLASS DECLARATION williamr@2: williamr@2: /** williamr@2: * Profile modification observer interface. williamr@2: * Implement this interface to get notifications of changes in the data of a williamr@2: * selected profile. williamr@2: * williamr@2: * @lib ProfileEngine.lib williamr@2: * @since Series 60 3.1 williamr@2: */ williamr@2: class MProEngProfileObserver williamr@2: { williamr@2: public: // New functions williamr@2: williamr@2: /** williamr@2: * Abstract method for handling profile modification event. williamr@2: * This method is called when one of client chosen profiles has been williamr@2: * modified some way. williamr@2: * @since S60 3.1 williamr@2: * @param aProfileId The ID of the profile that was modified. If there williamr@2: * has been many simultaneous changes in Profiles data, so that one williamr@2: * profile cannot be identified, this is KErrNotFound. In this case, williamr@2: * client gets this notification as many times as there are profiles williamr@2: * he has requested notifications about. The savest way is to use williamr@2: * own handlers for every profile of interest. williamr@2: */ williamr@2: virtual void HandleProfileModifiedL( TInt aProfileId ) = 0; williamr@2: williamr@2: /** williamr@2: * Error handler for handling the errors in the profile modification williamr@2: * notification process. If HandleProfileModifiedL() leaves, williamr@2: * this method is called with the leave code. This method has williamr@2: * default empty implementation. williamr@2: * @since S60 3.1 williamr@2: * @param aError the code of the error which occurred during williamr@2: * notification process. williamr@2: */ williamr@2: virtual void HandleProfileNotificationError( williamr@2: TInt /* aError */ ) {}; williamr@2: williamr@2: protected: williamr@2: williamr@2: /** williamr@2: * Destructor. williamr@2: */ williamr@2: virtual ~MProEngProfileObserver() {} williamr@2: williamr@2: private: // Extension interface williamr@2: williamr@2: /** williamr@2: * This member is internal and not intended for use. williamr@2: */ williamr@2: virtual MProEngProfileObserverExt* Extension() { return NULL; } williamr@2: williamr@2: }; williamr@2: williamr@2: #endif // MPROENGPROFILEOBSERVER_H williamr@2: williamr@2: // End of File williamr@2: