newsfeeds.h
00001 /* 00002 This file is part of Kontact. 00003 Copyright (c) 2004 Tobias Koenig <tokoe@kde.org> 00004 00005 This program is free software; you can redistribute it and/or modify 00006 it under the terms of the GNU General Public License as published by 00007 the Free Software Foundation; either version 2 of the License, or 00008 (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; if not, write to the Free Software 00017 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00018 00019 As a special exception, permission is given to link this program 00020 with any edition of TQt, and distribute the resulting executable, 00021 without including the source code for TQt in the source distribution. 00022 */ 00023 00024 #ifndef NEWSFEEDS_H 00025 #define NEWSFEEDS_H 00026 00027 #include <tqvaluelist.h> 00028 00029 #define DEFAULT_NEWSSOURCES 60 00030 00031 class NewsSourceData 00032 { 00033 public: 00034 typedef TQValueList<NewsSourceData> List; 00035 00036 enum Category { Arts, Business, Computers, Misc, 00037 Recreation, Society }; 00038 00039 NewsSourceData( const TQString &name = I18N_NOOP( "Unknown" ), 00040 const TQString &url = TQString(), 00041 const TQString &icon = TQString(), 00042 const Category category= Computers ) 00043 : mName( name ), mURL( url ), mIcon( icon ), mCategory( category ) 00044 { 00045 } 00046 00047 TQString name() const { return mName; } 00048 TQString url() const { return mURL; } 00049 TQString icon() const { return mIcon; } 00050 Category category() const { return mCategory; } 00051 00052 TQString mName; 00053 TQString mURL; 00054 TQString mIcon; 00055 Category mCategory; 00056 }; 00057 00058 static NewsSourceData NewsSourceDefault[DEFAULT_NEWSSOURCES] = { 00059 // Arts --------------- 00060 NewsSourceData( 00061 TQString::fromLatin1("Bureau 42"), 00062 TQString::fromLatin1("http://www.bureau42.com/rdf/"), 00063 TQString::fromLatin1("http://www.bureau42.com/favicon.ico"), 00064 NewsSourceData::Arts ), 00065 NewsSourceData( 00066 TQString::fromLatin1("eFilmCritic"), 00067 TQString::fromLatin1("http://efilmcritic.com/fo.rdf"), 00068 TQString::fromLatin1("http://efilmcritic.com/favicon.ico"), 00069 NewsSourceData::Arts ), 00070 // Business ----------- 00071 NewsSourceData( 00072 TQString::fromLatin1("Internet.com Business"), 00073 TQString::fromLatin1("http://headlines.internet.com/internetnews/bus-news/news.rss"), 00074 TQString(), 00075 NewsSourceData::Business ), 00076 NewsSourceData( 00077 TQString::fromLatin1("TradeSims"), 00078 TQString::fromLatin1("http://www.tradesims.com/AEX.rdf"), 00079 TQString(), 00080 NewsSourceData::Business ), 00081 // Computers ---------- 00082 NewsSourceData( 00083 TQString::fromLatin1("KDE Deutschland"), 00084 TQString::fromLatin1("http://www.kde.de/nachrichten/nachrichten.rdf"), 00085 TQString::fromLatin1("http://www.kde.de/favicon.ico"), 00086 NewsSourceData::Computers ), 00087 NewsSourceData( 00088 TQString::fromLatin1("KDE France"), 00089 TQString::fromLatin1("http://www.kde-france.org/backend-breves.php3"), 00090 TQString(), 00091 NewsSourceData::Computers ), 00092 NewsSourceData( 00093 TQString::fromLatin1("FreeBSD Project News"), 00094 TQString::fromLatin1("http://www.freebsd.org/news/news.rdf"), 00095 TQString::fromLatin1("http://www.freebsd.org/favicon.ico"), 00096 NewsSourceData::Computers ), 00097 NewsSourceData( 00098 TQString::fromLatin1("dot.kde.org"), 00099 TQString::fromLatin1("http://www.kde.org/dotkdeorg.rdf"), 00100 TQString::fromLatin1("http://www.kde.org/favicon.ico"), 00101 NewsSourceData::Computers ), 00102 NewsSourceData( TQString::fromLatin1("KDE-Look.org"), 00103 TQString::fromLatin1("http://www.kde.org/kde-look-content.rdf"), 00104 TQString::fromLatin1("http://kde-look.org/img/favicon-1-1.ico"), 00105 NewsSourceData::Computers ), 00106 NewsSourceData( TQString::fromLatin1("KDE-Apps.org"), 00107 TQString::fromLatin1("http://www.kde.org/dot/kde-apps-content.rdf"), 00108 TQString::fromLatin1("http://kde-apps.org/img/favicon-1-1.ico"), 00109 NewsSourceData::Computers ), 00110 NewsSourceData( TQString::fromLatin1("DesktopLinux"), 00111 TQString::fromLatin1("http://www.desktoplinux.com/backend/index.html"), 00112 TQString::fromLatin1("http://www.desktoplinux.com/images/favicon.ico"), 00113 NewsSourceData::Computers ), 00114 NewsSourceData( TQString::fromLatin1("DistroWatch"), 00115 TQString::fromLatin1("http://distrowatch.com/news/dw.xml"), 00116 TQString::fromLatin1("http://distrowatch.com/favicon.ico"), 00117 NewsSourceData::Computers ), 00118 /*URL changed*/ 00119 NewsSourceData( 00120 TQString::fromLatin1("GNOME News"), 00121 TQString::fromLatin1("http://www.gnomedesktop.org/node/feed"), 00122 TQString(), 00123 NewsSourceData::Computers ), 00124 NewsSourceData( 00125 TQString::fromLatin1("Slashdot"), 00126 TQString::fromLatin1("http://slashdot.org/slashdot.rdf"), 00127 TQString::fromLatin1("http://slashdot.org/favicon.ico"), 00128 NewsSourceData::Computers ), 00129 NewsSourceData( 00130 TQString::fromLatin1("Ask Slashdot"), 00131 TQString::fromLatin1("http://slashdot.org/askslashdot.rdf"), 00132 TQString::fromLatin1("http://slashdot.org/favicon.ico"), 00133 NewsSourceData::Computers ), 00134 NewsSourceData( 00135 TQString::fromLatin1("Slashdot: Features"), 00136 TQString::fromLatin1("http://slashdot.org/features.rdf"), 00137 TQString::fromLatin1("http://slashdot.org/favicon.ico"), 00138 NewsSourceData::Computers ), 00139 NewsSourceData( 00140 TQString::fromLatin1("Slashdot: Apache"), 00141 TQString::fromLatin1("http://slashdot.org/apache.rdf"), 00142 TQString::fromLatin1("http://slashdot.org/favicon.ico"), 00143 NewsSourceData::Computers ), 00144 NewsSourceData( 00145 TQString::fromLatin1("Slashdot: Books"), 00146 TQString::fromLatin1("http://slashdot.org/books.rdf"), 00147 TQString::fromLatin1("http://slashdot.org/favicon.ico"), 00148 NewsSourceData::Computers ), 00149 NewsSourceData( 00150 TQString::fromLatin1("Jabber News"), 00151 TQString::fromLatin1("http://www.jabber.org/news/rss.xml"), 00152 TQString(), 00153 NewsSourceData::Computers ), 00154 NewsSourceData( 00155 TQString::fromLatin1("Freshmeat"), 00156 TQString::fromLatin1("http://freshmeat.net/backend/fm.rdf"), 00157 TQString::fromLatin1("http://freshmeat.net/favicon.ico"), 00158 NewsSourceData::Computers ), 00159 NewsSourceData( 00160 TQString::fromLatin1("Linux Weekly News"), 00161 TQString::fromLatin1("http://www.lwn.net/headlines/rss"), 00162 TQString::fromLatin1("http://www.lwn.net/favicon.ico"), 00163 NewsSourceData::Computers ), 00164 NewsSourceData( 00165 TQString::fromLatin1("heise online news"), 00166 TQString::fromLatin1("http://www.heise.de/newsticker/heise.rdf"), 00167 TQString::fromLatin1("http://www.heise.de/favicon.ico"), 00168 NewsSourceData::Computers ), 00169 NewsSourceData( 00170 TQString::fromLatin1("RUS-CERT Ticker"), 00171 TQString::fromLatin1("http://cert.uni-stuttgart.de/ticker/rus-cert.rdf"), 00172 TQString::fromLatin1("http://cert.uni-stuttgart.de/favicon.ico"), 00173 NewsSourceData::Computers ), 00174 NewsSourceData( 00175 TQString::fromLatin1("RUS-CERT Elsewhere"), 00176 TQString::fromLatin1("http://cert.uni-stuttgart.de/ticker/rus-cert-elsewhere.rdf"), 00177 TQString::fromLatin1("http://cert.uni-stuttgart.de/favicon.ico"), 00178 NewsSourceData::Computers ), 00179 NewsSourceData( 00180 TQString::fromLatin1("Kuro5hin"), 00181 TQString::fromLatin1("http://kuro5hin.org/backend.rdf"), 00182 TQString::fromLatin1("http://kuro5hin.org/favicon.ico"), 00183 NewsSourceData::Computers ), 00184 NewsSourceData( 00185 TQString::fromLatin1("Prolinux"), 00186 TQString::fromLatin1("http://www.pl-forum.de/backend/pro-linux.rdf"), 00187 TQString::fromLatin1("http://www.prolinux.de/favicon.ico"), 00188 NewsSourceData::Computers ), 00189 NewsSourceData( 00190 TQString::fromLatin1("LinuxSecurity.com"), 00191 TQString::fromLatin1("http://www.linuxsecurity.com/linuxsecurity_hybrid.rdf"), 00192 TQString::fromLatin1("http://www.linuxsecurity.com/favicon.ico"), 00193 NewsSourceData::Computers ), 00194 NewsSourceData( 00195 TQString::fromLatin1("Linux Game Tome"), 00196 TQString::fromLatin1("http://happypenguin.org/html/news.rdf"), 00197 TQString(), 00198 NewsSourceData::Computers ), 00199 NewsSourceData( 00200 TQString::fromLatin1("Mozilla"), 00201 TQString::fromLatin1("http://www.mozilla.org/news.rdf"), 00202 TQString::fromLatin1("http://www.mozillazine.org/favicon.ico"), 00203 NewsSourceData::Computers ), 00204 NewsSourceData( 00205 TQString::fromLatin1("MozillaZine"), 00206 TQString::fromLatin1("http://www.mozillazine.org/contents.rdf"), 00207 TQString::fromLatin1("http://www.mozillazine.org/favicon.ico"), 00208 NewsSourceData::Computers ), 00209 NewsSourceData( 00210 TQString::fromLatin1("Daemon News"), 00211 TQString::fromLatin1("http://daily.daemonnews.org/ddn.rdf.php3"), 00212 TQString(), 00213 NewsSourceData::Computers ), 00214 NewsSourceData( 00215 TQString::fromLatin1("use Perl;"), 00216 TQString::fromLatin1("http://use.perl.org/useperl.rdf"), 00217 TQString(), 00218 NewsSourceData::Computers ), 00219 NewsSourceData( 00220 TQString::fromLatin1("Root prompt"), 00221 TQString::fromLatin1("http://www.rootprompt.org/rss/"), 00222 TQString::fromLatin1("http://www.rootprompt.org/favicon.ico"), 00223 NewsSourceData::Computers ), 00224 NewsSourceData( 00225 TQString::fromLatin1("SecurityFocus"), 00226 TQString::fromLatin1("http://www.securityfocus.com/topnews-rdf.html"), 00227 TQString::fromLatin1("http://www.securityfocus.com/favicon.ico"), 00228 NewsSourceData::Computers ), 00229 NewsSourceData( 00230 TQString::fromLatin1("Arstechnica"), 00231 TQString::fromLatin1("http://arstechnica.com/etc/rdf/ars.rdf"), 00232 TQString::fromLatin1("http://arstechnica.com/favicon.ico"), 00233 NewsSourceData::Computers ), 00234 NewsSourceData( 00235 TQString::fromLatin1("amiga-news.de - deutschsprachige Amiga Nachrichten"), 00236 TQString::fromLatin1("http://www.amiga-news.de/de/backends/news/index.rss"), 00237 TQString::fromLatin1("http://www.amiga-news.de/favicon.ico"), 00238 NewsSourceData::Computers ), 00239 NewsSourceData( 00240 TQString::fromLatin1("amiga-news.de - english Amiga news"), 00241 TQString::fromLatin1("http://www.amiga-news.de/en/backends/news/index.rss"), 00242 TQString::fromLatin1("http://www.amiga-news.de/favicon.ico"), 00243 NewsSourceData::Computers ), 00244 NewsSourceData( 00245 TQString::fromLatin1("FreshPorts - the place for ports"), 00246 TQString::fromLatin1("http://www.freshports.org/news.php3"), 00247 TQString::fromLatin1("http://www.freshports.org/favicon.ico"), 00248 NewsSourceData::Computers ), 00249 NewsSourceData( 00250 TQString::fromLatin1("zez.org - about code "), 00251 TQString::fromLatin1("http://zez.org/article/rssheadlines"), 00252 TQString(), 00253 NewsSourceData::Computers ), 00254 NewsSourceData( 00255 TQString::fromLatin1("BSDatwork.com"), 00256 TQString::fromLatin1("http://BSDatwork.com/backend.php"), 00257 TQString::fromLatin1("http://BSDatwork.com/favicon.ico"), 00258 NewsSourceData::Computers ), 00259 NewsSourceData( 00260 TQString::fromLatin1("FreshSource - the place for source"), 00261 TQString::fromLatin1("http://www.freshsource.org/news.php"), 00262 TQString::fromLatin1("http://www.freshsource.org/favicon.ico"), 00263 NewsSourceData::Computers ), 00264 NewsSourceData( 00265 TQString::fromLatin1("The FreeBSD Diary"), 00266 TQString::fromLatin1("http://www.freebsddiary.org/news.php"), 00267 TQString::fromLatin1("http://www.freebsddiary.org/favicon.ico"), 00268 NewsSourceData::Computers ), 00269 // Miscellaneous ------ 00270 NewsSourceData( 00271 TQString::fromLatin1("tagesschau.de"), 00272 TQString::fromLatin1("http://www.tagesschau.de/newsticker.rdf"), 00273 TQString::fromLatin1("http://www.tagesschau.de/favicon.ico"), 00274 NewsSourceData::Misc ), 00275 NewsSourceData( 00276 TQString::fromLatin1("CNN Top Stories"), 00277 TQString::fromLatin1("http://rss.cnn.com/rss/cnn_topstories.rss"), 00278 TQString::fromLatin1("http://www.cnn.com/favicon.ico"), 00279 NewsSourceData::Misc ), 00280 /*feed URL changed*/ 00281 NewsSourceData( 00282 TQString::fromLatin1("HotWired"), 00283 TQString::fromLatin1("http://www.wired.com/news/feeds/rss2/0,2610,,00.xml"), 00284 TQString::fromLatin1("http://www.hotwired.com/favicon.ico"), 00285 NewsSourceData::Misc ), 00286 NewsSourceData( 00287 TQString::fromLatin1("The Register"), 00288 TQString::fromLatin1("http://www.theregister.co.uk/headlines.rss"), 00289 TQString::fromLatin1("http://www.theregister.co.uk/favicon.ico"), 00290 NewsSourceData::Misc ), 00291 NewsSourceData( 00292 TQString::fromLatin1( "Christian Science Monitor" ), 00293 TQString::fromLatin1( "http://www.csmonitor.com/rss/csm.rss"), 00294 TQString::fromLatin1( "http://www.csmonitor.com/favicon.ico"), 00295 NewsSourceData::Misc ), 00296 // Recreation 00297 // Society 00298 NewsSourceData( 00299 TQString::fromLatin1("nippon.it"), 00300 TQString::fromLatin1("http://www.nippon.it/backend.it.php"), 00301 TQString::fromLatin1("http://www.nippon.it/favicon.ico"), 00302 NewsSourceData::Society ), 00303 NewsSourceData( 00304 TQString::fromLatin1( "gflash" ), 00305 TQString::fromLatin1( "http://www.gflash.de/backend.php"), 00306 TQString::fromLatin1( "http://www.gflash.de/favicon.ico"), 00307 NewsSourceData::Society ), 00308 NewsSourceData( 00309 TQString::fromLatin1( "Quintessenz" ), 00310 TQString::fromLatin1( "http://quintessenz.at/cgi-bin/rdf"), 00311 TQString::fromLatin1( "http://quintessenz.at/favicon.ico"), 00312 NewsSourceData::Society ) 00313 }; 00314 00315 #endif