"""
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 enum import Enum
from typing import overload
import PySide6.QtCore

bytes = str


class QCborError(object):
    """
    https://doc.qt.io/qt-6/qcborerror.html

    **Detailed Description**

    **See also** **QCborStreamReader** , **QCborValue** , and
    **QCborParserError** .
    """

    NoError: QCborError.Code = ...
    UnknownError: QCborError.Code = ...
    AdvancePastEnd: QCborError.Code = ...
    InputOutputError: QCborError.Code = ...
    GarbageAtEnd: QCborError.Code = ...
    EndOfFile: QCborError.Code = ...
    UnexpectedBreak: QCborError.Code = ...
    UnknownType: QCborError.Code = ...
    IllegalType: QCborError.Code = ...
    IllegalNumber: QCborError.Code = ...
    IllegalSimpleType: QCborError.Code = ...
    InvalidUtf8String: QCborError.Code = ...
    DataTooLarge: QCborError.Code = ...
    NestingTooDeep: QCborError.Code = ...
    UnsupportedType: QCborError.Code = ...

    class Code(Enum):
        NoError: QCborError.Code = ...
        UnknownError: QCborError.Code = ...
        AdvancePastEnd: QCborError.Code = ...
        InputOutputError: QCborError.Code = ...
        GarbageAtEnd: QCborError.Code = ...
        EndOfFile: QCborError.Code = ...
        UnexpectedBreak: QCborError.Code = ...
        UnknownType: QCborError.Code = ...
        IllegalType: QCborError.Code = ...
        IllegalNumber: QCborError.Code = ...
        IllegalSimpleType: QCborError.Code = ...
        InvalidUtf8String: QCborError.Code = ...
        DataTooLarge: QCborError.Code = ...
        NestingTooDeep: QCborError.Code = ...
        UnsupportedType: QCborError.Code = ...

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

    @overload
    def __init__(self, QCborError: PySide6.QtCore.QCborError) -> None:
        ...

    @staticmethod
    def __copy__() -> None:
        ...

    def toString(self) -> str:
        """
        https://doc.qt.io/qt-6/qcborerror.html#toString

        **QString QCborError::toString() const**

        Returns a text string that matches the error code in this **QCborError**
        object.

        Note: the string is not translated. Applications whose interface allow
        users to parse CBOR streams need to provide their own, translated
        strings.

        **See also** **QCborError::Code** .
        """
        ...
