configinfo.h 646 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef CONFIGINFO_H
  2. #define CONFIGINFO_H
  3. #include <QObject>
  4. #include <QString>
  5. #include <QJsonObject>
  6. #include "pqQtlib/utils/pqfileutils.h"
  7. #include <QJsonDocument>
  8. class GlobalInfo;
  9. class ConfigInfo : public QObject
  10. {
  11. Q_OBJECT
  12. public:
  13. QString baseUrl;//服务器接口地址
  14. quint16 packId;
  15. QString printerName; //打印机名称
  16. QString portName; //电子秤串口名称
  17. QString portBaudRate; //电子秤串口波特率
  18. int portType;
  19. bool savePrinter;
  20. void load();
  21. void save();
  22. signals:
  23. void configUpdate();
  24. private:
  25. ConfigInfo();
  26. friend class GlobalInfo;
  27. };
  28. #endif // CONFIGINFO_H