kontact

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