|
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: Add item dialog parameters. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef TPBK2ADDITEMDIALOGPARAMS_H |
|
20 #define TPBK2ADDITEMDIALOGPARAMS_H |
|
21 |
|
22 // CLASS DECLARATION |
|
23 |
|
24 /** |
|
25 * Phonebook 2 add item dialog parameters. |
|
26 */ |
|
27 class TPbk2AddItemDialogParams |
|
28 { |
|
29 public: // Interface |
|
30 |
|
31 /** |
|
32 * Constructor. |
|
33 * |
|
34 * @param aTitle Dialog title, if NULL no |
|
35 * title is shown. |
|
36 * @param aCbaResource CBA resource id. |
|
37 * @param aSelectionIndex Preselection index. |
|
38 */ |
|
39 TPbk2AddItemDialogParams( |
|
40 const TDesC* aTitle, |
|
41 const TInt aCbaResource, |
|
42 const TInt aSelectionIndex ); |
|
43 |
|
44 public: // Data |
|
45 /// Own: CBA resource |
|
46 const TInt iCbaResource; |
|
47 /// Ref: Dialog title |
|
48 const TDesC* iTitle; |
|
49 /// Own: Preselection index |
|
50 const TInt iSelectionIndex; |
|
51 }; |
|
52 |
|
53 // INLINE IMPLEMENTATION |
|
54 |
|
55 |
|
56 // -------------------------------------------------------------------------- |
|
57 // TPbk2AddItemDialogParams::TPbk2AddItemDialogParams |
|
58 // -------------------------------------------------------------------------- |
|
59 // |
|
60 inline TPbk2AddItemDialogParams::TPbk2AddItemDialogParams |
|
61 ( const TDesC* aTitle, |
|
62 const TInt aCbaResource, |
|
63 const TInt aSelectionIndex ) : |
|
64 iTitle( aTitle ), |
|
65 iCbaResource( aCbaResource ), |
|
66 iSelectionIndex( aSelectionIndex ) |
|
67 { |
|
68 } |
|
69 |
|
70 #endif // TPBK2ADDITEMDIALOGPARAMS_H |
|
71 |
|
72 // End of File |