1 /* |
|
2 * Copyright (c) 2008 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: Settings handler class for svtmatching. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_SVTSETTINGSHANDLER_H |
|
20 #define C_SVTSETTINGSHANDLER_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <badesca.h> |
|
24 |
|
25 class CRCSEProfileRegistry; |
|
26 class CSPSettings; |
|
27 |
|
28 /** |
|
29 * Settings handler class for svtmatching. |
|
30 * |
|
31 * @lib svtmatching |
|
32 * @since S60 v5.0 |
|
33 */ |
|
34 NONSHARABLE_CLASS( CSvtSettingsHandler ) : public CBase |
|
35 { |
|
36 public: |
|
37 |
|
38 /** |
|
39 * Two-phased constructor. |
|
40 */ |
|
41 static CSvtSettingsHandler* NewL(); |
|
42 |
|
43 |
|
44 /** |
|
45 * Destructor. |
|
46 */ |
|
47 virtual ~CSvtSettingsHandler(); |
|
48 |
|
49 /** |
|
50 * Initializes settings for parsing. |
|
51 * @param aServiceId - This id identify what service is currently used. |
|
52 */ |
|
53 void InitializeSettingsL( TUint aServiceId ); |
|
54 |
|
55 /** |
|
56 * Returns how many digits are meaningful for matching (from rcse). |
|
57 * InitializeSettingsL should to be called before this. |
|
58 * @return - Value of meaningful digits. |
|
59 */ |
|
60 TInt MeaningfulDigits() const; |
|
61 |
|
62 /** |
|
63 * Returns value of ignore domain part setting (from rcse). |
|
64 * InitializeSettingsL should to be called before this. |
|
65 * @return - Value of ignore domain part setting. |
|
66 */ |
|
67 TUint IgnoreDomainPartValue() const; |
|
68 |
|
69 /** |
|
70 * Gets services contact store uris that should |
|
71 * be used for matching. |
|
72 * InitializeSettingsL should to be called before this. |
|
73 * @param Contact store uri array. |
|
74 * @return KErrNone if succeed. |
|
75 */ |
|
76 TInt GetContactStoreUris( CDesCArray& aStoreUris ) const; |
|
77 |
|
78 private: |
|
79 |
|
80 /** |
|
81 * Returns services contact store uris that should |
|
82 * be used for matching. |
|
83 * InitializeSettingsL should to be called before this. |
|
84 * @leave Leaves if operation not succeed. |
|
85 * @param Contact store uri array. |
|
86 */ |
|
87 void GetContactStoreUrisL( CDesCArray& aStoreUris ) const; |
|
88 |
|
89 /** |
|
90 * Creates a new instance of rcse profile registry. |
|
91 * @return Pointer to rcse profile registry. |
|
92 */ |
|
93 CRCSEProfileRegistry* CreateRcseRegistryLC() const; |
|
94 |
|
95 /** |
|
96 * Creates a new instance of service provider settings. |
|
97 * @return Pointer to SPSettings. |
|
98 */ |
|
99 CSPSettings* CreateSpSettingsLC() const; |
|
100 |
|
101 private: |
|
102 |
|
103 CSvtSettingsHandler(); |
|
104 |
|
105 private: // Data |
|
106 |
|
107 /** |
|
108 * Value of ignore domain part setting. |
|
109 */ |
|
110 TUint iIgnoreDomainPart; |
|
111 |
|
112 /** |
|
113 * Meaningful digits |
|
114 */ |
|
115 TInt iMeaningfulDigits; |
|
116 |
|
117 /** |
|
118 * Service id |
|
119 */ |
|
120 TUint iServiceId; |
|
121 |
|
122 #ifdef _DEBUG |
|
123 friend class T_CSvtSettinsHandler; |
|
124 #endif |
|
125 |
|
126 }; |
|
127 |
|
128 #endif //C_SVTSETTINGSHANDLER_H |
|