Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qquicklabsplatformstandardpaths_p.h
Go to the documentation of this file.
1// Copyright (C) 2022 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 QQUICKLABSPLATFORMSTANDARDPATHS_P_H
5#define QQUICKLABSPLATFORMSTANDARDPATHS_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 <QtCore/qobject.h>
19#include <QtCore/qstandardpaths.h>
20#include <QtCore/qurl.h>
21#include <QtQml/qqml.h>
22#include <QtCore/private/qglobal_p.h>
23
24#if QT_DEPRECATED_SINCE(6, 4)
25
27
28class QQmlEngine;
29class QJSEngine;
30
31class QQuickLabsPlatformStandardPaths : public QObject
32{
35 QML_NAMED_ELEMENT(StandardPaths)
37
38public:
39 explicit QQuickLabsPlatformStandardPaths(QObject *parent = nullptr);
40
41 static QObject *create(QQmlEngine *engine, QJSEngine *scriptEngine);
42
44 Q_INVOKABLE static QUrl findExecutable(const QString &executableName, const QStringList &paths = QStringList());
45 Q_INVOKABLE static QUrl locate(QStandardPaths::StandardLocation type, const QString &fileName, QStandardPaths::LocateOptions options = QStandardPaths::LocateFile);
46 Q_INVOKABLE static QList<QUrl> locateAll(QStandardPaths::StandardLocation type, const QString &fileName, QStandardPaths::LocateOptions options = QStandardPaths::LocateFile);
47 Q_INVOKABLE static void setTestModeEnabled(bool testMode);
48 Q_INVOKABLE static QList<QUrl> standardLocations(QStandardPaths::StandardLocation type);
50
51private:
52 Q_DISABLE_COPY(QQuickLabsPlatformStandardPaths)
53};
54
56
57#endif // QT_DEPRECATED_SINCE(6, 4)
58
59#endif // QQUICKLABSPLATFORMSTANDARDPATHS_P_H
The QJSEngine class provides an environment for evaluating JavaScript code.
Definition qjsengine.h:26
\inmodule QtCore
Definition qobject.h:103
The QQmlEngine class provides an environment for instantiating QML components.
Definition qqmlengine.h:57
\inmodule QtCore
StandardLocation
This enum describes the different locations that can be queried using methods such as QStandardPaths:...
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
\inmodule QtCore
Definition qurl.h:94
Combined button and popup list for selecting options.
static QString displayName(CGDirectDisplayID displayID)
QList< QString > QStringList
Constructs a string list that contains the given string, str.
GLenum type
GLsizei const GLuint * paths
#define QML_NAMED_ELEMENT(NAME)
#define QML_SINGLETON
#define QML_EXTENDED_NAMESPACE(EXTENDED_NAMESPACE)
#define Q_OBJECT
#define Q_INVOKABLE
view create()
QJSEngine engine
[0]