5#ifndef QQUICKLABSPLATFORMSTANDARDPATHS_P_H
6#define QQUICKLABSPLATFORMSTANDARDPATHS_P_H
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>
25#if QT_DEPRECATED_SINCE(6
, 4
)
32class QQuickLabsPlatformStandardPaths :
public QObject
36 QML_NAMED_ELEMENT(StandardPaths)
37 QML_EXTENDED_NAMESPACE(QStandardPaths)
40 explicit QQuickLabsPlatformStandardPaths(QObject *parent =
nullptr);
42 static QObject *create(QQmlEngine *engine, QJSEngine *scriptEngine);
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);
53 Q_DISABLE_COPY(QQuickLabsPlatformStandardPaths)