clNoticePopWidget.h 793 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef CLNOTICEPOPWIDGET_H
  2. #define CLNOTICEPOPWIDGET
  3. #include <QWidget>
  4. #include "CHttpBll.h"
  5. namespace Ui {
  6. class clNoticePopWidget;
  7. }
  8. class clNoticePopWidget : public QWidget
  9. {
  10. Q_OBJECT
  11. public:
  12. explicit clNoticePopWidget(QWidget *parent = nullptr);
  13. ~clNoticePopWidget();
  14. void setUI(const int nLeft, const int nTop, const int nWidth, const int nHeight);
  15. void addNotice(const CNoticeInfo ni);
  16. int noticeCount();
  17. void setNoticeRead(__int64 nId);
  18. signals:
  19. void showNoticeDetail(__int64 nId);
  20. private slots:
  21. void on_btn_detail_clicked();
  22. void on_btn_ignore_clicked();
  23. private:
  24. void showNotice(const CNoticeInfo ni);
  25. Ui::clNoticePopWidget *ui;
  26. std::vector<CNoticeInfo> vNL;
  27. std::vector<CNoticeInfo> vIgnoreNL;
  28. };
  29. #endif // CLNOTICEPOPWIDGET_H