2 * Copyright (c) 2002-2004 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: Profile activation observer interface.
20 #ifndef MPROENGPROFILEACTIVATIONOBSERVER_H
21 #define MPROENGPROFILEACTIVATIONOBSERVER_H
26 // FORWARD DECLARATIONS
27 class MProEngProfileActivationObserverExt;
32 * Profile activation observer interface.
33 * Implement this interface to get notifications when the current active profile
36 * @lib ProfileEngine.lib
37 * @since Series 60 3.1
39 class MProEngProfileActivationObserver
41 public: // New functions
44 * Abstract method for handling profile activation event. This method is
45 * called always when a profile is activated, even if the current active
46 * profile is re-activated.
48 * @param aProfileId The ID of the new active profile.
50 virtual void HandleProfileActivatedL( TInt aProfileId ) = 0;
53 * Error handler for handling the errors in the profile activation
54 * notification process. If HandleProfileActivatedL() leaves, this
55 * method is called with the leave code. This method has default empty
58 * @param aError the code of the error which occurred during
59 * notification process.
61 virtual void HandleProfileActivationNotificationError(
62 TInt /* aError */ ) {};
70 virtual ~MProEngProfileActivationObserver() {}
72 private: // Extension interface
75 * This member is internal and not intended for use.
77 virtual MProEngProfileActivationObserverExt* Extension() {return NULL;}
81 #endif // MPROENGPROFILEACTIVATIONOBSERVER_H