1 #ifndef QQMLACCOUNTMANAGER_H 2 #define QQMLACCOUNTMANAGER_H 4 #include <QtCore/QObject> 6 #include <QtQml/QJSValue> 7 #include <QtQml/QQmlParserStatus> 9 #include <QtDataSync/accountmanager.h> 28 Q_DISABLE_COPY(QQmlAccountManager)
87 void classBegin() override;
89 void componentComplete() override;
112 void setSetupName(
QString setupName);
132 #endif // QQMLACCOUNTMANAGER_H void validChanged(bool valid)
NOTIFY accessor for AccountManager::valid.
The QML import for the QtDataSync QML module.
Q_INVOKABLE void exportAccountTrusted(bool includeServer, const QString &password, const QJSValue &completedFn, const QJSValue &errorFn={})
Export the current account data as trusted export.
Q_INVOKABLE void exportAccount(bool includeServer, const QJSValue &completedFn, const QJSValue &errorFn={})
Export the current account data as untrusted export.
void nodeChanged(QRemoteObjectNode *node)
NOTIFY accessor for AccountManager::node.
Q_INVOKABLE void importAccount(const QJsonObject &importData, const QJSValue &completedFn, bool keepData=false)
Import an account from the given untrusted export data.
Q_INVOKABLE void importAccountTrusted(const QJsonObject &importData, const QString &password, const QJSValue &completedFn, bool keepData=false)
Import an account from the given trusted export data.
The primary namespace of the QtDataSync library.
Q_INVOKABLE bool isTrustedImport(const QJsonObject &importData) const
Checks if the given data is trusted or not.
The QML binding of QtDataSync::AccountManager.
void setupNameChanged(const QString &setupName)
NOTIFY accessor for AccountManager::setupName.
QObject * parent() const const