Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qdeclarativepluginparameter_p.h
Go to the documentation of this file.
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 QDECLARATIVEPLUGINPARAMETER_P_H
5#define QDECLARATIVEPLUGINPARAMETER_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtPositioningQuick/private/qpositioningquickglobal_p.h>
19#include <QtQml/qqml.h>
20#include <QtCore/QMap>
21#include <QtCore/QString>
22#include <QtCore/QStringList>
23#include <QtCore/QVariant>
24
26
28{
29 Q_OBJECT
30 QML_NAMED_ELEMENT(PluginParameter)
31 QML_ADDED_IN_VERSION(5, 14)
32
33 Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged)
34 Q_PROPERTY(QVariant value READ value WRITE setValue NOTIFY valueChanged)
35
36public:
37 explicit QDeclarativePluginParameter(QObject *parent = 0);
38 ~QDeclarativePluginParameter();
39
40 void setName(const QString &name);
41 QString name() const;
42
43 void setValue(const QVariant &value);
44 QVariant value() const;
45
46 bool isInitialized() const;
47
48Q_SIGNALS:
49 void nameChanged(const QString &name);
50 void valueChanged(const QVariant &value);
51 void initialized();
52
53private:
54 QString name_;
55 QVariant value_;
56};
57
58
59QT_END_NAMESPACE
60
61QML_DECLARE_TYPE(QDeclarativePluginParameter)
62
63#endif // QDECLARATIVEPLUGINPARAMETER_P_H