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
qqmlpreviewclient_p.h
Go to the documentation of this file.
1// Copyright (C) 2018 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
4
5
6#ifndef QQMLPREVIEWCLIENT_P_H
7#define QQMLPREVIEWCLIENT_P_H
8
9//
10// W A R N I N G
11// -------------
12//
13// This file is not part of the Qt API. It exists purely as an
14// implementation detail. This header file may change from version to
15// version without notice, or even be removed.
16//
17// We mean it.
18//
19
20#include <private/qqmldebugclient_p.h>
21#include <private/qqmldebugconnection_p.h>
22
23QT_BEGIN_NAMESPACE
24
25class QQmlPreviewClientPrivate;
27{
28 Q_OBJECT
29 Q_DECLARE_PRIVATE(QQmlPreviewClient)
30public:
46
47 struct Settings {
49 };
50
62
63 QQmlPreviewClient(QQmlDebugConnection *parent);
64 void messageReceived(const QByteArray &message) override;
65
66 void sendDirectory(const QString &path, const QStringList &entries);
67 void sendFile(const QString &path, const QByteArray &contents);
68 void sendError(const QString &path);
69 void sendConfiguration(const Settings &settings);
70
71 void triggerLoad(const QUrl &url);
72 void triggerRerun();
73 void triggerZoom(float factor);
74 void triggerAnimationSpeed(float factor);
75
77 void request(const QString &path);
78 void error(const QString &message);
79 void fps(const FpsInfo &info);
80 void confirmation(const Settings &settings);
81 void hotReloadFailure(const QString &reason);
82};
83
84QT_END_NAMESPACE
85
86#endif // QQMLPREVIEWCLIENT_P_H
void messageReceived(const QByteArray &message) override
void triggerZoom(float factor)
QQmlPreviewClient(QQmlDebugConnection *parent)
void triggerAnimationSpeed(float factor)
void sendFile(const QString &path, const QByteArray &contents)
void fps(const FpsInfo &info)
void confirmation(const Settings &settings)
void sendError(const QString &path)
void error(const QString &message)
void sendDirectory(const QString &path, const QStringList &entries)
void sendConfiguration(const Settings &settings)
void triggerLoad(const QUrl &url)
void hotReloadFailure(const QString &reason)
Combined button and popup list for selecting options.