|
| 1 | +############################################################################# |
| 2 | +## |
| 3 | +## Copyright (C) 2021 The Qt Company Ltd. |
| 4 | +## Contact: https://www.qt.io/licensing/ |
| 5 | +## |
| 6 | +## This file is part of Qt for Python. |
| 7 | +## |
| 8 | +## $QT_BEGIN_LICENSE:LGPL$ |
| 9 | +## Commercial License Usage |
| 10 | +## Licensees holding valid commercial Qt licenses may use this file in |
| 11 | +## accordance with the commercial license agreement provided with the |
| 12 | +## Software or, alternatively, in accordance with the terms contained in |
| 13 | +## a written agreement between you and The Qt Company. For licensing terms |
| 14 | +## and conditions see https://www.qt.io/terms-conditions. For further |
| 15 | +## information use the contact form at https://www.qt.io/contact-us. |
| 16 | +## |
| 17 | +## GNU Lesser General Public License Usage |
| 18 | +## Alternatively, this file may be used under the terms of the GNU Lesser |
| 19 | +## General Public License version 3 as published by the Free Software |
| 20 | +## Foundation and appearing in the file LICENSE.LGPL3 included in the |
| 21 | +## packaging of this file. Please review the following information to |
| 22 | +## ensure the GNU Lesser General Public License version 3 requirements |
| 23 | +## will be met: https://www.gnu.org/licenses/lgpl-3.0.html. |
| 24 | +## |
| 25 | +## GNU General Public License Usage |
| 26 | +## Alternatively, this file may be used under the terms of the GNU |
| 27 | +## General Public License version 2.0 or (at your option) the GNU General |
| 28 | +## Public license version 3 or any later version approved by the KDE Free |
| 29 | +## Qt Foundation. The licenses are as published by the Free Software |
| 30 | +## Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 |
| 31 | +## included in the packaging of this file. Please review the following |
| 32 | +## information to ensure the GNU General Public License requirements will |
| 33 | +## be met: https://www.gnu.org/licenses/gpl-2.0.html and |
| 34 | +## https://www.gnu.org/licenses/gpl-3.0.html. |
| 35 | +## |
| 36 | +## $QT_END_LICENSE$ |
| 37 | +## |
| 38 | +############################################################################# |
| 39 | +from __future__ import annotations |
| 40 | + |
| 41 | +""" |
| 42 | +This file contains the exact signatures for all functions in module |
| 43 | +PySide6.QtConcurrent, except for defaults which are replaced by "...". |
| 44 | +""" |
| 45 | + |
| 46 | +# Module `PySide6.QtConcurrent` |
| 47 | + |
| 48 | +import PySide6.QtConcurrent |
| 49 | +import PySide6.QtCore |
| 50 | + |
| 51 | +from enum import Enum |
| 52 | +from typing import Optional, overload |
| 53 | +from shiboken6 import Shiboken |
| 54 | + |
| 55 | + |
| 56 | +class QFutureQString(Shiboken.Object): |
| 57 | + |
| 58 | + @overload |
| 59 | + def __init__(self) -> None: ... |
| 60 | + @overload |
| 61 | + def __init__(self, QFutureQString: PySide6.QtConcurrent.QFutureQString) -> None: ... |
| 62 | + |
| 63 | + @staticmethod |
| 64 | + def __copy__() -> None: ... |
| 65 | + def cancel(self) -> None: ... |
| 66 | + def isCanceled(self) -> bool: ... |
| 67 | + def isFinished(self) -> bool: ... |
| 68 | + def isPaused(self) -> bool: ... |
| 69 | + def isRunning(self) -> bool: ... |
| 70 | + def isStarted(self) -> bool: ... |
| 71 | + def isSuspended(self) -> bool: ... |
| 72 | + def isSuspending(self) -> bool: ... |
| 73 | + def isValid(self) -> bool: ... |
| 74 | + def pause(self) -> None: ... |
| 75 | + def progressMaximum(self) -> int: ... |
| 76 | + def progressMinimum(self) -> int: ... |
| 77 | + def progressText(self) -> str: ... |
| 78 | + def progressValue(self) -> int: ... |
| 79 | + def resultCount(self) -> int: ... |
| 80 | + def resume(self) -> None: ... |
| 81 | + def setPaused(self, paused: bool) -> None: ... |
| 82 | + def setSuspended(self, suspend: bool) -> None: ... |
| 83 | + def suspend(self) -> None: ... |
| 84 | + def togglePaused(self) -> None: ... |
| 85 | + def toggleSuspended(self) -> None: ... |
| 86 | + def waitForFinished(self) -> None: ... |
| 87 | + |
| 88 | + |
| 89 | +class QFutureVoid(Shiboken.Object): |
| 90 | + |
| 91 | + @overload |
| 92 | + def __init__(self) -> None: ... |
| 93 | + @overload |
| 94 | + def __init__(self, QFutureVoid: PySide6.QtConcurrent.QFutureVoid) -> None: ... |
| 95 | + |
| 96 | + @staticmethod |
| 97 | + def __copy__() -> None: ... |
| 98 | + def cancel(self) -> None: ... |
| 99 | + def isCanceled(self) -> bool: ... |
| 100 | + def isFinished(self) -> bool: ... |
| 101 | + def isPaused(self) -> bool: ... |
| 102 | + def isRunning(self) -> bool: ... |
| 103 | + def isStarted(self) -> bool: ... |
| 104 | + def isSuspended(self) -> bool: ... |
| 105 | + def isSuspending(self) -> bool: ... |
| 106 | + def isValid(self) -> bool: ... |
| 107 | + def pause(self) -> None: ... |
| 108 | + def progressMaximum(self) -> int: ... |
| 109 | + def progressMinimum(self) -> int: ... |
| 110 | + def progressText(self) -> str: ... |
| 111 | + def progressValue(self) -> int: ... |
| 112 | + def resultCount(self) -> int: ... |
| 113 | + def resume(self) -> None: ... |
| 114 | + def setPaused(self, paused: bool) -> None: ... |
| 115 | + def setSuspended(self, suspend: bool) -> None: ... |
| 116 | + def suspend(self) -> None: ... |
| 117 | + def togglePaused(self) -> None: ... |
| 118 | + def toggleSuspended(self) -> None: ... |
| 119 | + def waitForFinished(self) -> None: ... |
| 120 | + |
| 121 | + |
| 122 | +class QFutureWatcherQString(PySide6.QtCore.QObject): |
| 123 | + |
| 124 | + def __init__(self, _parent: Optional[PySide6.QtCore.QObject] = ...) -> None: ... |
| 125 | + |
| 126 | + def future(self) -> PySide6.QtConcurrent.QFutureQString: ... |
| 127 | + def setFuture(self, future: PySide6.QtConcurrent.QFutureQString) -> None: ... |
| 128 | + |
| 129 | + |
| 130 | +class QFutureWatcherVoid(PySide6.QtCore.QObject): |
| 131 | + |
| 132 | + def __init__(self, _parent: Optional[PySide6.QtCore.QObject] = ...) -> None: ... |
| 133 | + |
| 134 | + |
| 135 | +class QIntList(object): ... |
| 136 | + |
| 137 | + |
| 138 | +class QtConcurrent(Shiboken.Object): |
| 139 | + |
| 140 | + UnorderedReduce : QtConcurrent.ReduceOption = ... # 0x1 |
| 141 | + OrderedReduce : QtConcurrent.ReduceOption = ... # 0x2 |
| 142 | + SequentialReduce : QtConcurrent.ReduceOption = ... # 0x4 |
| 143 | + ThrottleThread : QtConcurrent.ThreadFunctionResult = ... # 0x0 |
| 144 | + ThreadFinished : QtConcurrent.ThreadFunctionResult = ... # 0x1 |
| 145 | + |
| 146 | + class ReduceOption(Enum): |
| 147 | + |
| 148 | + UnorderedReduce : QtConcurrent.ReduceOption = ... # 0x1 |
| 149 | + OrderedReduce : QtConcurrent.ReduceOption = ... # 0x2 |
| 150 | + SequentialReduce : QtConcurrent.ReduceOption = ... # 0x4 |
| 151 | + |
| 152 | + class ReduceOptions(object): ... |
| 153 | + |
| 154 | + class ThreadFunctionResult(Enum): |
| 155 | + |
| 156 | + ThrottleThread : QtConcurrent.ThreadFunctionResult = ... # 0x0 |
| 157 | + ThreadFinished : QtConcurrent.ThreadFunctionResult = ... # 0x1 |
| 158 | + |
| 159 | + |
| 160 | +# eof |
0 commit comments