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.

radiowidget.h 767B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef RADIOWIDGET_H
  2. #define RADIOWIDGET_H
  3. #include <QMouseEvent>
  4. #include <QFrame>
  5. #include "radio.h"
  6. namespace Ui {
  7. class RadioWidget;
  8. }
  9. class RadioWidget : public QFrame
  10. {
  11. Q_OBJECT
  12. public:
  13. explicit RadioWidget(QWidget *parent = 0);
  14. ~RadioWidget();
  15. Radio* getRadio();
  16. signals:
  17. void clicked(Radio*);
  18. public slots:
  19. void setRadio(Radio* r);
  20. private slots:
  21. void logoDownloaded(QPixmap l);
  22. void songChanged(Song* s);
  23. void countdown();
  24. protected:
  25. void enterEvent(QEvent *);
  26. void leaveEvent(QEvent *);
  27. void mouseReleaseEvent(QMouseEvent* e);
  28. private:
  29. Ui::RadioWidget *ui;
  30. Radio* radio;
  31. int remaining;
  32. QTimer* timer;
  33. };
  34. #endif // RADIOWIDGET_H