c387ff56f8cbb467afea4ad823b7aa949c87c213.svn-base 651 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef YTWIDGET_H
  2. #define YTWIDGET_H
  3. #include <QWidget>
  4. #include <QTimer>
  5. #include <QDateTime>
  6. #include <QStringList>
  7. #include <QFont>
  8. #include "../ycapi/ycapi.h"
  9. #include "beepthread.h"
  10. namespace Ui {
  11. class YtWidget;
  12. }
  13. class YtWidget : public QWidget
  14. {
  15. Q_OBJECT
  16. public:
  17. explicit YtWidget(QWidget *parent = 0);
  18. ~YtWidget();
  19. void show_page();
  20. public slots:
  21. void ui_timeout();
  22. void page_click();
  23. void show_html();
  24. private:
  25. Ui::YtWidget *ui;
  26. QTimer *timer;
  27. QStringList wd;
  28. Ycapi *api;
  29. int current_page;
  30. BeepThread *beepThread;
  31. QFont title_font, normal_font;
  32. };
  33. #endif // YTWIDGET_H