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 name array modification observer interface.
20 #ifndef MPROENGPROFILENAMEARRAYOBSERVER_H
21 #define MPROENGPROFILENAMEARRAYOBSERVER_H
26 // FORWARD DECLARATIONS
27 class MProEngProfileNameArrayObserverExt;
32 * Profile name array modification observer interface.
33 * Implement this interface to get notifications of changes in the data of a
36 * @lib ProfileEngine.lib
37 * @since Series 60 3.1
39 class MProEngProfileNameArrayObserver
41 public: // New functions
44 * Abstract method for handling profile name array modification event.
45 * This method is called when the contents of profile name array is
46 * changed some way. These cases include:
47 * - a profile has been created,
48 * - a profile has been deleted,
49 * - the name of a profile has been changed.
50 * Note, that when there has been many simultaneous changes in Profiles
51 * data so that it cannot be identified what has changed, then this
52 * method may be called even if nothing hasn't actually changed in the
56 virtual void HandleProfileNameArrayModificationL() = 0;
59 * Error handler for handling the errors in the profile name array
60 * modification notification process.
61 * If HandleProfileNameArrayModificationL() leaves, this method is
62 * called with the leave code. This method has default empty
65 * @param aError the code of the error which occurred during
66 * notification process.
68 virtual void HandleProfileNameArrayNotificationError(
69 TInt /* aError */ ) {};
76 virtual ~MProEngProfileNameArrayObserver() {}
78 private: // Extension interface
81 * This member is internal and not intended for use.
83 virtual MProEngProfileNameArrayObserverExt* Extension() { return NULL; }
87 #endif // MPROENGPROFILENAMEARRAYOBSERVER_H