42 /** |
42 /** |
43 * From CPhCntMatcher |
43 * From CPhCntMatcher |
44 * Match number to phonebook. |
44 * Match number to phonebook. |
45 * @since S60 v3.2 |
45 * @since S60 v3.2 |
46 * @param aMatch Found match, owership tranferred. NULL if not found any. |
46 * @param aMatch Found match, owership tranferred. NULL if not found any. |
47 * @param aNumber Number to match against. |
47 * @param aMatchString Number to match against. |
48 * @param aAllowUserNameMatch If true user name match is allowed. |
48 * @param aAllowUserNameMatch If true user name match is allowed. |
49 * @param aCharsForMatching Characters for user name match. Match is started from |
49 * @param aCharsForMatching Characters for user name match. Match is started from |
50 * the rigth of the user name part. (see CS call match) |
50 * the rigth of the user name part. (see CS call match) |
51 * @return Error code: KErrNone - one match found |
51 * @return Error code: KErrNone - one match found |
52 * KErrNotFound - no matches found |
52 * KErrNotFound - no matches found |
53 * other - normal Symbian OS error |
53 * other - normal Symbian OS error |
54 */ |
54 */ |
55 TInt MatchVoipNumber( |
55 TInt MatchVoipNumber( |
56 MPhCntMatch*& aMatch, |
56 MPhCntMatch*& aMatch, |
57 const TDesC& aNumber, |
57 const TDesC& aMatchString, |
58 TBool aAllowUserNameMatch, |
58 TBool aAllowUserNameMatch, |
59 MDesCArray* aContactStoreUris, |
59 MDesCArray* aContactStoreUris, |
60 TInt aCharsForMatching = 0 ); |
60 TInt aCharsForMatching = 0 ); |
61 |
61 |
62 /** |
62 /** |
63 * From CPhCntMatcher |
63 * From CPhCntMatcher |
64 * From CPhCntMatcher, gets VoIP call contact info from phonebook |
64 * From CPhCntMatcher, gets VoIP call contact info from phonebook |
65 * by contact id. |
65 * by contact id. |
66 * @since Series60 3.2 |
66 * @since Series60 3.2 |
67 * @param aMatch for found match, owership tranferred. Empty if not found. |
67 * @param aMatch for found match, owership tranferred. Empty if not found. |
|
68 * @param aMatchString Number to match against. |
68 * @param aContactId for current contact. |
69 * @param aContactId for current contact. |
69 * @return Error code: KErrNone - VoIP call contact found |
70 * @return Error code: KErrNone - VoIP call contact found |
70 * KErrNotFound - no VoIP call contact found |
71 * KErrNotFound - no VoIP call contact found |
71 * other - normal Symbian OS error |
72 * other - normal Symbian OS error |
72 */ |
73 */ |
73 TInt MatchVoipNumber( |
74 TInt MatchVoipNumber( |
74 MPhCntMatch*& aMatch, |
75 MPhCntMatch*& aMatch, |
|
76 const TDesC& aMatchString, |
75 const CPhCntContactId& aContactId ); |
77 const CPhCntContactId& aContactId ); |
76 |
78 |
77 |
79 |
78 /** |
80 /** |
79 * From CPhCntMatcher |
81 * From CPhCntMatcher |
108 * |
110 * |
109 * @since S60 v3.2 |
111 * @since S60 v3.2 |
110 */ |
112 */ |
111 TInt CreateMatcher(); |
113 TInt CreateMatcher(); |
112 |
114 |
|
115 /** |
|
116 * Sets matched VoIP number if it was found. |
|
117 * |
|
118 * @param aContact Contact, which is checked. |
|
119 * @param aMatchString Number to match against. |
|
120 */ |
|
121 void SetMatchedVoIPNumberIfExists( |
|
122 CPhCntContact& aContact, |
|
123 const TDesC& aMatchString ); |
|
124 |
113 private: // data |
125 private: // data |
114 |
126 |
115 |
127 |
116 /** |
128 /** |
117 * Match strategy used for Voip calls. |
129 * Match strategy used for Voip calls. |