1 /* |
|
2 * Copyright (c) 2002 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 * Contact model ECOM plugin for chinese find. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __CntFindPlugin_H__ |
|
21 #define __CntFindPlugin_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <cntviewfindconfig.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CFindUtil; |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * This class implements the functionality promised by |
|
33 * the CFindUtilInterface definition class. |
|
34 */ |
|
35 class CAknFindUtilBase : public CContactViewFindConfigInterface |
|
36 { |
|
37 public: // Construction / Destruction |
|
38 /** |
|
39 * Two phase static constructor. |
|
40 * @return Newly created instance of CAknFindUtilBase. |
|
41 */ |
|
42 static CAknFindUtilBase* NewL(); |
|
43 ~CAknFindUtilBase(); |
|
44 |
|
45 private: // From CContactViewFindConfigInterface |
|
46 void OpenL(); |
|
47 void Close(); |
|
48 TBool Match(const TDesC& aContactsField, const TDesC& aWord); |
|
49 TBool IsWordValidForMatching(const TDesC& aWord); |
|
50 TBool MatchRefineL( const TDesC& aItemString, const TDesC& aSearchText); |
|
51 |
|
52 private: // Implementation |
|
53 /** |
|
54 * Standard C++ constructor. |
|
55 */ |
|
56 CAknFindUtilBase(); |
|
57 |
|
58 private: // Data |
|
59 /// Own: Find utility that implements the actual finding functionality |
|
60 CFindUtil* iFindUtil; |
|
61 }; |
|
62 |
|
63 #endif // __CAknFindUtilBase_H__ |
|
64 |
|
65 // End of File |
|