oamconfigparam.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #ifndef OAMCONFIGPARAM_H
  2. #define OAMCONFIGPARAM_H
  3. #include <QDialog>
  4. #include "pspublic.h"
  5. #include "includes.h"
  6. #pragma pack(push)
  7. #pragma pack(1)
  8. //配置参数
  9. #define ORDER_CONFIG_DAC_SWITCH 0x0301 // DAC开关(对应目前网管的功放开关3)
  10. #define ORDER_CONFIG_DAC_GAIN 0x0302 // DAC增益(对应目前网管功放增益微调1)
  11. #define ORDER_CONFIG_PA_SWITCH 0x0303 // PA开关(对应目前网管的功放开关1)
  12. #define ORDER_CONFIG_PA_GAIN 0x0304 // PA增益(对应目前网管功放增益1)
  13. #define ORDER_CONFIG_RESET_PARAM 0x03FD // 重置参数
  14. #define ORDER_CONFIG_RESTART 0x03FE // 重启设备
  15. #define ORDER_CONFIG_SAVE_PARAM 0x03FF // 保存参数
  16. class MainDlg;
  17. namespace Ui {
  18. class OamConfigParam;
  19. }
  20. class OamConfigParam : public QDialog
  21. {
  22. Q_OBJECT
  23. public:
  24. explicit OamConfigParam(QWidget *parent = nullptr);
  25. ~OamConfigParam();
  26. void showParam(LTV_T *pstData);
  27. void updateUi();
  28. private:
  29. Ui::OamConfigParam *ui;
  30. MainDlg *m_pMainDlg;//上级窗口指针
  31. int m_dwDeviceType;//设备类型,0:声波基站,1:同步基站
  32. void init();
  33. void initUi();
  34. void configSignalSlot();
  35. void selectAllItem();
  36. void selectAllNoItem();
  37. void clearAllItem();
  38. void switchBtnFlag(bool byFlag);
  39. void queryParam();
  40. void configParam();
  41. void uploadData();
  42. public slots:
  43. void saveParamSlot();
  44. void restartSlot();
  45. void resetParamSlot();
  46. signals:
  47. void SignalSendQueryMsg(quint8 *pbyData, quint16 wLen);
  48. void SignalSendConfigMsg(quint8 *pbyData, quint16 wLen,quint16 wCmd);
  49. void SignalUploadBtsBaseParamUpdate(QString strApi, QJsonObject jsonObject);//上传数据
  50. };
  51. #pragma pack(pop)
  52. #endif // OAMCONFIGPARAM_H