#ifndef TESTPRESENTER_H #define TESTPRESENTER_H #include #include class TestPresenter : public QObject, public QtMvvm::IPresenter { Q_OBJECT Q_INTERFACES(QtMvvm::IPresenter) public: Q_INVOKABLE explicit TestPresenter(QObject *parent = nullptr); void present(QtMvvm::ViewModel *viewModel, const QVariantHash ¶ms, QPointer parent) override; void showDialog(const QtMvvm::MessageConfig &config, QtMvvm::MessageResult *result) override; QList>> presented; QList> dialogs; Q_SIGNALS: void presentDone(); void dialogDone(); }; #endif // TESTPRESENTER_H