|
1 /* |
|
2 * Copyright (c) 2005 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 the License "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: Feeds parser observer. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef FEED_PARSER_OBSERVER_H |
|
20 #define FEED_PARSER_OBSERVER_H |
|
21 |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32std.h> |
|
25 |
|
26 // CONSTANTS |
|
27 |
|
28 // MACROS |
|
29 |
|
30 // DATA TYPES |
|
31 |
|
32 // FUNCTION PROTOTYPES |
|
33 |
|
34 // FORWARD DECLARATIONS |
|
35 |
|
36 // CLASS DECLARATION |
|
37 |
|
38 |
|
39 /** |
|
40 * The feed parser observer. |
|
41 * |
|
42 * \b Library: FeedsEngine.lib |
|
43 * |
|
44 * @since 3.1 |
|
45 */ |
|
46 class MFeedParserObserver |
|
47 { |
|
48 public: |
|
49 /** |
|
50 * The beginning of a feed was found. |
|
51 * |
|
52 * @since 3.1 |
|
53 * @return void. |
|
54 */ |
|
55 virtual void FeedBeginsL() = 0; |
|
56 |
|
57 /** |
|
58 * The end of a feed was found. |
|
59 * |
|
60 * @since 3.1 |
|
61 * @return void. |
|
62 */ |
|
63 virtual void FeedEndsL() = 0; |
|
64 |
|
65 /** |
|
66 * The beginning of a item was found. |
|
67 * |
|
68 * @since 3.1 |
|
69 * @return void. |
|
70 */ |
|
71 virtual void ItemBeginsL() = 0; |
|
72 |
|
73 /** |
|
74 * The end of a item was found. |
|
75 * |
|
76 * @since 3.1 |
|
77 * @return void. |
|
78 */ |
|
79 virtual void ItemEndsL() = 0; |
|
80 |
|
81 /** |
|
82 * The beginning of a enclosure was found. |
|
83 * |
|
84 * @since 3.1 |
|
85 * @return void. |
|
86 */ |
|
87 virtual void EnclosureBeginsL() = 0; |
|
88 |
|
89 /** |
|
90 * The end of a enclosure was found. |
|
91 * |
|
92 * @since 3.1 |
|
93 * @return void. |
|
94 */ |
|
95 virtual void EnclosureEndsL() = 0; |
|
96 |
|
97 /** |
|
98 * A attribute was found. This attribute should be applied to |
|
99 * the enclosing entity (Feed, Item, or Enclosure). |
|
100 * |
|
101 * @since 3.1 |
|
102 * @return void. |
|
103 */ |
|
104 virtual void AddAttributeL(TInt aAttribute, const TDesC& aValue) = 0; |
|
105 |
|
106 /** |
|
107 * An unimportant element was found. The client can use this |
|
108 * information for feed validation. |
|
109 * |
|
110 * @since 3.1 |
|
111 * @return void. |
|
112 */ |
|
113 virtual void OtherTitleL() = 0; |
|
114 |
|
115 /** |
|
116 * An unimportant element was found. The client can use this |
|
117 * information for feed validation. |
|
118 * |
|
119 * @since 3.1 |
|
120 * @return void. |
|
121 */ |
|
122 virtual void OtherDescriptionL() = 0; |
|
123 |
|
124 /** |
|
125 * An unimportant element was found. The client can use this |
|
126 * information for feed validation. |
|
127 * |
|
128 * @since 3.1 |
|
129 * @return void. |
|
130 */ |
|
131 virtual void OtherLinkL() = 0; |
|
132 }; |
|
133 |
|
134 |
|
135 #endif // FEED_PARSER_OBSERVER_H |
|
136 |
|
137 // End of File |