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 activation observer interface. williamr@2: * williamr@2: */ williamr@2: williamr@2: williamr@2: williamr@2: #ifndef MPROENGPROFILEACTIVATIONOBSERVER_H williamr@2: #define MPROENGPROFILEACTIVATIONOBSERVER_H williamr@2: williamr@2: // INCLUDES williamr@2: #include williamr@2: williamr@2: // FORWARD DECLARATIONS williamr@2: class MProEngProfileActivationObserverExt; williamr@2: williamr@2: // CLASS DECLARATION williamr@2: williamr@2: /** williamr@2: * Profile activation observer interface. williamr@2: * Implement this interface to get notifications when the current active profile williamr@2: * changes. williamr@2: * williamr@2: * @lib ProfileEngine.lib williamr@2: * @since Series 60 3.1 williamr@2: */ williamr@2: class MProEngProfileActivationObserver williamr@2: { williamr@2: public: // New functions williamr@2: williamr@2: /** williamr@2: * Abstract method for handling profile activation event. This method is williamr@2: * called always when a profile is activated, even if the current active williamr@2: * profile is re-activated. williamr@2: * @since S60 3.1 williamr@2: * @param aProfileId The ID of the new active profile. williamr@2: */ williamr@2: virtual void HandleProfileActivatedL( TInt aProfileId ) = 0; williamr@2: williamr@2: /** williamr@2: * Error handler for handling the errors in the profile activation williamr@2: * notification process. If HandleProfileActivatedL() leaves, this williamr@2: * method is called with the leave code. This method has default empty williamr@2: * 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 HandleProfileActivationNotificationError( williamr@2: TInt /* aError */ ) {}; williamr@2: williamr@2: williamr@2: protected: williamr@2: williamr@2: /** williamr@2: * Destructor. williamr@2: */ williamr@2: virtual ~MProEngProfileActivationObserver() {} 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 MProEngProfileActivationObserverExt* Extension() {return NULL;} williamr@2: williamr@2: }; williamr@2: williamr@2: #endif // MPROENGPROFILEACTIVATIONOBSERVER_H williamr@2: williamr@2: // End of File williamr@2: