summaryrefslogtreecommitdiffstats
path: root/dcoprss/main.cpp
blob: fb822a2264b0e36f2d4b1ae7aadd60e9f145d4fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* $Id$ */

#include <kuniqueapplication.h>
#include <tdeaboutdata.h>
#include <tdecmdlineargs.h>
#include <kdebug.h>
#include <tdeaboutdata.h>
#include <klocale.h>
#include <dcopclient.h>
#include "service.h"
#include "query.h"

int main (int argc, char *argv[])
{
	TDELocale::setMainCatalogue("dcoprss");
	TDEAboutData aboutdata("rssservice", I18N_NOOP("TDE RSS Service"),
				"0.8", I18N_NOOP("A RSS data service."),
				TDEAboutData::License_GPL, "(C) 2003, Ian Reinhart Geiser");
	aboutdata.addAuthor("Ian Reinhart Geiser",I18N_NOOP("Developer"),"[email protected]");

	TDECmdLineArgs::init( argc, argv, &aboutdata );
	// TDECmdLineArgs::addCmdLineOptions( options );
	KUniqueApplication::addCmdLineOptions();

	if (!KUniqueApplication::start())
	{
		kdDebug() << "rssservice is already running!" << endl;
		return (0);
	}

	KUniqueApplication app;
	kdDebug() << "starting rssservice " << endl;
	// This app is started automatically, no need for session management
	app.disableSessionManagement();
	RSSService *service = new RSSService;
	QueryService *query = new QueryService(service);

	return app.exec();
}