You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
751 B
26 lines
751 B
#ifndef TESTPRESENTER_H
|
|
#define TESTPRESENTER_H
|
|
|
|
#include <QObject>
|
|
#include <QtMvvmCore/IPresenter>
|
|
|
|
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<QtMvvm::ViewModel> parent) override;
|
|
void showDialog(const QtMvvm::MessageConfig &config, QtMvvm::MessageResult *result) override;
|
|
|
|
QList<std::tuple<QtMvvm::ViewModel*, QVariantHash, QPointer<QtMvvm::ViewModel>>> presented;
|
|
QList<std::tuple<QtMvvm::MessageConfig, QtMvvm::MessageResult*>> dialogs;
|
|
|
|
Q_SIGNALS:
|
|
void presentDone();
|
|
void dialogDone();
|
|
};
|
|
|
|
#endif // TESTPRESENTER_H
|
|
|