TDE frontend for streamripper
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.

kstreamripper.h 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /***************************************************************************
  2. * Copyright (C) 2003-2005 by Michael Goettsche *
  3. * mail@tuxipuxi.org *
  4. * *
  5. * This program is free software; you can redistribute it and/or modify *
  6. * it under the terms of the GNU General Public License as published by *
  7. * the Free Software Foundation; either version 2 of the License, or *
  8. * (at your option) any later version. *
  9. * *
  10. * This program is distributed in the hope that it will be useful, *
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of *
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
  13. * GNU General Public License for more details. *
  14. * *
  15. * You should have received a copy of the GNU General Public License *
  16. * along with this program; if not, write to the *
  17. * Free Software Foundation, Inc., *
  18. * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
  19. ***************************************************************************/
  20. #ifndef KSTREAMRIPPER_H
  21. #define KSTREAMRIPPER_H
  22. #include <tdeversion.h>
  23. #include "kstreamripperbase.h"
  24. #if KDE_IS_VERSION(3,3,90)
  25. #include <dnssd/servicebrowser.h>
  26. #include <dnssd/remoteservice.h>
  27. #else
  28. // damned moc will create slots regardless of #if macro
  29. // this is hack to avoid undefined type
  30. namespace DNSSD { namespace RemoteService { typedef int Ptr; } }
  31. #endif
  32. class AddNewStreamImpl;
  33. class TQString;
  34. class KStreamRipper : public KStreamRipperBase
  35. {
  36. Q_OBJECT
  37. public:
  38. KStreamRipper( TQWidget* parent = 0, const char* name = 0 );
  39. ~KStreamRipper();
  40. virtual void closeEvent( TQCloseEvent* );
  41. #if KDE_IS_VERSION(3,3,90)
  42. DNSSD::ServiceBrowser m_browser;
  43. #endif
  44. protected slots:
  45. void addStreamButtonClicked();
  46. void deleteStreamButtonClicked();
  47. void tuneInButtonClicked();
  48. void ripButtonClicked();
  49. void stopRipButtonClicked();
  50. void browseButtonClicked();
  51. void helpButtonClicked();
  52. void aboutButtonClicked();
  53. void quitButtonClicked();
  54. void selectedNewListItem();
  55. void descriptionChanged();
  56. void urlChanged();
  57. void addStreamFinished( AddNewStreamImpl* );
  58. #if KDE_IS_VERSION(3,3,90)
  59. void serviceAdded(DNSSD::RemoteService::Ptr srv);
  60. void serviceRemoved(DNSSD::RemoteService::Ptr srv);
  61. #else
  62. void serviceAdded(DNSSD::RemoteService::Ptr) {};
  63. void serviceRemoved(DNSSD::RemoteService::Ptr) {};
  64. #endif
  65. };
  66. #endif