"""
PySide stub files generated by **IceSpringPySideStubs**

Home: https://baijifeilong.github.io/2022/01/06/ice-spring-pyside-stubs/index.html

Github: https://github.com/baijifeilong/IceSpringPySideStubs

PyPI(PySide2): https://pypi.org/project/IceSpringPySideStubs-PySide2

PyPI(PySide6): https://pypi.org/project/IceSpringPySideStubs-PySide6

Generated by BaiJiFeiLong@gmail.com

Licence: GPLv3
"""
from typing import Optional, Union, overload
import PySide6.QtCore
import PySide6.QtNetwork
import PySide6.QtNetworkAuth

bytes = str


class QOAuthHttpServerReplyHandler(PySide6.QtNetworkAuth.QOAuthOobReplyHandler):
    @overload
    def __init__(
        self,
        address: Union[
            (
                PySide6.QtNetwork.QHostAddress,
                PySide6.QtNetwork.QHostAddress.SpecialAddress,
            )
        ],
        port: int,
        parent: Optional[PySide6.QtCore.QObject] = ...,
    ) -> None:
        ...

    @overload
    def __init__(self, parent: Optional[PySide6.QtCore.QObject] = ...) -> None:
        ...

    @overload
    def __init__(
        self, port: int, parent: Optional[PySide6.QtCore.QObject] = ...
    ) -> None:
        ...

    def callback(self) -> str:
        ...

    def callbackPath(self) -> str:
        ...

    def callbackText(self) -> str:
        ...

    def close(self) -> None:
        ...

    def isListening(self) -> bool:
        ...

    def listen(
        self,
        address: Union[
            (
                PySide6.QtNetwork.QHostAddress,
                PySide6.QtNetwork.QHostAddress.SpecialAddress,
            )
        ] = ...,
        port: int = ...,
    ) -> bool:
        ...

    def port(self) -> int:
        ...

    def setCallbackPath(self, path: str) -> None:
        ...

    def setCallbackText(self, text: str) -> None:
        ...
