|
1 /* |
|
2 * Copyright (c) 2005-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: Phone number matching strategy for parallel matching. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CVPBKPHONENUMBERPARALLELMATCHSTRATEGY_H |
|
20 #define CVPBKPHONENUMBERPARALLELMATCHSTRATEGY_H |
|
21 |
|
22 // INCLUDE FILES |
|
23 #include <CVPbkPhoneNumberMatchStrategy.h> |
|
24 |
|
25 /** |
|
26 * Phone number matching strategy for parallel matching. |
|
27 */ |
|
28 NONSHARABLE_CLASS(CVPbkPhoneNumberParallelMatchStrategy) |
|
29 : public CVPbkPhoneNumberMatchStrategy |
|
30 { |
|
31 public: // Construction & destruction |
|
32 /** |
|
33 * Creates a new instance of this class. |
|
34 * |
|
35 * @param aConfig Configuration data for phone number matching. |
|
36 * @param aContactManager Contact manager to be used in matching. |
|
37 * @param aObserver Observer for the matching operation. |
|
38 * @return Newly created instance of this class. |
|
39 */ |
|
40 static CVPbkPhoneNumberParallelMatchStrategy* NewL( |
|
41 const TConfig& aConfig, |
|
42 CVPbkContactManager& aContactManager, |
|
43 MVPbkContactFindObserver& aObserver); |
|
44 |
|
45 ~CVPbkPhoneNumberParallelMatchStrategy(); |
|
46 |
|
47 private: // From CVPbkPhoneNumberMatchStrategy |
|
48 MVPbkContactOperation* CreateFindOperationLC(const TDesC& aPhoneNumber); |
|
49 void InitMatchingL(); |
|
50 |
|
51 private: // Implementation |
|
52 /** |
|
53 * Constructor. |
|
54 */ |
|
55 CVPbkPhoneNumberParallelMatchStrategy(); |
|
56 |
|
57 /** |
|
58 * Initializes the class. |
|
59 * |
|
60 * @param aConfig Configuration data for phone number matching. |
|
61 * @param aContactManager Contact manager to be used in matching. |
|
62 * @param aObserver Observer for the matching operation. |
|
63 */ |
|
64 void ConstructL( |
|
65 const TConfig& aConfig, |
|
66 CVPbkContactManager& aContactManager, |
|
67 MVPbkContactFindObserver& aObserver); |
|
68 |
|
69 private: // Data |
|
70 /// Flag to indicate if the matching has been started. |
|
71 TBool iMatchingStarted; |
|
72 }; |
|
73 |
|
74 #endif // CVPBKPHONENUMBERPARALLELMATCHSTRATEGY_H |
|
75 //End of file |
|
76 |