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
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
22QT_BEGIN_NAMESPACE
23
24class QQmlPreviewClientPrivate;
26{
27 Q_OBJECT
28 Q_DECLARE_PRIVATE(QQmlPreviewClient)
29public:
41
53
54 QQmlPreviewClient(QQmlDebugConnection *parent);
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
71QT_END_NAMESPACE
72
73#endif // QQMLPREVIEWCLIENT_P_H
void messageReceived(const QByteArray &message) override
void triggerZoom(float factor)
QQmlPreviewClient(QQmlDebugConnection *parent)
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)