1// Copyright (C) 2019 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QQMLLOCALSTORAGE_P_H
5#define QQMLLOCALSTORAGE_P_H
6
7#include "qqmllocalstorageglobal_p.h"
8
9//
10// W A R N I N G
11// -------------
12//
13// This file is not part of the Qt API. It exists purely as an
14// implementation detail. This header file may change from version to
15// version without notice, or even be removed.
16//
17// We mean it.
18//
19
20#include <QtCore/qobject.h>
21#include <QtQml/qqml.h>
22#include <QtQml/private/qv4engine_p.h>
23
24QT_BEGIN_NAMESPACE
25
26class Q_QMLLOCALSTORAGE_PRIVATE_EXPORT QQmlLocalStorage : public QObject
27{
28 Q_OBJECT
29 QML_NAMED_ELEMENT(LocalStorage)
30 QML_ADDED_IN_VERSION(2, 0)
31 QML_SINGLETON
32
33public:
34 QQmlLocalStorage(QObject *parent = nullptr) : QObject(parent) {}
35 ~QQmlLocalStorage() override = default;
36
37 Q_INVOKABLE void openDatabaseSync(QQmlV4Function* args);
38};
39
40QT_END_NAMESPACE
41
42#endif // QQMLLOCALSTORAGE_P_H
43

source code of qtdeclarative/src/qmllocalstorage/qqmllocalstorage_p.h