|
1 /* |
|
2 * Copyright (c) 2002-2005 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 for single match result. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPHCNTMATCH_H |
|
20 #define CPHCNTMATCH_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "MPhCntMatch.h" |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class CPhCntMatchItem; |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * Implementation for single match result. |
|
32 * Passes all function calls to CPhCntMacthItem object. |
|
33 * |
|
34 * @lib PhoneCntFinder |
|
35 * @since 1.0 |
|
36 */ |
|
37 NONSHARABLE_CLASS( CPhCntMatch ) : public CBase, public MPhCntMatch |
|
38 { |
|
39 public: // Constructors and destructor |
|
40 |
|
41 /** |
|
42 * Two-phased constructor. |
|
43 * @param aItem Match data to use |
|
44 * @return New instance |
|
45 */ |
|
46 static CPhCntMatch* NewL( CPhCntMatchItem& aItem ); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 virtual ~CPhCntMatch(); |
|
52 |
|
53 protected: // Functions from base classes |
|
54 |
|
55 /** |
|
56 * From MPhCntMatch |
|
57 */ |
|
58 void Release(); |
|
59 |
|
60 /** |
|
61 * From MPhCntMatch |
|
62 */ |
|
63 CPhCntContactId* ContactId() const; |
|
64 |
|
65 /** |
|
66 * From MPhCntMatch |
|
67 */ |
|
68 TInt NumberType() const; |
|
69 |
|
70 /** |
|
71 * From MPhCntMatch |
|
72 */ |
|
73 TCliType Cli( HBufC*& aCliText ) const; |
|
74 |
|
75 /** |
|
76 * From MPhCntMatch |
|
77 */ |
|
78 TPtrC FirstName() const; |
|
79 |
|
80 /** |
|
81 * From MPhCntMatch |
|
82 */ |
|
83 TPtrC LastName() const; |
|
84 |
|
85 /** |
|
86 * From MPhCntMatch |
|
87 */ |
|
88 TPtrC CompanyName() const; |
|
89 |
|
90 /** |
|
91 * From MPhCntMatch |
|
92 */ |
|
93 TPtrC Number() const; |
|
94 |
|
95 /** |
|
96 * From MPhCntMatch |
|
97 */ |
|
98 TPtrC PersonalRingingTone() const; |
|
99 |
|
100 /** |
|
101 * From MPhCntMatch |
|
102 */ |
|
103 TBool BelongsToGroups( |
|
104 const CArrayFix<TContactItemId>& aGroupArray ) const; |
|
105 |
|
106 /** |
|
107 * @see MPhCntMatch::TextToSpeechTextL. |
|
108 * @since Series 60 3.0 |
|
109 */ |
|
110 virtual HBufC* TextToSpeechTextL() const; |
|
111 |
|
112 /** |
|
113 * From MPhCntMatch |
|
114 * @since Series 60 3.1 |
|
115 */ |
|
116 TPtrC CallText() const; |
|
117 |
|
118 /** |
|
119 * From MPhCntMatch |
|
120 * @since Series 60 3.1 |
|
121 */ |
|
122 TPtrC CallImage() const; |
|
123 |
|
124 /** |
|
125 * From MPhCntMatch |
|
126 * @since Series 60 3.1 |
|
127 */ |
|
128 TBool HasThumbnailImage() const; |
|
129 |
|
130 private: |
|
131 |
|
132 /** |
|
133 * C++ constructor. |
|
134 */ |
|
135 CPhCntMatch( CPhCntMatchItem& aItem ); |
|
136 |
|
137 private: // Data |
|
138 // Match data |
|
139 CPhCntMatchItem& iItem; |
|
140 |
|
141 }; |
|
142 |
|
143 #endif // CPHCNTMATCH_H |
|
144 |
|
145 // End of File |