oaminstallparam.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #ifndef OAMINSTALLPARAM_H
  2. #define OAMINSTALLPARAM_H
  3. #include <QDialog>
  4. #include "pspublic.h"
  5. #include "includes.h"
  6. #pragma pack(push)
  7. #pragma pack(1)
  8. #define INSTALL_PAYLOAD_LEN 128
  9. #define ORDER_INSTALL_BUILD_ID 0x0400
  10. #define ORDER_INSTALL_LAYER_ID 0x0401
  11. #define ORDER_INSTALL_LAYER_BLOCK_ID 0x0402
  12. #define ORDER_INSTALL_LAYER_BLOCK_DESC 0x0403
  13. #define ORDER_INSTALL_LOCATION_TYPE 0x0404
  14. #define ORDER_INSTALL_LAYER_POSITION 0x0405
  15. #define ORDER_INSTALL_LAYER_COORD_X 0x0406
  16. #define ORDER_INSTALL_LAYER_COORD_Y 0x0407
  17. #define ORDER_INSTALL_LAYER_COORD_Z 0x0408
  18. class MainDlg;
  19. namespace Ui {
  20. class OamInstallParam;
  21. }
  22. class OamInstallParam : public QDialog
  23. {
  24. Q_OBJECT
  25. public:
  26. explicit OamInstallParam(QWidget *parent = nullptr);
  27. ~OamInstallParam();
  28. void showParam(LTV_T *pstData);
  29. void updateUi();
  30. private:
  31. Ui::OamInstallParam *ui;
  32. MainDlg *m_pMainDlg;//上级窗口指针
  33. QString m_strProjectID;
  34. int m_dwDeviceType;//设备类型,0:声波基站,1:同步基站,2:同步中继
  35. void init();
  36. void initUi();
  37. void configSignalSlot();
  38. void selectAllItem();
  39. void selectAllNoItem();
  40. void clearAllItem();
  41. void switchBtnFlag(bool byFlag);
  42. void queryParam();
  43. void configParam();
  44. void uploadParam();
  45. signals:
  46. void SignalSendQueryMsg(quint8 *pbyData, quint16 wLen);
  47. void SignalSendConfigMsg(quint8 *pbyData, quint16 wLen,quint16 wCmd);
  48. void SignalUploadBtsBaseParamUpdate(QString strApi, QJsonObject jsonObject);
  49. };
  50. #pragma pack(pop)
  51. #endif // OAMINSTALLPARAM_H