3 #include <kuniqueapplication.h>
4 #include <kaboutdata.h>
5 #include <kcmdlineargs.h>
7 #include <kaboutdata.h>
9 #include <dcopclient.h>
13 int main (int argc
, char *argv
[])
15 KLocale::setMainCatalog("dcoprss");
16 KAboutData
aboutdata("rssservice", I18N_NOOP("KDE RSS Service"),
17 "0.8", I18N_NOOP("A RSS data service."),
18 KAboutData::License_GPL
, "(C) 2003, Ian Reinhart Geiser");
19 aboutdata
.addAuthor("Ian Reinhart Geiser",I18N_NOOP("Developer"),"geiseri@kde.org");
21 KCmdLineArgs::init( argc
, argv
, &aboutdata
);
22 // KCmdLineArgs::addCmdLineOptions( options );
23 KUniqueApplication::addCmdLineOptions();
25 if (!KUniqueApplication::start())
27 kdDebug() << "rssservice is already running!" << endl
;
31 KUniqueApplication app
;
32 kdDebug() << "starting rssservice " << endl
;
33 // This app is started automatically, no need for session management
34 app
.disableSessionManagement();
35 RSSService
*service
= new RSSService
;
36 QueryService
*query
= new QueryService(service
);