equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: Recognizer for the bowser supported MIME types. |
14 * Description: Recognizer for the bowser supported MIME types. |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
|
18 |
18 #include "FeedsRec.h" |
19 #include "FeedsRec.h" |
19 |
20 |
20 #include <ecom/implementationproxy.h> |
21 #include <ImplementationProxy.h> |
|
22 |
21 |
23 |
22 // Constants |
24 // Constants |
23 _LIT8(KMimeTypeRss, "application/rss+xml"); |
25 _LIT8(KMimeTypeRss, "application/rss+xml"); |
24 //_LIT8(KMimeTypeAtom, "application/atom+xml"); |
26 //_LIT8(KMimeTypeAtom, "application/atom+xml"); |
25 _LIT8(KMimeTypeXml1, "application/xml"); |
27 _LIT8(KMimeTypeXml1, "application/xml"); |
26 _LIT8(KMimeTypeXml2, "text/xml"); |
28 _LIT8(KMimeTypeXml2, "text/xml"); |
27 |
29 |
|
30 |
28 // ----------------------------------------------------------------------------- |
31 // ----------------------------------------------------------------------------- |
29 // CFeedsRec::CFeedsRec |
32 // CFeedsRec::CFeedsRec |
30 // |
33 // |
31 // Two-phased constructor. |
34 // Two-phased constructor. |
32 // ----------------------------------------------------------------------------- |
35 // ----------------------------------------------------------------------------- |
46 // |
49 // |
47 TUint CFeedsRec::PreferredBufSize() |
50 TUint CFeedsRec::PreferredBufSize() |
48 { |
51 { |
49 return 0x100; |
52 return 0x100; |
50 } |
53 } |
|
54 |
51 |
55 |
52 // ----------------------------------------------------------------------------- |
56 // ----------------------------------------------------------------------------- |
53 // CFeedsRec::SupportedDataTypeL |
57 // CFeedsRec::SupportedDataTypeL |
54 // |
58 // |
55 // Returns the index'ed supported mime-type. |
59 // Returns the index'ed supported mime-type. |
67 default: |
71 default: |
68 return TDataType(); |
72 return TDataType(); |
69 } |
73 } |
70 } |
74 } |
71 |
75 |
|
76 |
72 // ----------------------------------------------------------------------------- |
77 // ----------------------------------------------------------------------------- |
73 // CFeedsRec::DoRecognizeL |
78 // CFeedsRec::DoRecognizeL |
74 // |
79 // |
75 // Given the buffer it examines the buffer and sets the inherited |
80 // Given the buffer it examines the buffer and sets the inherited |
76 // member variable, iConfidence. |
81 // member variable, iConfidence. |
93 // TODO: in 3.1 |
98 // TODO: in 3.1 |
94 |
99 |
95 // Examine the buffer for Opml 1.0. |
100 // Examine the buffer for Opml 1.0. |
96 // TODO: in 3.1 |
101 // TODO: in 3.1 |
97 } |
102 } |
|
103 |
98 |
104 |
99 // ----------------------------------------------------------------------------- |
105 // ----------------------------------------------------------------------------- |
100 // CFeedsRec::DoRecognizeRss |
106 // CFeedsRec::DoRecognizeRss |
101 // |
107 // |
102 // Given the buffer it examines the buffer and returns the confidence level that |
108 // Given the buffer it examines the buffer and returns the confidence level that |
162 } |
168 } |
163 |
169 |
164 return confidence; |
170 return confidence; |
165 } |
171 } |
166 |
172 |
|
173 |
167 // Constants |
174 // Constants |
168 const TImplementationProxy ImplementationTable[] = |
175 const TImplementationProxy ImplementationTable[] = |
169 { |
176 { |
170 IMPLEMENTATION_PROXY_ENTRY(KFeedsRecImplUIDValue, CFeedsRec::CreateRecognizerL) |
177 IMPLEMENTATION_PROXY_ENTRY(KFeedsRecImplUIDValue, CFeedsRec::CreateRecognizerL) |
171 }; |
178 }; |
|
179 |
172 |
180 |
173 // ----------------------------------------------------------------------------- |
181 // ----------------------------------------------------------------------------- |
174 // ImplementationGroupProxy |
182 // ImplementationGroupProxy |
175 // |
183 // |
176 // Returns the proxy. |
184 // Returns the proxy. |
181 aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy); |
189 aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy); |
182 |
190 |
183 return ImplementationTable; |
191 return ImplementationTable; |
184 } |
192 } |
185 |
193 |
|
194 |
186 // ----------------------------------------------------------------------------- |
195 // ----------------------------------------------------------------------------- |
187 // CFeedsRec::CreateRecognizerL |
196 // CFeedsRec::CreateRecognizerL |
188 // |
197 // |
189 // Creates an recognizer instance. |
198 // Creates an recognizer instance. |
190 // ----------------------------------------------------------------------------- |
199 // ----------------------------------------------------------------------------- |