1 #ifndef QTMVVM_INPUTVIEWFACTORY_H 2 #define QTMVVM_INPUTVIEWFACTORY_H 4 #include <QtCore/qurl.h> 5 #include <QtCore/qvariant.h> 6 #include <QtCore/qscopedpointer.h> 7 #include <QtCore/qobject.h> 9 #include "QtMvvmQuick/qtmvvmquick_global.h" 13 class InputViewFactoryPrivate;
25 Q_INVOKABLE
virtual QUrl getInputUrl(
const QByteArray &type,
const QVariantMap &viewProperties);
27 Q_INVOKABLE
virtual QUrl getDelegate(
const QByteArray &type,
const QVariantMap &viewProperties);
30 template <
typename TType>
31 inline void addSimpleInput(
const QUrl &qmlFileUrl);
33 Q_INVOKABLE
virtual void addSimpleInput(
const QByteArray &type,
const QUrl &qmlFileUrl);
36 template <
typename TType>
37 inline void addSimpleDelegate(
const QUrl &qmlFileUrl);
39 Q_INVOKABLE
virtual void addSimpleDelegate(
const QByteArray &type,
const QUrl &qmlFileUrl);
42 template <
typename TAliasType,
typename TTargetType>
43 inline void addInputAlias();
48 template <
typename TAliasType,
typename TTargetType>
49 inline void addDelegateAlias();
51 Q_INVOKABLE
virtual void addDelegateAlias(
const QByteArray &alias,
const QByteArray &targetType);
57 template<
typename TType>
63 template<
typename TType>
69 template<
typename TAliasType,
typename TTargetType>
75 template<
typename TAliasType,
typename TTargetType>
83 #endif // QTMVVM_INPUTVIEWFACTORY_H
The primary namespace of the QtMvvm library.