#ifndef PRESENTER_H #define PRESENTER_H #include #include "apiclient.h" #include "mainwindow.h" class Presenter : public QObject { Q_OBJECT public: Presenter(QObject *parent = nullptr); ~Presenter(); private slots: void onDevicesReceived(const QList &devices); void onDepartmentsReceived(const QMap &departments); void onDeviceModelsReceived(const QMap &deviceModels); void onDeviceTypesReceived(const QMap &deviceTypes); void onManufacturersReceived(const QMap &manufacturers); void onLocationsReceived(const QMap &locations); private: ApiClient *client; MainWindow *window; }; #endif // PRESENTER_H