phonebookui/Phonebook2/remotecontactlookup/contactactionservice/src/CFscContactFieldDynamicProperties.cpp
equal
deleted
inserted
replaced
|
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 the class CFscContactFieldDynamicProperties |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "emailtrace.h" |
|
20 #include "CFscContactFieldDynamicProperties.h" |
|
21 |
|
22 // From VirtualPhonebook |
|
23 #include <MVPbkBaseContactField.h> |
|
24 #include <MVPbkFieldType.h> |
|
25 |
|
26 CFscContactFieldDynamicProperties* CFscContactFieldDynamicProperties::NewLC() |
|
27 { |
|
28 FUNC_LOG; |
|
29 CFscContactFieldDynamicProperties* self = new (ELeave) CFscContactFieldDynamicProperties(); |
|
30 CleanupStack::PushL(self); |
|
31 self->ConstructL(); |
|
32 return self; |
|
33 } |
|
34 |
|
35 CFscContactFieldDynamicProperties::CFscContactFieldDynamicProperties() |
|
36 { |
|
37 FUNC_LOG; |
|
38 // Do nothing |
|
39 } |
|
40 |
|
41 CFscContactFieldDynamicProperties::~CFscContactFieldDynamicProperties() |
|
42 { |
|
43 FUNC_LOG; |
|
44 iHiddenFieldResourceIds.Close(); |
|
45 } |
|
46 |
|
47 void CFscContactFieldDynamicProperties::ConstructL() |
|
48 { |
|
49 FUNC_LOG; |
|
50 // Do nothing |
|
51 } |
|
52 |
|
53 TBool CFscContactFieldDynamicProperties::IsHiddenField( |
|
54 const MVPbkBaseContactField& aField) const |
|
55 { |
|
56 FUNC_LOG; |
|
57 if (iHiddenFieldResourceIds.Find(aField.BestMatchingFieldType()->FieldTypeResId() ) != KErrNotFound) |
|
58 { |
|
59 return ETrue; |
|
60 } |
|
61 return EFalse; |
|
62 } |
|
63 |
|
64 // End of file |
|
65 |