• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

kontact

newsfeeds.h

Go to the documentation of this file.
00001 /*
00002   This file is part of Kontact.
00003 
00004   Copyright (c) 2004 Tobias Koenig <tokoe@kde.org>
00005 
00006   This program is free software; you can redistribute it and/or modify
00007   it under the terms of the GNU General Public License as published by
00008   the Free Software Foundation; either version 2 of the License, or
00009   (at your option) any later version.
00010 
00011   This program is distributed in the hope that it will be useful,
00012   but WITHOUT ANY WARRANTY; without even the implied warranty of
00013   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00014   GNU General Public License for more details.
00015 
00016   You should have received a copy of the GNU General Public License along
00017   with this program; if not, write to the Free Software Foundation, Inc.,
00018   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00019 
00020   As a special exception, permission is given to link this program
00021   with any edition of Qt, and distribute the resulting executable,
00022   without including the source code for Qt in the source distribution.
00023 */
00024 
00025 #include <klocale.h>
00026 
00027 #ifndef NEWSFEEDS_H
00028 #define NEWSFEEDS_H
00029 
00030 #define DEFAULT_NEWSSOURCES 60
00031 
00032 class NewsSourceData
00033 {
00034   public:
00035     typedef QList<NewsSourceData> List;
00036 
00037     enum Category {
00038       Arts,
00039       Business,
00040       Computers,
00041       Misc,
00042       Recreation,
00043       Society
00044     };
00045 
00046     explicit NewsSourceData( const QString &name = I18N_NOOP( "Unknown" ),
00047                              const QString &url = QString(),
00048                              const QString &icon = QString(),
00049                              const Category category= Computers )
00050       : mName( name ), mURL( url ), mIcon( icon ), mCategory( category )
00051     {
00052     }
00053 
00054     QString name() const { return mName; }
00055     QString url() const { return mURL; }
00056     QString icon() const { return mIcon; }
00057     Category category() const { return mCategory; }
00058 
00059     QString mName;
00060     QString mURL;
00061     QString mIcon;
00062     Category mCategory;
00063 };
00064 
00065 static NewsSourceData NewsSourceDefault[DEFAULT_NEWSSOURCES] = {
00066   // Arts ---------------
00067     NewsSourceData(
00068     QString::fromLatin1( "Bureau 42" ),
00069     QString::fromLatin1( "http://www.bureau42.com/rdf/" ),
00070     QString::fromLatin1( "http://www.bureau42.com/favicon.ico" ),
00071     NewsSourceData::Arts ),
00072     NewsSourceData(
00073     QString::fromLatin1( "eFilmCritic" ),
00074     QString::fromLatin1( "http://efilmcritic.com/fo.rdf" ),
00075     QString::fromLatin1( "http://efilmcritic.com/favicon.ico" ),
00076     NewsSourceData::Arts ),
00077     NewsSourceData(
00078     QString::fromLatin1( "superhits.ch" ),
00079     QString::fromLatin1( "http://www.superhits.ch/cgi-bin/superhits.cgi?page=rdf" ),
00080     QString::fromLatin1( "http://www.superhits.ch/favicon.ico" ),
00081     NewsSourceData::Arts ),
00082   // Business -----------
00083     NewsSourceData(
00084     QString::fromLatin1( "Internet.com Business" ),
00085     QString::fromLatin1( "http://headlines.internet.com/internetnews/bus-news/news.rss" ),
00086     QString(),
00087     NewsSourceData::Business ),
00088     NewsSourceData(
00089     QString::fromLatin1( "TradeSims" ),
00090     QString::fromLatin1( "http://www.tradesims.com/AEX.rdf" ),
00091     QString(),
00092     NewsSourceData::Business ),
00093   // Computers ----------
00094     NewsSourceData(
00095     QString::fromLatin1( "linuxartist.org" ),
00096     QString::fromLatin1( "http://www.linuxartist.org/backend.php" ),
00097     QString::fromLatin1( "http://www.linuxartist.org/favicon.ico" ),
00098     NewsSourceData::Computers ),
00099     NewsSourceData(
00100     QString::fromLatin1( "KDE Deutschland" ),
00101     QString::fromLatin1( "http://www.kde.de/news/news.rdf" ),
00102     QString::fromLatin1( "http://www.kde.de/favicon.ico" ),
00103     NewsSourceData::Computers ),
00104     NewsSourceData(
00105     QString::fromLatin1( "KDE France" ),
00106     QString::fromLatin1( "http://www.kde-france.org/backend-breves.php3" ),
00107     QString(),
00108     NewsSourceData::Computers ),
00109     NewsSourceData(
00110     QString::fromLatin1( "FreeBSD Project News" ),
00111     QString::fromLatin1( "http://www.freebsd.org/news/news.rdf" ),
00112     QString::fromLatin1( "http://www.freebsd.org/favicon.ico" ),
00113     NewsSourceData::Computers ),
00114     NewsSourceData(
00115     QString::fromLatin1( "dot.kde.org" ),
00116     QString::fromLatin1( "http://www.kde.org/dotkdeorg.rdf" ),
00117     QString::fromLatin1( "http://www.kde.org/favicon.ico" ),
00118     NewsSourceData::Computers ),
00119     NewsSourceData(
00120     QString::fromLatin1( "GNOME News" ),
00121     QString::fromLatin1( "http://www.gnomedesktop.org/backend.php" ),
00122     QString(),
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(),
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( "Linuxde.org" ),
00191     QString::fromLatin1( "http://www.linuxde.org/backends/news.rdf" ),
00192     QString::fromLatin1( "http://www.linuxde.org/favicon.ico" ),
00193     NewsSourceData::Computers ),
00194     NewsSourceData(
00195     QString::fromLatin1( "LinuxSecurity.com" ),
00196     QString::fromLatin1( "http://www.linuxsecurity.com/linuxsecurity_hybrid.rdf" ),
00197     QString(),
00198     NewsSourceData::Computers ),
00199     NewsSourceData(
00200     QString::fromLatin1( "Linux Game Tome" ),
00201     QString::fromLatin1( "http://happypenguin.org/html/news.rdf" ),
00202     QString(),
00203     NewsSourceData::Computers ),
00204     NewsSourceData(
00205     QString::fromLatin1( "Telefragged" ),
00206     QString::fromLatin1( "http://www.telefragged.com/cgi-bin/rdf.pl" ),
00207     QString(),
00208     NewsSourceData::Computers ),
00209     NewsSourceData(
00210     QString::fromLatin1( "Mozilla" ),
00211     QString::fromLatin1( "http://www.mozilla.org/news.rdf" ),
00212     QString::fromLatin1( "http://www.mozillazine.org/favicon.ico" ),
00213     NewsSourceData::Computers ),
00214     NewsSourceData(
00215     QString::fromLatin1( "MozillaZine" ),
00216     QString::fromLatin1( "http://www.mozillazine.org/contents.rdf" ),
00217     QString::fromLatin1( "http://www.mozillazine.org/favicon.ico" ),
00218     NewsSourceData::Computers ),
00219     NewsSourceData(
00220     QString::fromLatin1( "BSD Today" ),
00221     QString::fromLatin1( "http://bsdtoday.com/backend/bt.rdf" ),
00222     QString(),
00223     NewsSourceData::Computers ),
00224     NewsSourceData(
00225     QString::fromLatin1( "Daemon News" ),
00226     QString::fromLatin1( "http://daily.daemonnews.org/ddn.rdf.php3" ),
00227     QString(),
00228     NewsSourceData::Computers ),
00229     NewsSourceData(
00230     QString::fromLatin1( "use Perl;" ),
00231     QString::fromLatin1( "http://use.perl.org/useperl.rdf" ),
00232     QString(),
00233     NewsSourceData::Computers ),
00234     NewsSourceData(
00235     QString::fromLatin1( "desktopian.org" ),
00236     QString::fromLatin1( "http://www.desktopian.org/includes/headlines.xml" ),
00237     QString::fromLatin1( "http://www.desktopian.org/favicon.ico" ),
00238     NewsSourceData::Computers ),
00239     NewsSourceData(
00240     QString::fromLatin1( "Root prompt" ),
00241     QString::fromLatin1( "http://www.rootprompt.org/rss/" ),
00242     QString::fromLatin1( "http://www.rootprompt.org/favicon.ico" ),
00243     NewsSourceData::Computers ),
00244     NewsSourceData(
00245     QString::fromLatin1( "SecurityFocus" ),
00246     QString::fromLatin1( "http://www.securityfocus.com/topnews-rdf.html" ),
00247     QString::fromLatin1( "http://www.securityfocus.com/favicon.ico" ),
00248     NewsSourceData::Computers ),
00249     NewsSourceData(
00250     QString::fromLatin1( "LinuxNewbie" ),
00251     QString::fromLatin1( "http://www.linuxnewbie.org/news.cdf" ),
00252     QString::fromLatin1( "http://www.linuxnewbie.org/favicon.ico" ),
00253     NewsSourceData::Computers ),
00254     NewsSourceData(
00255     QString::fromLatin1( "Arstechnica" ),
00256     QString::fromLatin1( "http://arstechnica.com/etc/rdf/ars.rdf" ),
00257     QString::fromLatin1( "http://arstechnica.com/favicon.ico" ),
00258     NewsSourceData::Computers ),
00259     NewsSourceData(
00260     QString::fromLatin1( "amiga-news.de - deutschsprachige Amiga Nachrichten" ),
00261     QString::fromLatin1( "http://www.amiga-news.de/de/backends/news/index.rss" ),
00262     QString::fromLatin1( "http://www.amiga-news.de/favicon.ico" ),
00263     NewsSourceData::Computers ),
00264     NewsSourceData(
00265     QString::fromLatin1( "amiga-news.de - english Amiga news" ),
00266     QString::fromLatin1( "http://www.amiga-news.de/en/backends/news/index.rss" ),
00267     QString::fromLatin1( "http://www.amiga-news.de/favicon.ico" ),
00268     NewsSourceData::Computers ),
00269     NewsSourceData(
00270     QString::fromLatin1( "RadioTux" ),
00271     QString::fromLatin1( "http://blog.radiotux.de/feed/" ),
00272     QString(),
00273     NewsSourceData::Computers ),
00274     NewsSourceData(
00275     QString::fromLatin1( "kdenews.unixcode.org" ),
00276     QString::fromLatin1( "http://kdenews.unixcode.org/?node=news&action=rss" ),
00277     QString(),
00278     NewsSourceData::Computers ),
00279     NewsSourceData(
00280     QString::fromLatin1( "FreshPorts - the place for ports" ),
00281     QString::fromLatin1( "http://www.freshports.org/news.php3" ),
00282     QString::fromLatin1( "http://www.freshports.org/favicon.ico" ),
00283     NewsSourceData::Computers ),
00284     NewsSourceData(
00285     QString::fromLatin1( "NetPhoenix" ),
00286     QString::fromLatin1( "http://www.netphoenix.at/rss/netphoenix.php" ),
00287     QString::fromLatin1( "http://www.netphoenix.at/favicon.ico" ),
00288     NewsSourceData::Computers ),
00289     NewsSourceData(
00290     QString::fromLatin1( "ShortNews - by www.netphoenix.at" ),
00291     QString::fromLatin1( "http://www.netphoenix.at/rss/shortnews.php" ),
00292     QString::fromLatin1( "http://www.netphoenix.at/favicon.ico" ),
00293     NewsSourceData::Computers ),
00294     NewsSourceData(
00295     QString::fromLatin1( "zez.org - about code " ),
00296     QString::fromLatin1( "http://zez.org/article/rssheadlines" ),
00297     QString(),
00298     NewsSourceData::Computers ),
00299     NewsSourceData(
00300     QString::fromLatin1( "BSDatwork.com" ),
00301     QString::fromLatin1( "http://BSDatwork.com/backend.php" ),
00302     QString::fromLatin1( "http://BSDatwork.com/favicon.ico" ),
00303     NewsSourceData::Computers ),
00304     NewsSourceData(
00305     QString::fromLatin1( "FreshSource - the place for source" ),
00306     QString::fromLatin1( "http://www.freshsource.org/news.php" ),
00307     QString::fromLatin1( "http://www.freshsource.org/favicon.ico" ),
00308     NewsSourceData::Computers ),
00309     NewsSourceData(
00310     QString::fromLatin1( "The FreeBSD Diary" ),
00311     QString::fromLatin1( "http://www.freebsddiary.org/news.php" ),
00312     QString::fromLatin1( "http://www.freebsddiary.org/favicon.ico" ),
00313     NewsSourceData::Computers ),
00314     NewsSourceData(
00315     QString::fromLatin1( "MaximumBSD" ),
00316     QString::fromLatin1( "http://www.maximumbsd.com/backend/mb.rdf" ),
00317     QString::fromLatin1( "http://www.maximumbsd.com/favicon.ico" ),
00318     NewsSourceData::Computers ),
00319   // Miscellaneous ------
00320     NewsSourceData(
00321     QString::fromLatin1( "tagesschau.de" ),
00322     QString::fromLatin1( "http://www.tagesschau.de/newsticker.rdf" ),
00323     QString::fromLatin1( "http://www.tagesschau.de/favicon.ico" ),
00324     NewsSourceData::Misc ),
00325     NewsSourceData(
00326     QString::fromLatin1( "CNN Top Stories" ),
00327     QString::fromLatin1( "http://rss.cnn.com/rss/cnn_topstories.rss" ),
00328     QString::fromLatin1( "http://www.cnn.com/favicon.ico" ),
00329     NewsSourceData::Misc ),
00330     NewsSourceData(
00331     QString::fromLatin1( "HotWired" ),
00332     QString::fromLatin1( "http://www.hotwired.com/webmonkey/meta/headlines.rdf" ),
00333     QString::fromLatin1( "http://www.hotwired.com/favicon.ico" ),
00334     NewsSourceData::Misc ),
00335     NewsSourceData(
00336     QString::fromLatin1( "The Register" ),
00337     QString::fromLatin1( "http://www.theregister.co.uk/tonys/slashdot.rdf" ),
00338     QString::fromLatin1( "http://www.theregister.co.uk/favicon.ico" ),
00339     NewsSourceData::Misc ),
00340     NewsSourceData(
00341     QString::fromLatin1( "Christian Science Monitor" ),
00342     QString::fromLatin1( "http://www.csmonitor.com/rss/csm.rss" ),
00343     QString::fromLatin1( "http://www.csmonitor.com/favicon.ico" ),
00344     NewsSourceData::Misc ),
00345   // Recreation
00346     NewsSourceData(
00347     QString::fromLatin1( "Segfault" ),
00348     QString::fromLatin1( "http://segfault.org/stories.xml" ),
00349     QString::fromLatin1( "http://segfault.org/favicon.ico" ),
00350     NewsSourceData::Recreation ),
00351   // Society
00352     NewsSourceData(
00353     QString::fromLatin1( "nippon.it" ),
00354     QString::fromLatin1( "http://www.nippon.it/backend.it.php" ),
00355     QString::fromLatin1( "http://www.nippon.it/favicon.ico" ),
00356     NewsSourceData::Society ),
00357     NewsSourceData(
00358     QString::fromLatin1( "gflash" ),
00359     QString::fromLatin1( "http://www.gflash.de/backend.php" ),
00360     QString::fromLatin1( "http://www.gflash.de/favicon.ico" ),
00361     NewsSourceData::Society ),
00362     NewsSourceData(
00363     QString::fromLatin1( "Quintessenz" ),
00364     QString::fromLatin1( "http://quintessenz.at/cgi-bin/rdf" ),
00365     QString::fromLatin1( "http://quintessenz.at/favicon.ico" ),
00366     NewsSourceData::Society )
00367 };
00368 
00369 #endif

kontact

Skip menu "kontact"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal