TDE network applications
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.cpp 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* $Id$ */
  2. #include <kuniqueapplication.h>
  3. #include <tdeaboutdata.h>
  4. #include <tdecmdlineargs.h>
  5. #include <kdebug.h>
  6. #include <tdeaboutdata.h>
  7. #include <tdelocale.h>
  8. #include <dcopclient.h>
  9. #include "service.h"
  10. #include "query.h"
  11. int main (int argc, char *argv[])
  12. {
  13. TDELocale::setMainCatalogue("dcoprss");
  14. TDEAboutData aboutdata("rssservice", I18N_NOOP("TDE RSS Service"),
  15. "0.8", I18N_NOOP("A RSS data service."),
  16. TDEAboutData::License_GPL, "(C) 2003, Ian Reinhart Geiser");
  17. aboutdata.addAuthor("Ian Reinhart Geiser",I18N_NOOP("Developer"),"geiseri@kde.org");
  18. TDECmdLineArgs::init( argc, argv, &aboutdata );
  19. // TDECmdLineArgs::addCmdLineOptions( options );
  20. KUniqueApplication::addCmdLineOptions();
  21. if (!KUniqueApplication::start())
  22. {
  23. kdDebug() << "rssservice is already running!" << endl;
  24. return (0);
  25. }
  26. KUniqueApplication app;
  27. kdDebug() << "starting rssservice " << endl;
  28. // This app is started automatically, no need for session management
  29. app.disableSessionManagement();
  30. RSSService *service = new RSSService;
  31. QueryService *query = new QueryService(service);
  32. return app.exec();
  33. }