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