|
1 /* |
|
2 * Copyright (c) 2002-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: |
|
15 * Provides methods for Phonebook 2 field analyzer. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef CPBK2FIELDANALYZER_H |
|
21 #define CPBK2FIELDANALYZER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32def.h> |
|
25 #include "MPbk2FieldAnalyzer.h" |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CVPbkContactManager; |
|
29 class MVPbkStoreContactFieldCollection; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * Phonebook 2 field analyzer. |
|
35 */ |
|
36 NONSHARABLE_CLASS(CPbk2FieldAnalyzer): public MPbk2FieldAnalyzer |
|
37 { |
|
38 public: // Constructors and destructor |
|
39 /** |
|
40 * Creates a new instance of this class. |
|
41 * |
|
42 * @param aContactManager, Contact manager |
|
43 * @return A new instance of this class. |
|
44 */ |
|
45 static CPbk2FieldAnalyzer* NewL( CVPbkContactManager& aContactManager ); |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 ~CPbk2FieldAnalyzer(); |
|
51 |
|
52 public: // From MPbk2FieldAnalyzer |
|
53 TBool HasSpeedDialL( |
|
54 const MVPbkStoreContactField& aField ) const; |
|
55 TBool HasVoiceTagL( |
|
56 const MVPbkStoreContactField& aField ) const; |
|
57 TBool IsHiddenField( |
|
58 const CPbk2PresentationContactField& aField ) const; |
|
59 const TInt VoipSupportL( |
|
60 const MVPbkBaseContactFieldCollection& aFields ) const; |
|
61 TBool IsFieldVoipCapable( |
|
62 TInt aVpbkFieldResId, const TInt aVoipFlag ) const; |
|
63 |
|
64 public: // interface |
|
65 /** |
|
66 * Sets the fields which have a voice tag to the analyzer. |
|
67 * @param aFields Voice tagged fields. |
|
68 */ |
|
69 void SetVoiceTagFields(MVPbkStoreContactFieldCollection* aFields); |
|
70 |
|
71 private: |
|
72 /** |
|
73 * Constructor. |
|
74 */ |
|
75 CPbk2FieldAnalyzer( CVPbkContactManager& aContactManager ); |
|
76 |
|
77 private: |
|
78 /// Ref: Contact manager |
|
79 CVPbkContactManager& iContactManager; |
|
80 /// Own: voice tagged fields |
|
81 MVPbkStoreContactFieldCollection* iVoiceTaggedFields; |
|
82 }; |
|
83 |
|
84 #endif // CPBK2FIELDANALYZER_H |
|
85 |
|
86 // End of File |