selectvalueform.h 1014 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #ifndef SELECTVALUEFORM_H
  2. #define SELECTVALUEFORM_H
  3. #include <QWidget>
  4. #include "configinfo.h"
  5. #include "handle/httprequest.h"
  6. namespace Ui {
  7. class SelectValueForm;
  8. }
  9. class SelectValueForm : public QWidget
  10. {
  11. Q_OBJECT
  12. public:
  13. explicit SelectValueForm(QWidget *parent = nullptr);
  14. ~SelectValueForm();
  15. void getInfo(int page, int pageListNum = 20);
  16. inline void setStatus(int staus){status = staus;}
  17. signals:
  18. void back();
  19. void selectProject(const ProjectInfo & info, int status);
  20. private slots:
  21. void result(int code, const QJsonObject & body);
  22. void refPage();
  23. void parseObject(const QJsonObject & obj);
  24. void on_pushPrev_clicked();
  25. void on_pushNext_clicked();
  26. void on_pushButton_2_clicked();
  27. void on_pushButton_3_clicked();
  28. private:
  29. Ui::SelectValueForm *ui;
  30. int nowPage;
  31. int pageListNum;
  32. int totlePage;
  33. int totleNum;
  34. QList<ProjectInfo> currtInfo;
  35. HttpRequest _request;
  36. int status;
  37. };
  38. #endif // SELECTVALUEFORM_H