"""
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

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

Generated by BaiJiFeiLong@gmail.com

Licence: GPLv3
"""
"""
This file contains the exact signatures for all functions in module
PySide6.QtQml, except for defaults which are replaced by "...".
"""
from enum import Enum
from typing import Union, overload
import PySide6.QtCore
import PySide6.QtNetwork
import PySide6.QtQml

bytes = str


class QQmlFile(object):
    Null: QQmlFile.Status = ...
    Ready: QQmlFile.Status = ...
    Error: QQmlFile.Status = ...
    Loading: QQmlFile.Status = ...

    class Status(Enum):
        Null: QQmlFile.Status = ...
        Ready: QQmlFile.Status = ...
        Error: QQmlFile.Status = ...
        Loading: QQmlFile.Status = ...

    @overload
    def __init__(self) -> None:
        ...

    @overload
    def __init__(self, arg__1: PySide6.QtQml.QQmlEngine, arg__2: str) -> None:
        ...

    @overload
    def __init__(
        self, arg__1: PySide6.QtQml.QQmlEngine, arg__2: Union[PySide6.QtCore.QUrl, str]
    ) -> None:
        ...

    @overload
    def clear(self) -> None:
        ...

    @overload
    def clear(self, arg__1: PySide6.QtCore.QObject) -> None:
        ...

    @overload
    def connectDownloadProgress(
        self, arg__1: PySide6.QtCore.QObject, arg__2: bytes
    ) -> bool:
        ...

    @overload
    def connectDownloadProgress(
        self, arg__1: PySide6.QtCore.QObject, arg__2: int
    ) -> bool:
        ...

    @overload
    def connectFinished(self, arg__1: PySide6.QtCore.QObject, arg__2: bytes) -> bool:
        ...

    @overload
    def connectFinished(self, arg__1: PySide6.QtCore.QObject, arg__2: int) -> bool:
        ...

    def data(self) -> bytes:
        ...

    def dataByteArray(self) -> PySide6.QtCore.QByteArray:
        ...

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

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

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

    @overload
    @staticmethod
    def isLocalFile(url: str) -> bool:
        ...

    @overload
    @staticmethod
    def isLocalFile(url: Union[PySide6.QtCore.QUrl, str]) -> bool:
        ...

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

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

    @overload
    @staticmethod
    def isSynchronous(url: str) -> bool:
        ...

    @overload
    @staticmethod
    def isSynchronous(url: Union[PySide6.QtCore.QUrl, str]) -> bool:
        ...

    @overload
    def load(self, arg__1: PySide6.QtQml.QQmlEngine, arg__2: str) -> None:
        ...

    @overload
    def load(
        self, arg__1: PySide6.QtQml.QQmlEngine, arg__2: Union[PySide6.QtCore.QUrl, str]
    ) -> None:
        ...

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

    def status(self) -> PySide6.QtQml.QQmlFile.Status:
        ...

    def url(self) -> PySide6.QtCore.QUrl:
        ...

    @overload
    @staticmethod
    def urlToLocalFileOrQrc(arg__1: str) -> str:
        ...

    @overload
    @staticmethod
    def urlToLocalFileOrQrc(arg__1: Union[PySide6.QtCore.QUrl, str]) -> str:
        ...
