12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- #ifndef QWORDDEMO_H
- #define QWORDDEMO_H
- #include <QMainWindow>
- struct ReportableInfo
- {
-
- std::string domid;
- std::string devcode;
- std::string devname;
- int _detectType;
- std::string _typeDesc;
- std::string _installspot;
- std::string _maintainer;
- std::string _model;
- double electricVal;
- std::string _productSeq;
- std::string _productTime;
- std::string result;
- int alarm_level;
- std::string alarmTime;
- int envwindspeed;
- int envtemp;
- int envhumidity;
- };
- typedef enum
- {
- ALARM_CURRENT_HEAT,
- ALARM_VOLTAGE_HEAT,
- } ALARM_HEAT_TYPE;
- typedef enum
- {
- NORMAL_ALARM,
- GENERAL_ALARM,
- CRITICAL_ALARM,
- URGENT_ALARM,
- _ALARM_NUM,
- } ALARM_LEVEL;
- namespace Ui {
- class QWordDemo;
- }
- class QWordDemo : public QMainWindow
- {
- Q_OBJECT
- public:
- explicit QWordDemo(QWidget *parent = nullptr);
- ~QWordDemo();
- QString getDetectType(int detectType);
- QString getAlarmLevel(int level);
- private:
- Ui::QWordDemo *ui;
- ReportableInfo repItem;
- private slots:
- void on_exportPushBtn_clicked();
- };
- #endif
|