mcumodule.h 873 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef __MCUMODULE_H__
  2. #define __MCUMODULE_H__
  3. #include <QObject>
  4. class MCUModule : public QObject
  5. {
  6. Q_OBJECT
  7. public:
  8. explicit MCUModule(QObject *parent = nullptr);
  9. bool isHeating() const;
  10. void setIsHeatng(const bool &newIsHeating);
  11. int screenBrightness() const;
  12. void setScreenBrightness(const int &newScreenBrightness);
  13. int keyBrightness() const;
  14. void setKeyBrightness(const int &newKeyBrightness);
  15. int screenTemp() const;
  16. void setScreenTemp(const int &newScreenTemp);
  17. int interfaceTemp() const;
  18. void setInterfaceTemp(const int &newInterfaceTemp);
  19. private:
  20. bool m_isHeating; // 加热状态
  21. int m_screenBrightness; // 屏幕亮度
  22. int m_keyBrightness; // 按键亮度
  23. int m_screenTemp; // 屏幕温度
  24. int m_interfaceTemp; // 接口板载温度
  25. };
  26. #endif // MCUMODULE_H