|
1 /* |
|
2 * Copyright (c) 2009 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 merge conflict interface. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef MPBK2MERGECONFLICT_H_ |
|
19 #define MPBK2MERGECONFLICT_H_ |
|
20 |
|
21 // FORWARD DECLARATIONS |
|
22 class MVPbkStoreContactField; |
|
23 |
|
24 // ENUM DECLARATION |
|
25 enum EPbk2ConflictType |
|
26 { |
|
27 EPbk2ConflictTypeNormal, |
|
28 EPbk2ConflictTypeAddress, |
|
29 EPbk2ConflictTypeImage |
|
30 }; |
|
31 |
|
32 enum EPbk2ConflictedNumber |
|
33 { |
|
34 EPbk2ConflictedFirst, |
|
35 EPbk2ConflictedSecond |
|
36 }; |
|
37 |
|
38 // CLASS DECLARATION |
|
39 /** |
|
40 * Phonebook 2 merge conflict base class. |
|
41 */ |
|
42 class MPbk2MergeConflict |
|
43 { |
|
44 public: // Implementation |
|
45 /** |
|
46 * Destructor. |
|
47 */ |
|
48 virtual ~MPbk2MergeConflict(){}; |
|
49 |
|
50 /** |
|
51 * Gets conflict type. |
|
52 * |
|
53 * @return Type of conflict. |
|
54 */ |
|
55 virtual EPbk2ConflictType GetConflictType() = 0; |
|
56 |
|
57 /** |
|
58 * Gets label. |
|
59 * |
|
60 * @return Label. |
|
61 */ |
|
62 virtual HBufC* GetLabelLC() = 0; |
|
63 |
|
64 /** |
|
65 * Gets text of conficted field or address. |
|
66 * |
|
67 * @param aNumber First or Second. |
|
68 * @return Conflicted text. |
|
69 */ |
|
70 virtual HBufC* GetTextLC( EPbk2ConflictedNumber aNumber ) = 0; |
|
71 |
|
72 /** |
|
73 * Resolves conflict. |
|
74 * |
|
75 * @param aNumber First or Second. |
|
76 */ |
|
77 virtual void ResolveConflict( EPbk2ConflictedNumber aNumber ) = 0; |
|
78 |
|
79 /** |
|
80 * Gets chosen fields. |
|
81 * |
|
82 * @param aAddressFields Array of chosen address fields, |
|
83 * contact owns these fields, they can't be deleted. |
|
84 */ |
|
85 virtual void GetChosenFieldsL( RPointerArray<MVPbkStoreContactField>& aAddressFields ) = 0; |
|
86 |
|
87 }; |
|
88 #endif /* MPBK2MERGECONFLICT_H_ */ |