|
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: Is a serialized version of CFeed suitable for transfer between |
|
15 * client and server. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef PACKED_FEED_H |
|
21 #define PACKED_FEED_H |
|
22 |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 |
|
27 #include "LeakTracker.h" |
|
28 #include "Packed.h" |
|
29 |
|
30 // CONSTANTS |
|
31 |
|
32 // MACROS |
|
33 |
|
34 // DATA TYPES |
|
35 |
|
36 // FUNCTION PROTOTYPES |
|
37 |
|
38 // FORWARD DECLARATIONS |
|
39 |
|
40 // CLASS DECLARATION |
|
41 |
|
42 |
|
43 /** |
|
44 * Is a serialized version of CFeed suitable for transfer between client and server. |
|
45 * |
|
46 * \b Library: FeedsEngine.lib |
|
47 * |
|
48 * @since 3.1 |
|
49 */ |
|
50 class CPackedFeed: public CPacked |
|
51 { |
|
52 public: // Construct/Destructor |
|
53 /** |
|
54 * Two-phased constructor. |
|
55 */ |
|
56 static CPackedFeed* NewL(); |
|
57 |
|
58 /** |
|
59 * Destructor. |
|
60 */ |
|
61 virtual ~CPackedFeed(); |
|
62 |
|
63 |
|
64 public: // New Methods -- server side methods. |
|
65 /** |
|
66 * Insert the begining of a feed. |
|
67 * |
|
68 * @since 3.1 |
|
69 * @return Void |
|
70 */ |
|
71 void FeedBeginsL(); |
|
72 |
|
73 /** |
|
74 * Insert the ending of a feed. |
|
75 * |
|
76 * @since 3.1 |
|
77 * @return Void |
|
78 */ |
|
79 void FeedEndsL(); |
|
80 |
|
81 /** |
|
82 * Insert the begining of a item. |
|
83 * |
|
84 * @since 3.1 |
|
85 * @return Void |
|
86 */ |
|
87 void ItemBeginsL(); |
|
88 |
|
89 /** |
|
90 * Insert the ending of a item. |
|
91 * |
|
92 * @since 3.1 |
|
93 * @return Void |
|
94 */ |
|
95 void ItemEndsL(); |
|
96 |
|
97 /** |
|
98 * Insert the begining of a enclosure. |
|
99 * |
|
100 * @since 3.1 |
|
101 * @return Void |
|
102 */ |
|
103 void EnclosureBeginsL(); |
|
104 |
|
105 /** |
|
106 * Insert the ending of a enclosure. |
|
107 * |
|
108 * @since 3.1 |
|
109 * @return Void |
|
110 */ |
|
111 void EnclosureEndsL(); |
|
112 |
|
113 /** |
|
114 * Insert an unimportant token. The client can use this |
|
115 * information for feed validation. |
|
116 * |
|
117 * @since 3.1 |
|
118 * @return void. |
|
119 */ |
|
120 void OtherTitleL(); |
|
121 |
|
122 /** |
|
123 * Insert an unimportant token. The client can use this |
|
124 * information for feed validation. |
|
125 * |
|
126 * @since 3.1 |
|
127 * @return void. |
|
128 */ |
|
129 void OtherDescriptionL(); |
|
130 |
|
131 /** |
|
132 * Insert an unimportant token. The client can use this |
|
133 * information for feed validation. |
|
134 * |
|
135 * @since 3.1 |
|
136 * @return void. |
|
137 */ |
|
138 void OtherLinkL(); |
|
139 |
|
140 |
|
141 protected: // New Methods |
|
142 /** |
|
143 * C++ default constructor. |
|
144 */ |
|
145 CPackedFeed(TInt aTokenArrayInc, TInt aStringTableInc); |
|
146 |
|
147 /** |
|
148 * By default Symbian 2nd phase constructor is private. |
|
149 */ |
|
150 void ConstructL(); |
|
151 |
|
152 private: |
|
153 TLeakTracker iLeakTracker; |
|
154 }; |
|
155 |
|
156 |
|
157 #endif // PACKED_FEED_H |
|
158 |
|
159 // End of File |