Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
27
QT_BEGIN_NAMESPACE
28
29
class
QQmlEngine;
30
class
QJSEngine;
31
32
class
QQuickLabsPlatformStandardPaths :
public
QObject
33
{
34
Q_OBJECT
35
QML_SINGLETON
36
QML_NAMED_ELEMENT(StandardPaths)
37
QML_ADDED_IN_VERSION(1, 0)
38
QML_EXTENDED_NAMESPACE(QStandardPaths)
39
40
public
:
41
explicit
QQuickLabsPlatformStandardPaths(QObject *parent =
nullptr
);
42
43
static
QObject *create(QQmlEngine *engine, QJSEngine *scriptEngine);
44
45
Q_INVOKABLE
static
QString displayName(QStandardPaths::StandardLocation type);
46
Q_INVOKABLE
static
QUrl findExecutable(
const
QString &executableName,
const
QStringList &paths = QStringList());
47
Q_INVOKABLE
static
QUrl locate(QStandardPaths::StandardLocation type,
const
QString &fileName, QStandardPaths::LocateOptions options = QStandardPaths::LocateFile);
48
Q_INVOKABLE
static
QList<QUrl> locateAll(QStandardPaths::StandardLocation type,
const
QString &fileName, QStandardPaths::LocateOptions options = QStandardPaths::LocateFile);
49
Q_INVOKABLE
static
void
setTestModeEnabled(
bool
testMode);
50
Q_INVOKABLE
static
QList<QUrl> standardLocations(QStandardPaths::StandardLocation type);
51
Q_INVOKABLE
static
QUrl writableLocation(QStandardPaths::StandardLocation type);
52
53
private
:
54
Q_DISABLE_COPY(QQuickLabsPlatformStandardPaths)
55
};
56
57
QT_END_NAMESPACE
58
59
#
endif
// QT_DEPRECATED_SINCE(6, 4)
60
61
#
endif
// QQUICKLABSPLATFORMSTANDARDPATHS_P_H
qtdeclarative
src
labs
platform
qquicklabsplatformstandardpaths_p.h
Generated on
for Qt by
1.18.0