|
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 copy contacts result note. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef TPBK2COPYCONTACTSRESULTS_H |
|
20 #define TPBK2COPYCONTACTSRESULTS_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32std.h> |
|
24 |
|
25 // CLASS DECLARATION |
|
26 |
|
27 /** |
|
28 * Phonebook 2 copy contacts result note. |
|
29 */ |
|
30 class TPbk2CopyContactsResults |
|
31 { |
|
32 public: // Constructors |
|
33 |
|
34 /** |
|
35 * Constructor. |
|
36 * For displaying an error note. |
|
37 */ |
|
38 IMPORT_C TPbk2CopyContactsResults(); |
|
39 |
|
40 /** |
|
41 * Constructor. |
|
42 * For displaying multiple copy notes. |
|
43 * |
|
44 * @param aCopied Number of copied contacts. |
|
45 * @param aTotal Total number of contacts in the copy operation. |
|
46 */ |
|
47 IMPORT_C TPbk2CopyContactsResults( |
|
48 TInt aCopied, |
|
49 TInt aTotal ); |
|
50 |
|
51 /** |
|
52 * C++ constructor. |
|
53 * For displaying a single copy note. |
|
54 * |
|
55 * @param aCopied Number of copied contacts. |
|
56 * @param aName Name of the contact which was in the copy. |
|
57 */ |
|
58 IMPORT_C TPbk2CopyContactsResults( |
|
59 TInt aCopied, |
|
60 const TDesC& aName ); |
|
61 |
|
62 public: // Interface |
|
63 |
|
64 /** |
|
65 * Shows the copy results note |
|
66 */ |
|
67 IMPORT_C void ShowNoteL(); |
|
68 |
|
69 /** |
|
70 * Shows the copy error note |
|
71 */ |
|
72 IMPORT_C void ShowErrorNoteL(); |
|
73 |
|
74 /** |
|
75 * Sets the text resource id for "one contact copied" note. |
|
76 * If not set, default is used. |
|
77 * Default = R_QTN_PBCOP_NOTE_CONTACT_COPIED_PB2. |
|
78 * |
|
79 * @param aResId Resource id of the note. |
|
80 */ |
|
81 IMPORT_C void SetOneContactCopiedTextRes( |
|
82 TInt aResId ); |
|
83 |
|
84 /** |
|
85 * Sets the text resource id for "one contact NOT copied" note |
|
86 * If not set, default is used. |
|
87 * Default = R_QTN_PBCOP_NOTE_ENTRY_NOT_COPIED. |
|
88 * |
|
89 * @param aResId Resource id of the note. |
|
90 */ |
|
91 IMPORT_C void SetOneContactNotCopiedTextRes( |
|
92 TInt aResId ); |
|
93 |
|
94 /** |
|
95 * Sets the text resource id for "multiple contacts copied" note. |
|
96 * If not set, default is used. |
|
97 * Default = R_QTN_PBCOP_NOTE_N_ENTRY_COPY_PB. |
|
98 * |
|
99 * @param aResId Resource id of the note. |
|
100 */ |
|
101 IMPORT_C void SetMultipleContactsCopiedTextRes( |
|
102 TInt aResId ); |
|
103 |
|
104 private: // Data |
|
105 /// Own: Number of copied contacts |
|
106 TInt iCopied; |
|
107 /// Own: Number of not copied contacts |
|
108 TInt iNotCopied; |
|
109 /// Own: Name of the contact |
|
110 TPtrC iName; |
|
111 /// Own: Resource id of the one contact copied note |
|
112 TInt iOneContactCopiedResId; |
|
113 /// Own: Resource id of the one contact not copied note |
|
114 TInt iOneContactNotCopiedResId; |
|
115 /// Own: Resource id of the multiple contacts copied note |
|
116 TInt iMultipleContactsCopiedResId; |
|
117 }; |
|
118 |
|
119 #endif // TPBK2COPYCONTACTSRESULTS_H |
|
120 |
|
121 // End of File |