123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #ifndef FORMOCPP16GENERALSETTINGS_H
- #define FORMOCPP16GENERALSETTINGS_H
- #include <QWidget>
- #include "BaseWidget.h"
- #include "DataTypeDef.h"
- namespace Ui {
- class FormOCPP16GeneralSettings;
- }
- class FormOCPP16GeneralSettings : public BaseWidget
- {
- Q_OBJECT
- public:
- explicit FormOCPP16GeneralSettings(const int& userType = General::UserType::ROOT, BaseWidget *parent = nullptr);
- ~FormOCPP16GeneralSettings();
- bool returnParent() override;
- ocpp1_6_info_t ocpp_info();
- void setOcpp_info(const ocpp1_6_info_t &newOcpp_info);
- private:
- void initWidget();
- void initConnect();
- void refreshData();
- void updateData();
- void refreshVisiable();
- signals:
- void valueChanged();
- void ocppCheckChanged(bool status);
- protected:
- void showEvent(QShowEvent* event) override;
- private:
- Ui::FormOCPP16GeneralSettings *ui;
- bool m_is_spread = false;
- ocpp1_6_info_t m_ocpp_info;
- };
- #endif // FORMOCPP16GENERALSETTINGS_H
|