All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.websockets.QWebSocketProtocol Maven / Gradle / Ivy

The newest version!
package io.qt.websockets;

import io.qt.*;


/**
 * 

Contains constants related to the WebSocket standard

*

Java wrapper for Qt header file QWebSocketProtocol

*/ public final class QWebSocketProtocol { static { QtJambi_LibraryUtilities.initialize(); } private QWebSocketProtocol() throws java.lang.InstantiationError { throw new java.lang.InstantiationError("Cannot instantiate namespace QWebSocketProtocol."); } /** *

Java wrapper for Qt enum QWebSocketProtocol::CloseCode

*/ public enum CloseCode implements QtEnumerator { /** *

Representing QWebSocketProtocol::CloseCodeNormal

*/ CloseCodeNormal(1000), /** *

Representing QWebSocketProtocol::CloseCodeGoingAway

*/ CloseCodeGoingAway(1001), /** *

Representing QWebSocketProtocol::CloseCodeProtocolError

*/ CloseCodeProtocolError(1002), /** *

Representing QWebSocketProtocol::CloseCodeDatatypeNotSupported

*/ CloseCodeDatatypeNotSupported(1003), /** *

Representing QWebSocketProtocol::CloseCodeReserved1004

*/ CloseCodeReserved1004(1004), /** *

Representing QWebSocketProtocol::CloseCodeMissingStatusCode

*/ CloseCodeMissingStatusCode(1005), /** *

Representing QWebSocketProtocol::CloseCodeAbnormalDisconnection

*/ CloseCodeAbnormalDisconnection(1006), /** *

Representing QWebSocketProtocol::CloseCodeWrongDatatype

*/ CloseCodeWrongDatatype(1007), /** *

Representing QWebSocketProtocol::CloseCodePolicyViolated

*/ CloseCodePolicyViolated(1008), /** *

Representing QWebSocketProtocol::CloseCodeTooMuchData

*/ CloseCodeTooMuchData(1009), /** *

Representing QWebSocketProtocol::CloseCodeMissingExtension

*/ CloseCodeMissingExtension(1010), /** *

Representing QWebSocketProtocol::CloseCodeBadOperation

*/ CloseCodeBadOperation(1011), /** *

Representing QWebSocketProtocol::CloseCodeTlsHandshakeFailed

*/ CloseCodeTlsHandshakeFailed(1015); static { QtJambi_LibraryUtilities.initialize(); } private CloseCode(int value) { this.value = value; } /** * {@inheritDoc} */ @Override public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull CloseCode resolve(int value) { switch (value) { case 1000: return CloseCodeNormal; case 1001: return CloseCodeGoingAway; case 1002: return CloseCodeProtocolError; case 1003: return CloseCodeDatatypeNotSupported; case 1004: return CloseCodeReserved1004; case 1005: return CloseCodeMissingStatusCode; case 1006: return CloseCodeAbnormalDisconnection; case 1007: return CloseCodeWrongDatatype; case 1008: return CloseCodePolicyViolated; case 1009: return CloseCodeTooMuchData; case 1010: return CloseCodeMissingExtension; case 1011: return CloseCodeBadOperation; case 1015: return CloseCodeTlsHandshakeFailed; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QWebSocketProtocol::Version

*/ @QtRejectedEntries({"VersionLatest"}) public enum Version implements QtEnumerator { /** *

Representing QWebSocketProtocol::VersionUnknown

*/ VersionUnknown(-1), /** *

Representing QWebSocketProtocol::Version0

*/ Version0(0), /** *

Representing QWebSocketProtocol::Version4

*/ Version4(4), /** *

Representing QWebSocketProtocol::Version5

*/ Version5(5), /** *

Representing QWebSocketProtocol::Version6

*/ Version6(6), /** *

Representing QWebSocketProtocol::Version7

*/ Version7(7), /** *

Representing QWebSocketProtocol::Version8

*/ Version8(8), /** *

Representing QWebSocketProtocol::Version13

*/ Version13(13), /** *

Representing QWebSocketProtocol::VersionLatest

*/ VersionLatest(13); static { QtJambi_LibraryUtilities.initialize(); } private Version(int value) { this.value = value; } /** * {@inheritDoc} */ @Override public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull Version resolve(int value) { switch (value) { case -1: return VersionUnknown; case 0: return Version0; case 4: return Version4; case 5: return Version5; case 6: return Version6; case 7: return Version7; case 8: return Version8; case 13: return Version13; default: throw new QNoSuchEnumValueException(value); } } private final int value; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy