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
qqmlnotifyingblob_p.h
Go to the documentation of this file.
1// Copyright (C) 2025 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#ifndef QQMLNOTIFYINGBLOB_P_H
6#define QQMLNOTIFYINGBLOB_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/qqmltypeloader_p.h>
20
22
23class Q_QML_EXPORT QQmlNotifyingBlob : public QQmlTypeLoader::Blob
24{
25public:
26 QQmlNotifyingBlob(const QUrl &url, QQmlDataBlob::Type type, QQmlTypeLoader *loader)
27 : Blob(url, type, loader)
28 {}
29
30 struct Q_QML_EXPORT Callback
31 {
32 virtual ~Callback();
33 virtual void ready(QQmlNotifyingBlob *);
34 virtual void progress(QQmlNotifyingBlob *, qreal);
35 };
36
37 void registerCallback(Callback *callback);
38 void unregisterCallback(Callback *callback);
39
40protected:
41 void completed() override;
42 void downloadProgressChanged(qreal) override;
43
44private:
45 QList<Callback *> m_callbacks;
46};
47
48QT_END_NAMESPACE
49
50#endif // QQMLNOTIFYINGBLOB_P_H
Combined button and popup list for selecting options.