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
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
4
5#ifndef QQMLPREVIEWCLIENT_P_H
6#define QQMLPREVIEWCLIENT_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 <private/qqmldebugclient_p.h>
20#include <private/qqmldebugconnection_p.h>
21
23
26{
28 Q_DECLARE_PRIVATE(QQmlPreviewClient)
29public:
41
42 struct FpsInfo {
44 quint16 minSync = std::numeric_limits<quint16>::max();
47
49 quint16 minRender = std::numeric_limits<quint16>::max();
52 };
53
55 void messageReceived(const QByteArray &message) override;
56
57 void sendDirectory(const QString &path, const QStringList &entries);
58 void sendFile(const QString &path, const QByteArray &contents);
59 void sendError(const QString &path);
60
61 void triggerLoad(const QUrl &url);
62 void triggerRerun();
63 void triggerZoom(float factor);
64
66 void request(const QString &path);
67 void error(const QString &message);
68 void fps(const FpsInfo &info);
69};
70
72
73#endif // QQMLPREVIEWCLIENT_P_H
\inmodule QtCore
Definition qbytearray.h:57
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
void messageReceived(const QByteArray &message) override
void triggerZoom(float factor)
QQmlPreviewClient(QQmlDebugConnection *parent)
void request(const QString &path)
void sendFile(const QString &path, const QByteArray &contents)
void fps(const FpsInfo &info)
void sendError(const QString &path)
void error(const QString &message)
void sendDirectory(const QString &path, const QStringList &entries)
void triggerLoad(const QUrl &url)
\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.
GLuint GLsizei const GLchar * message
GLsizei const GLchar *const * path
#define Q_OBJECT
#define Q_SIGNALS
unsigned short quint16
Definition qtypes.h:48
QUrl url("example.com")
[constructor-url-reference]
QHostInfo info
[0]