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
qfuturewatcher_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 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#ifndef QFUTUREWATCHER_P_H
5#define QFUTUREWATCHER_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtCore/qfuturewatcher.h>
19
21#include <qlist.h>
22
23#include <private/qobject_p.h>
24
26
27QT_BEGIN_NAMESPACE
28
29class QFutureWatcherBasePrivate : public QObjectPrivate,
30 public QFutureCallOutInterface
31{
32 Q_DECLARE_PUBLIC(QFutureWatcherBase)
33
34public:
35 QFutureWatcherBasePrivate();
36
37 void postCallOutEvent(const QFutureCallOutEvent &callOutEvent) override;
38 void callOutInterfaceDisconnected() override;
39
40 void sendCallOutEvent(QFutureCallOutEvent *event);
41
42 QAtomicInt pendingResultsReady;
43 int maximumPendingResultsReady;
44
45 QAtomicInt resultAtConnected;
46};
47
48QT_END_NAMESPACE
49
50#endif
void setFuture(const QFuture< T > &future)
Starts watching the given future.
const QFutureInterfaceBase & futureInterface() const override
QFutureInterfaceBase & futureInterface() override
T resultAt(int index) const
QFuture< T > future() const
Returns the watched future.
QFutureWatcher(QObject *_parent=nullptr)
Constructs a new QFutureWatcher with the given parent.
~QFutureWatcher()
Destroys the QFutureWatcher.
Combined button and popup list for selecting options.
QT_REQUIRE_CONFIG(animation)
QFuture< void > future
[5]