|
1 /* |
|
2 * Copyright (c) 2005-2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
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". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Phonebook 2 contacts relocator observer interface. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MPBK2CONTACTRELOCATOROBSERVER_H |
|
20 #define MPBK2CONTACTRELOCATOROBSERVER_H |
|
21 |
|
22 // FORWARD DECLARATIONS |
|
23 class MVPbkStoreContact; |
|
24 class CVPbkContactLinkArray; |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 /** |
|
29 * Phonebook 2 contacts relocator observer interface.. |
|
30 */ |
|
31 class MPbk2ContactRelocatorObserver |
|
32 { |
|
33 public: // Interface |
|
34 |
|
35 /** |
|
36 * Contact has been relocated. |
|
37 * |
|
38 * @param aRelocatedContact The relocated contact. Observer takes |
|
39 * ownership of the contact. |
|
40 */ |
|
41 virtual void ContactRelocatedL( |
|
42 MVPbkStoreContact* aRelocatedContact ) = 0; |
|
43 |
|
44 /** |
|
45 * Contact relocation has failed. |
|
46 * |
|
47 * @param aReason Error code. |
|
48 * @param aContact The contact that was submitted for relocation. |
|
49 * Observer takes ownership of the contact. |
|
50 */ |
|
51 virtual void ContactRelocationFailed( |
|
52 TInt aReason, |
|
53 MVPbkStoreContact* aContact ) = 0; |
|
54 |
|
55 /** |
|
56 * Contacts relocation has failed. |
|
57 * |
|
58 * @param aReason Error code. |
|
59 * @param aContact The contacts that were submitted for relocation. |
|
60 * Observer takes ownership of the contacts. |
|
61 */ |
|
62 virtual void ContactsRelocationFailed( |
|
63 TInt aReason, |
|
64 CVPbkContactLinkArray* aContacts ) = 0; |
|
65 |
|
66 /** |
|
67 * All contacts have been processed. |
|
68 * The relocated contacts have been sent to the observer with |
|
69 * ContactRelocatedL() and ContactRelocationFailed() functions. |
|
70 */ |
|
71 virtual void RelocationProcessComplete() = 0; |
|
72 |
|
73 protected: // Disabled functions |
|
74 ~MPbk2ContactRelocatorObserver() |
|
75 {} |
|
76 }; |
|
77 |
|
78 #endif // MPBK2CONTACTRELOCATOROBSERVER_H |
|
79 |
|
80 // End of File |