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.

50 lines
1.6KB

  1. /* $Id$ */
  2. /***************************************************************************
  3. article.cpp - A DCOP Service to provide RSS data
  4. -------------------
  5. begin : Saturday 15 February 2003
  6. copyright : (C) 2003 by Ian Reinhart Geiser
  7. email : geiseri@kde.org
  8. ***************************************************************************/
  9. /***************************************************************************
  10. * *
  11. * This program is free software; you can redistribute it and/or modify *
  12. * it under the terms of the GNU General Public License as published by *
  13. * the Free Software Foundation; either version 2 of the License, or *
  14. * (at your option) any later version. *
  15. * *
  16. ***************************************************************************/
  17. #include <kdebug.h>
  18. #include <kurl.h>
  19. #include "service.h"
  20. RSSArticle::RSSArticle(Article *art) :
  21. DCOPObject(), m_Art(art)
  22. {
  23. kdDebug() << "New article..." << endl;
  24. kdDebug() << m_Art->link().prettyURL() << endl;
  25. }
  26. RSSArticle::~RSSArticle()
  27. {
  28. kdDebug() << "Article going away..." << endl;
  29. delete m_Art;
  30. }
  31. TQString RSSArticle::title()
  32. {
  33. //kdDebug() << "Get title " << m_Art->title() << endl;
  34. return m_Art->title();
  35. }
  36. TQString RSSArticle::description()
  37. {
  38. return m_Art->description();
  39. }
  40. TQString RSSArticle::link()
  41. {
  42. return m_Art->link().prettyURL();
  43. }