b55dd5adf093ba27627ea968909e4104cef9e876.svn-base 668 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. void btn_click();
  25. private:
  26. Ui::YtWidget *ui;
  27. QTimer *timer;
  28. QStringList wd;
  29. Ycapi *api;
  30. int current_page;
  31. BeepThread *beepThread;
  32. QFont title_font, normal_font;
  33. };
  34. #endif // YTWIDGET_H