Newer
Older
ZXSSCJ / DeviceHub / DeviceHubWindow.h
tan yue on 12 Nov 2021 841 bytes 20211112 refact device hub
#ifndef DEVICEHUBWINDOW_H
#define DEVICEHUBWINDOW_H

#include <QWidget>

#include "common/HttpRequestController.h"
#include "FrequencyTuningForm.h"
#include "SignalGeneratorForm.h"

QT_BEGIN_NAMESPACE
namespace Ui { class DeviceHubWindow; }
QT_END_NAMESPACE

class DeviceHubWindow : public QWidget
{
    Q_OBJECT

public:
    DeviceHubWindow(QWidget *parent = nullptr);
    ~DeviceHubWindow();

private slots:
    void on_minButt_clicked();
    void on_exitButt_clicked();
    void on_devTypeSelect_currentIndexChanged(int index);

private:
    Ui::DeviceHubWindow *ui;

    // private objects
    HttpRequestController * httpReq;

    // forms
    FrequencyTuningForm * freqTunForm;
    SignalGeneratorForm * signGenForm;

    int initHttpToken();
    int initDictDeviceTypes();
    void initAllDeviceList();
};
#endif // DEVICEHUBWINDOW_H