2 * Copyright (c) 2004-2007 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: Virtual Phonebook observer interface for contact copying.
19 #ifndef MVPBKCONTACTCOPYOBSERVER_H
20 #define MVPBKCONTACTCOPYOBSERVER_H
26 // FORWARD DECLARATIONS
27 class MVPbkContactOperationBase;
28 class MVPbkContactLinkArray;
31 * Virtual Phonebook contact copy observer interface.
32 * This interface is used to signal the client of the copying
35 class MVPbkContactCopyObserver
39 * Called when the contact has been successfully commited or
40 * copied. Caller takes the ownership of results.
42 * @param aOperation The operation that this observer monitors.
43 * @param aResults An array of links to copied contacts.
44 * Caller takes the ownership of the
47 virtual void ContactsSaved( MVPbkContactOperationBase& aOperation,
48 MVPbkContactLinkArray* aResults ) = 0;
51 * Called when there was en error while saving contact(s).
52 * @param aOperation The operation that this observer monitors.
53 * @param aError an error that occured.
55 virtual void ContactsSavingFailed(
56 MVPbkContactOperationBase& aOperation, TInt aError ) = 0;
59 * Returns an extension point for this interface or NULL.
60 * @param aExtensionUid Uid of extension
61 * @return Extension point or NULL
63 virtual TAny* ContactCopyObserverExtension(
64 TUid /*aExtensionUid*/ ) { return NULL; }
66 protected: // Destructor
70 virtual ~MVPbkContactCopyObserver() { }
74 #endif // MVPBKCONTACTCOPYOBSERVER_H