|
1 /* |
|
2 * Copyright (c) 2002 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: |
|
15 * Copies information from Phonebook entry to an existing entry. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __CPBKENTRYCOPYADDTOEXISTING_H__ |
|
21 #define __CPBKENTRYCOPYADDTOEXISTING_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> // CBase |
|
25 #include <cntdef.h> // TContactItemId |
|
26 |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CPbkContactEngine; |
|
30 class CPbkSimEntryCopierBase; |
|
31 class CPbkContactItem; |
|
32 |
|
33 // CLASS DECLARATION |
|
34 |
|
35 /** |
|
36 * Class to insert SIM entry to existing aContactId. |
|
37 */ |
|
38 NONSHARABLE_CLASS(CPbkEntryCopyAddToExisting) : |
|
39 public CBase |
|
40 { |
|
41 public: // interface |
|
42 /** |
|
43 * Creates a new instance of this class. |
|
44 * @param aEntry The entry to copy |
|
45 * @param aEngine Reference to phonebook engine |
|
46 * @param aContactId The contact where the entry is added to |
|
47 */ |
|
48 static CPbkEntryCopyAddToExisting* NewLC |
|
49 (const CPbkContactItem& aEntry, |
|
50 CPbkContactEngine& aEngine, |
|
51 TContactItemId aContactId); |
|
52 |
|
53 /** |
|
54 * Copies the entry to Phonebook. |
|
55 * @return Contact id of the item that the data was copied to. |
|
56 */ |
|
57 TContactItemId CopyL(); |
|
58 |
|
59 private: // implementation |
|
60 CPbkEntryCopyAddToExisting |
|
61 (const CPbkContactItem& aEntry, |
|
62 CPbkContactEngine& aEngine, |
|
63 TContactItemId aContactId); |
|
64 |
|
65 private: // data members |
|
66 /// Ref: Sim entry |
|
67 const CPbkContactItem& iEntry; |
|
68 /// Ref: phonebook engine |
|
69 CPbkContactEngine& iEngine; |
|
70 /// Own: Existing contact item id |
|
71 TContactItemId iContactId; |
|
72 }; |
|
73 |
|
74 #endif // __CPBKENTRYCOPYADDTOEXISTING_H__ |
|
75 |
|
76 // End of File |