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: Abstract interface for handling the active profile events.
20 #ifndef MPROENGACTIVEPROFILEOBSERVER_H
21 #define MPROENGACTIVEPROFILEOBSERVER_H
26 // FORWARD DECLARATIONS
27 class MProEngActiveProfileObserverExt;
32 * Active profile modification observer interface.
33 * Implement this interface to get notifications of changes in the active profile
36 * @lib ProfileEngine.lib
37 * @since Series 60 3.1
39 class MProEngActiveProfileObserver
41 public: // New functions
44 * Abstract method for handling active profile modification event.
45 * This method is called when the current active profile has been
46 * modified some way. Note, this doesn't get events if a profile is
47 * activated, for that implement MProEngProfileActivationObserver.
49 * @since Series 60 3.1
51 virtual void HandleActiveProfileModifiedL() = 0;
54 * Error handler for handling the errors in the active profile
55 * modification notification process. If HandleActiveProfileModifiedL()
56 * leaves, this method is called with the leave code. This method has
57 * default empty implementation.
59 * @param aError the code of the error which occurred during
60 * notification process.
62 virtual void HandleActiveProfileNotificationError(
63 TInt /* aError */ ) {};
70 virtual ~MProEngActiveProfileObserver() {}
72 private: // Extension interface
75 * This member is internal and not intended for use.
77 virtual MProEngActiveProfileObserverExt* Extension() { return NULL; }
81 #endif // MPROENGACTIVEPROFILEOBSERVER_H