1 #ifndef QTMVVM_QQMLQUICKPRESENTER_H 2 #define QTMVVM_QQMLQUICKPRESENTER_H 6 #include <QtCore/QObject> 7 #include <QtCore/QCache> 8 #include <QtCore/QVariant> 9 #include <QtCore/QPointer> 10 #include <QtCore/QUrl> 12 #include <QtQml/QQmlComponent> 14 #include <QtMvvmCore/ViewModel> 15 #include <QtMvvmCore/Messages> 17 #include <QtMvvmQuick/InputViewFactory> 36 class QQmlQuickPresenter :
public QObject 51 Q_PROPERTY(
QString currentStyle READ currentStyle CONSTANT)
111 explicit QQmlQuickPresenter(
QQmlEngine *engine);
116 InputViewFactory* inputViewFactory() const;
118 bool isViewLoading() const;
120 qreal loadingProgress() const;
158 void statusChanged(QQmlComponent::Status status);
161 typedef std::tuple<ViewModel*, QVariantHash, QPointer<ViewModel>> PresentTuple;
174 #endif // QTMVVM_QQMLQUICKPRESENTER_H void qmlPresenterChanged(QObject *qmlPresenter)
NOTIFY accessor for QuickPresenter::qmlPresenter.
static void toggleDrawer()
Toggles the state of the current drawer, if any is beeing used.
static void popView()
Pops the current top level view.
QObject qmlPresenter
The primary presenter QML object.
A configuration for a simple dialog to be shown from the core code.
bool viewLoading
Specifies whether the presenter is currently loading a new view component.
void inputViewFactoryChanged(InputViewFactory *inputViewFactory)
NOTIFY accessor for QuickPresenter::inputViewFactory.
static Q_INVOKABLE QStringList mimeTypeFilters(const QStringList &mimeTypes) const
Converts a list of mimetypes into a list of extension filters, for a file dialog. ...
static void hapticLongPress()
Performs haptic feedback of a long press (Android only)
void viewLoadingChanged(bool viewLoading)
NOTIFY accessor for QuickPresenter::viewLoading.
void loadingProgressChanged(qreal loadingProgress)
NOTIFY accessor for QuickPresenter::loadingProgress.
The QML import for the QtMvvmQuick QML module.
The base class for all viewmodels.
A result watcher to get the result once a dialog has finished.
The primary namespace of the QtMvvm library.
A QML singleton to access common presenter methods globally.