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
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// Qt-Security score:significant reason:default
4
5#ifndef QQUICKLABSPLATFORMSTANDARDPATHS_P_H
6#define QQUICKLABSPLATFORMSTANDARDPATHS_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtCore/qobject.h>
20#include <QtCore/qstandardpaths.h>
21#include <QtCore/qurl.h>
22#include <QtQml/qqml.h>
23#include <QtCore/private/qglobal_p.h>
24
25#if QT_DEPRECATED_SINCE(6, 4)
26
27QT_BEGIN_NAMESPACE
28
29class QQmlEngine;
30class QJSEngine;
31
32class QQuickLabsPlatformStandardPaths : public QObject
33{
34 Q_OBJECT
35 QML_SINGLETON
36 QML_NAMED_ELEMENT(StandardPaths)
37 QML_EXTENDED_NAMESPACE(QStandardPaths)
38
39public:
40 explicit QQuickLabsPlatformStandardPaths(QObject *parent = nullptr);
41
42 static QObject *create(QQmlEngine *engine, QJSEngine *scriptEngine);
43
44 Q_INVOKABLE static QString displayName(QStandardPaths::StandardLocation type);
45 Q_INVOKABLE static QUrl findExecutable(const QString &executableName, const QStringList &paths = QStringList());
46 Q_INVOKABLE static QUrl locate(QStandardPaths::StandardLocation type, const QString &fileName, QStandardPaths::LocateOptions options = QStandardPaths::LocateFile);
47 Q_INVOKABLE static QList<QUrl> locateAll(QStandardPaths::StandardLocation type, const QString &fileName, QStandardPaths::LocateOptions options = QStandardPaths::LocateFile);
48 Q_INVOKABLE static void setTestModeEnabled(bool testMode);
49 Q_INVOKABLE static QList<QUrl> standardLocations(QStandardPaths::StandardLocation type);
50 Q_INVOKABLE static QUrl writableLocation(QStandardPaths::StandardLocation type);
51
52private:
53 Q_DISABLE_COPY(QQuickLabsPlatformStandardPaths)
54};
55
56QT_END_NAMESPACE
57
58#endif // QT_DEPRECATED_SINCE(6, 4)
59
60#endif // QQUICKLABSPLATFORMSTANDARDPATHS_P_H