1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
|
/*
This file is part of Kontact.
Copyright (c) 2004 Tobias Koenig <tokoe@kde.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
As a special exception, permission is given to link this program
with any edition of TQt, and distribute the resulting executable,
without including the source code for TQt in the source distribution.
*/
#ifndef NEWSFEEDS_H
#define NEWSFEEDS_H
#include <tqvaluelist.h>
#define DEFAULT_NEWSSOURCES 60
class NewsSourceData
{
public:
typedef TQValueList<NewsSourceData> List;
enum Category { Arts, Business, Computers, Misc,
Recreation, Society };
NewsSourceData( const TQString &name = I18N_NOOP( "Unknown" ),
const TQString &url = TQString(),
const TQString &icon = TQString(),
const Category category= Computers )
: mName( name ), mURL( url ), mIcon( icon ), mCategory( category )
{
}
TQString name() const { return mName; }
TQString url() const { return mURL; }
TQString icon() const { return mIcon; }
Category category() const { return mCategory; }
TQString mName;
TQString mURL;
TQString mIcon;
Category mCategory;
};
static NewsSourceData NewsSourceDefault[DEFAULT_NEWSSOURCES] = {
// Arts ---------------
NewsSourceData(
TQString::tqfromLatin1("Bureau 42"),
TQString::tqfromLatin1("http://www.bureau42.com/rdf/"),
TQString::tqfromLatin1("http://www.bureau42.com/favicon.ico"),
NewsSourceData::Arts ),
NewsSourceData(
TQString::tqfromLatin1("eFilmCritic"),
TQString::tqfromLatin1("http://efilmcritic.com/fo.rdf"),
TQString::tqfromLatin1("http://efilmcritic.com/favicon.ico"),
NewsSourceData::Arts ),
// Business -----------
NewsSourceData(
TQString::tqfromLatin1("Internet.com Business"),
TQString::tqfromLatin1("http://headlines.internet.com/internetnews/bus-news/news.rss"),
TQString(),
NewsSourceData::Business ),
NewsSourceData(
TQString::tqfromLatin1("TradeSims"),
TQString::tqfromLatin1("http://www.tradesims.com/AEX.rdf"),
TQString(),
NewsSourceData::Business ),
// Computers ----------
NewsSourceData(
TQString::tqfromLatin1("KDE Deutschland"),
TQString::tqfromLatin1("http://www.kde.de/nachrichten/nachrichten.rdf"),
TQString::tqfromLatin1("http://www.kde.de/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
TQString::tqfromLatin1("KDE France"),
TQString::tqfromLatin1("http://www.kde-france.org/backend-breves.php3"),
TQString(),
NewsSourceData::Computers ),
NewsSourceData(
TQString::tqfromLatin1("FreeBSD Project News"),
TQString::tqfromLatin1("http://www.freebsd.org/news/news.rdf"),
TQString::tqfromLatin1("http://www.freebsd.org/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
TQString::tqfromLatin1("dot.kde.org"),
TQString::tqfromLatin1("http://www.kde.org/dotkdeorg.rdf"),
TQString::tqfromLatin1("http://www.kde.org/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData( TQString::tqfromLatin1("KDE-Look.org"),
TQString::tqfromLatin1("http://www.kde.org/kde-look-content.rdf"),
TQString::tqfromLatin1("http://kde-look.org/img/favicon-1-1.ico"),
NewsSourceData::Computers ),
NewsSourceData( TQString::tqfromLatin1("KDE-Apps.org"),
TQString::tqfromLatin1("http://www.kde.org/dot/kde-apps-content.rdf"),
TQString::tqfromLatin1("http://kde-apps.org/img/favicon-1-1.ico"),
NewsSourceData::Computers ),
NewsSourceData( TQString::tqfromLatin1("DesktopLinux"),
TQString::tqfromLatin1("http://www.desktoplinux.com/backend/index.html"),
TQString::tqfromLatin1("http://www.desktoplinux.com/images/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData( TQString::tqfromLatin1("DistroWatch"),
TQString::tqfromLatin1("http://distrowatch.com/news/dw.xml"),
TQString::tqfromLatin1("http://distrowatch.com/favicon.ico"),
NewsSourceData::Computers ),
/*URL changed*/
NewsSourceData(
TQString::tqfromLatin1("GNOME News"),
TQString::tqfromLatin1("http://www.gnomedesktop.org/node/feed"),
TQString(),
NewsSourceData::Computers ),
NewsSourceData(
TQString::tqfromLatin1("Slashdot"),
TQString::tqfromLatin1("http://slashdot.org/slashdot.rdf"),
TQString::tqfromLatin1("http://slashdot.org/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
TQString::tqfromLatin1("Ask Slashdot"),
TQString::tqfromLatin1("http://slashdot.org/askslashdot.rdf"),
TQString::tqfromLatin1("http://slashdot.org/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
TQString::tqfromLatin1("Slashdot: Features"),
TQString::tqfromLatin1("http://slashdot.org/features.rdf"),
TQString::tqfromLatin1("http://slashdot.org/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
TQString::tqfromLatin1("Slashdot: Apache"),
TQString::tqfromLatin1("http://slashdot.org/apache.rdf"),
TQString::tqfromLatin1("http://slashdot.org/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
TQString::tqfromLatin1("Slashdot: Books"),
TQString::tqfromLatin1("http://slashdot.org/books.rdf"),
TQString::tqfromLatin1("http://slashdot.org/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
TQString::tqfromLatin1("Jabber News"),
TQString::tqfromLatin1("http://www.jabber.org/news/rss.xml"),
TQString(),
NewsSourceData::Computers ),
NewsSourceData(
TQString::tqfromLatin1("Freshmeat"),
TQString::tqfromLatin1("http://freshmeat.net/backend/fm.rdf"),
TQString::tqfromLatin1("http://freshmeat.net/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
TQString::tqfromLatin1("Linux Weekly News"),
TQString::tqfromLatin1("http://www.lwn.net/headlines/rss"),
TQString::tqfromLatin1("http://www.lwn.net/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
TQString::tqfromLatin1("heise online news"),
TQString::tqfromLatin1("http://www.heise.de/newsticker/heise.rdf"),
TQString::tqfromLatin1("http://www.heise.de/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
TQString::tqfromLatin1("RUS-CERT Ticker"),
TQString::tqfromLatin1("http://cert.uni-stuttgart.de/ticker/rus-cert.rdf"),
TQString::tqfromLatin1("http://cert.uni-stuttgart.de/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
TQString::tqfromLatin1("RUS-CERT Elsewhere"),
TQString::tqfromLatin1("http://cert.uni-stuttgart.de/ticker/rus-cert-elsewhere.rdf"),
TQString::tqfromLatin1("http://cert.uni-stuttgart.de/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
TQString::tqfromLatin1("Kuro5hin"),
TQString::tqfromLatin1("http://kuro5hin.org/backend.rdf"),
TQString::tqfromLatin1("http://kuro5hin.org/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
TQString::tqfromLatin1("Prolinux"),
TQString::tqfromLatin1("http://www.pl-forum.de/backend/pro-linux.rdf"),
TQString::tqfromLatin1("http://www.prolinux.de/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
TQString::tqfromLatin1("LinuxSecurity.com"),
TQString::tqfromLatin1("http://www.linuxsecurity.com/linuxsecurity_hybrid.rdf"),
TQString::tqfromLatin1("http://www.linuxsecurity.com/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
TQString::tqfromLatin1("Linux Game Tome"),
TQString::tqfromLatin1("http://happypenguin.org/html/news.rdf"),
TQString(),
NewsSourceData::Computers ),
NewsSourceData(
TQString::tqfromLatin1("Mozilla"),
TQString::tqfromLatin1("http://www.mozilla.org/news.rdf"),
TQString::tqfromLatin1("http://www.mozillazine.org/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
TQString::tqfromLatin1("MozillaZine"),
TQString::tqfromLatin1("http://www.mozillazine.org/contents.rdf"),
TQString::tqfromLatin1("http://www.mozillazine.org/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
TQString::tqfromLatin1("Daemon News"),
TQString::tqfromLatin1("http://daily.daemonnews.org/ddn.rdf.php3"),
TQString(),
NewsSourceData::Computers ),
NewsSourceData(
TQString::tqfromLatin1("use Perl;"),
TQString::tqfromLatin1("http://use.perl.org/useperl.rdf"),
TQString(),
NewsSourceData::Computers ),
NewsSourceData(
TQString::tqfromLatin1("Root prompt"),
TQString::tqfromLatin1("http://www.rootprompt.org/rss/"),
TQString::tqfromLatin1("http://www.rootprompt.org/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
TQString::tqfromLatin1("SecurityFocus"),
TQString::tqfromLatin1("http://www.securityfocus.com/topnews-rdf.html"),
TQString::tqfromLatin1("http://www.securityfocus.com/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
TQString::tqfromLatin1("Arstechnica"),
TQString::tqfromLatin1("http://arstechnica.com/etc/rdf/ars.rdf"),
TQString::tqfromLatin1("http://arstechnica.com/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
TQString::tqfromLatin1("amiga-news.de - deutschsprachige Amiga Nachrichten"),
TQString::tqfromLatin1("http://www.amiga-news.de/de/backends/news/index.rss"),
TQString::tqfromLatin1("http://www.amiga-news.de/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
TQString::tqfromLatin1("amiga-news.de - english Amiga news"),
TQString::tqfromLatin1("http://www.amiga-news.de/en/backends/news/index.rss"),
TQString::tqfromLatin1("http://www.amiga-news.de/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
TQString::tqfromLatin1("FreshPorts - the place for ports"),
TQString::tqfromLatin1("http://www.freshports.org/news.php3"),
TQString::tqfromLatin1("http://www.freshports.org/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
TQString::tqfromLatin1("zez.org - about code "),
TQString::tqfromLatin1("http://zez.org/article/rssheadlines"),
TQString(),
NewsSourceData::Computers ),
NewsSourceData(
TQString::tqfromLatin1("BSDatwork.com"),
TQString::tqfromLatin1("http://BSDatwork.com/backend.php"),
TQString::tqfromLatin1("http://BSDatwork.com/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
TQString::tqfromLatin1("FreshSource - the place for source"),
TQString::tqfromLatin1("http://www.freshsource.org/news.php"),
TQString::tqfromLatin1("http://www.freshsource.org/favicon.ico"),
NewsSourceData::Computers ),
NewsSourceData(
TQString::tqfromLatin1("The FreeBSD Diary"),
TQString::tqfromLatin1("http://www.freebsddiary.org/news.php"),
TQString::tqfromLatin1("http://www.freebsddiary.org/favicon.ico"),
NewsSourceData::Computers ),
// Miscellaneous ------
NewsSourceData(
TQString::tqfromLatin1("tagesschau.de"),
TQString::tqfromLatin1("http://www.tagesschau.de/newsticker.rdf"),
TQString::tqfromLatin1("http://www.tagesschau.de/favicon.ico"),
NewsSourceData::Misc ),
NewsSourceData(
TQString::tqfromLatin1("CNN Top Stories"),
TQString::tqfromLatin1("http://rss.cnn.com/rss/cnn_topstories.rss"),
TQString::tqfromLatin1("http://www.cnn.com/favicon.ico"),
NewsSourceData::Misc ),
/*feed URL changed*/
NewsSourceData(
TQString::tqfromLatin1("HotWired"),
TQString::tqfromLatin1("http://www.wired.com/news/feeds/rss2/0,2610,,00.xml"),
TQString::tqfromLatin1("http://www.hotwired.com/favicon.ico"),
NewsSourceData::Misc ),
NewsSourceData(
TQString::tqfromLatin1("The Register"),
TQString::tqfromLatin1("http://www.theregister.co.uk/headlines.rss"),
TQString::tqfromLatin1("http://www.theregister.co.uk/favicon.ico"),
NewsSourceData::Misc ),
NewsSourceData(
TQString::tqfromLatin1( "Christian Science Monitor" ),
TQString::tqfromLatin1( "http://www.csmonitor.com/rss/csm.rss"),
TQString::tqfromLatin1( "http://www.csmonitor.com/favicon.ico"),
NewsSourceData::Misc ),
// Recreation
// Society
NewsSourceData(
TQString::tqfromLatin1("nippon.it"),
TQString::tqfromLatin1("http://www.nippon.it/backend.it.php"),
TQString::tqfromLatin1("http://www.nippon.it/favicon.ico"),
NewsSourceData::Society ),
NewsSourceData(
TQString::tqfromLatin1( "gflash" ),
TQString::tqfromLatin1( "http://www.gflash.de/backend.php"),
TQString::tqfromLatin1( "http://www.gflash.de/favicon.ico"),
NewsSourceData::Society ),
NewsSourceData(
TQString::tqfromLatin1( "Quintessenz" ),
TQString::tqfromLatin1( "http://quintessenz.at/cgi-bin/rdf"),
TQString::tqfromLatin1( "http://quintessenz.at/favicon.ico"),
NewsSourceData::Society )
};
#endif
|