|
1 /* |
|
2 * Copyright (c) 2008 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: Implementation of address selection parameters. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "emailtrace.h" |
|
20 #include "TFscAddressSelectParams.h" |
|
21 |
|
22 // Phonebook 2 |
|
23 #include <MPbk2ContactNameFormatter.h> |
|
24 #include "CFscFieldPropertyArray.h" |
|
25 |
|
26 // Virtual Phonebook |
|
27 #include <MVPbkStoreContactField.h> |
|
28 #include <MVPbkStoreContact.h> |
|
29 #include <CVPbkFieldTypeSelector.h> |
|
30 #include <MVPbkStoreContactFieldCollection.h> |
|
31 #include <CVPbkContactManager.h> |
|
32 |
|
33 |
|
34 // -------------------------------------------------------------------------- |
|
35 // TFscAddressSelectParams::TFscAddressSelectParams |
|
36 // -------------------------------------------------------------------------- |
|
37 // |
|
38 TFscAddressSelectParams::TFscAddressSelectParams |
|
39 ( MVPbkStoreContact& aContact, |
|
40 const CVPbkContactManager& aContactManager, |
|
41 MPbk2ContactNameFormatter& aNameFormatter, |
|
42 const CFscFieldPropertyArray& aFieldPropertyArray, |
|
43 TResourceReader& aReader, TInt aTitleResId ) : |
|
44 iContact( aContact ), |
|
45 iContactManager( aContactManager ), |
|
46 iNameFormatter( aNameFormatter ), |
|
47 iFieldPropertyArray( aFieldPropertyArray ), |
|
48 iResReader( aReader ), |
|
49 iTitleResId( aTitleResId ), |
|
50 iFocusedField( NULL ), |
|
51 iDefaultPriorities( NULL ), |
|
52 iUseDefaultDirectly( EFalse ), |
|
53 iIncludeContactNameInPrompt( ETrue ), |
|
54 iSuppressWarnings( EFalse ) |
|
55 { |
|
56 FUNC_LOG; |
|
57 } |
|
58 |
|
59 // -------------------------------------------------------------------------- |
|
60 // TFscAddressSelectParams::SetFocusedField |
|
61 // -------------------------------------------------------------------------- |
|
62 // |
|
63 void TFscAddressSelectParams::SetFocusedField |
|
64 ( const MVPbkStoreContactField* aFocusedField ) |
|
65 { |
|
66 FUNC_LOG; |
|
67 iFocusedField = aFocusedField; |
|
68 } |
|
69 |
|
70 // -------------------------------------------------------------------------- |
|
71 // TFscAddressSelectParams::SetDefaultPriorities |
|
72 // -------------------------------------------------------------------------- |
|
73 // |
|
74 void TFscAddressSelectParams::SetDefaultPriorities |
|
75 ( const RVPbkContactFieldDefaultPriorities& aDefaultPriorities ) |
|
76 { |
|
77 FUNC_LOG; |
|
78 iDefaultPriorities = &aDefaultPriorities; |
|
79 } |
|
80 |
|
81 // -------------------------------------------------------------------------- |
|
82 // TPbk2AddressSelectParams::SetUseDefaultDirectly |
|
83 // -------------------------------------------------------------------------- |
|
84 // |
|
85 void TFscAddressSelectParams::SetUseDefaultDirectly |
|
86 ( TBool aUseDefaultDirectly ) |
|
87 { |
|
88 FUNC_LOG; |
|
89 iUseDefaultDirectly = aUseDefaultDirectly; |
|
90 } |
|
91 |
|
92 // End of File |
|
93 |