FormOCPP16GeneralSettings.h 930 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef FORMOCPP16GENERALSETTINGS_H
  2. #define FORMOCPP16GENERALSETTINGS_H
  3. #include <QWidget>
  4. #include "BaseWidget.h"
  5. #include "DataTypeDef.h"
  6. namespace Ui {
  7. class FormOCPP16GeneralSettings;
  8. }
  9. class FormOCPP16GeneralSettings : public BaseWidget
  10. {
  11. Q_OBJECT
  12. public:
  13. explicit FormOCPP16GeneralSettings(const int& userType = General::UserType::ROOT, BaseWidget *parent = nullptr);
  14. ~FormOCPP16GeneralSettings();
  15. bool returnParent() override;
  16. ocpp1_6_info_t ocpp_info();
  17. void setOcpp_info(const ocpp1_6_info_t &newOcpp_info);
  18. private:
  19. void initWidget();
  20. void initConnect();
  21. void refreshData();
  22. void updateData();
  23. void refreshVisiable();
  24. signals:
  25. void valueChanged();
  26. protected:
  27. void showEvent(QShowEvent* event) override;
  28. private:
  29. Ui::FormOCPP16GeneralSettings *ui;
  30. bool m_is_spread = false;
  31. ocpp1_6_info_t m_ocpp_info;
  32. };
  33. #endif // FORMOCPP16GENERALSETTINGS_H