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.

processcontroller.h 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /***************************************************************************
  2. * Copyright (C) 2005 by Will Entriken *
  3. * william.entriken@villanova.edu *
  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 PROCESSCONTROLLER_H
  21. #define PROCESSCONTROLLER_H
  22. #include <tqprocess.h>
  23. #include <tqstring.h>
  24. #include <tqtimer.h>
  25. #include <tqobject.h>
  26. #include <tdeversion.h>
  27. #if KDE_IS_VERSION(3,3,90)
  28. #include <dnssd/remoteservice.h>
  29. #endif
  30. class ProcessListViewItem;
  31. class ProcessController : public TQObject
  32. {
  33. Q_OBJECT
  34. public:
  35. ProcessController(ProcessListViewItem * parent);
  36. ~ProcessController();
  37. bool getStatus();
  38. bool getAutomatic();
  39. void setAutomatic(bool a);
  40. #if KDE_IS_VERSION(3,3,90)
  41. DNSSD::RemoteService::Ptr getService();
  42. void setService(DNSSD::RemoteService::Ptr service);
  43. #endif
  44. void setUrl(TQString Url);
  45. void setDescription(TQString Description);
  46. TQString getUrl();
  47. TQString getDescription();
  48. void startRip(TQString destination, TQString time);
  49. void stopRip();
  50. protected slots:
  51. void readStdout();
  52. private:
  53. ProcessListViewItem * myParent;
  54. bool myStatus;
  55. bool myAutomatic;
  56. #if KDE_IS_VERSION(3,3,90)
  57. DNSSD::RemoteService::Ptr myService;
  58. #endif
  59. TQProcess * myProcess;
  60. TQString myUrl;
  61. TQString myDescription;
  62. };
  63. #endif