
io.qt.core.QUrl Maven / Gradle / Ivy
package io.qt.core;
/**
* Convenient interface for working with URLs
* Java wrapper for Qt class QUrl
*/
public class QUrl extends io.qt.QtObject
implements java.lang.Comparable,
java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Java wrapper for Qt enum QUrl::AceProcessingOption
*
* @see AceProcessingOptions
*/
public enum AceProcessingOption implements io.qt.QtFlagEnumerator {
IgnoreIDNWhitelist(1),
AceTransitionalProcessing(2);
private AceProcessingOption(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Create a QFlags of the enum entry.
* @return QFlags
*/
public AceProcessingOptions asFlags() {
return new AceProcessingOptions(value);
}
/**
* Combines this entry with other enum entry.
* @param e enum entry
* @return new flag
*/
public AceProcessingOptions combined(AceProcessingOption e) {
return new AceProcessingOptions(this, e);
}
/**
* Creates a new {@link AceProcessingOptions} from the entries.
* @param values entries
* @return new flag
*/
public static AceProcessingOptions flags(AceProcessingOption ... values) {
return new AceProcessingOptions(values);
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static AceProcessingOption resolve(int value) {
switch (value) {
case 1: return IgnoreIDNWhitelist;
case 2: return AceTransitionalProcessing;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* QFlags type for enum {@link AceProcessingOption}
*/
public static final class AceProcessingOptions extends io.qt.QFlags implements Comparable {
private static final long serialVersionUID = 0x5ec941113e830143L;
/**
* Creates a new AceProcessingOptions where the flags in args
are set.
* @param args enum entries
*/
public AceProcessingOptions(AceProcessingOption ... args){
super(args);
}
/**
* Creates a new AceProcessingOptions with given value
.
* @param value
*/
public AceProcessingOptions(int value) {
super(value);
}
/**
* Combines this flags with enum entry.
* @param e enum entry
* @return new AceProcessingOptions
*/
@Override
public final AceProcessingOptions combined(AceProcessingOption e){
return new AceProcessingOptions(value() | e.value());
}
/**
* Sets the flag e
* @param e enum entry
* @return this
*/
public final AceProcessingOptions setFlag(AceProcessingOption e){
super.setFlag(e);
return this;
}
/**
* Sets or clears the flag flag
* @param e enum entry
* @param on set (true) or clear (false)
* @return this
*/
public final AceProcessingOptions setFlag(AceProcessingOption e, boolean on){
super.setFlag(e, on);
return this;
}
/**
* Returns an array of flag objects represented by this AceProcessingOptions.
* @return array of enum entries
*/
@Override
public final AceProcessingOption[] flags(){
return super.flags(AceProcessingOption.values());
}
/**
* {@inheritDoc}
*/
@Override
public final AceProcessingOptions clone(){
return new AceProcessingOptions(value());
}
/**
* {@inheritDoc}
*/
@Override
public final int compareTo(AceProcessingOptions other){
return Integer.compare(value(), other.value());
}
}
/**
* Java wrapper for Qt enum QUrl::ComponentFormattingOption
*
* @see ComponentFormattingOptions
*/
public enum ComponentFormattingOption implements io.qt.QtFlagEnumerator, FormattingOption {
PrettyDecoded(0),
EncodeSpaces(1048576),
EncodeUnicode(2097152),
EncodeDelimiters(12582912),
EncodeReserved(16777216),
DecodeReserved(33554432),
FullyEncoded(32505856),
FullyDecoded(133169152);
private ComponentFormattingOption(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Create a QFlags of the enum entry.
* @return QFlags
*/
public ComponentFormattingOptions asFlags() {
return new ComponentFormattingOptions(value);
}
/**
* Combines this entry with other enum entry.
* @param e enum entry
* @return new flag
*/
public ComponentFormattingOptions combined(ComponentFormattingOption e) {
return new ComponentFormattingOptions(this, e);
}
/**
* Creates a new {@link ComponentFormattingOptions} from the entries.
* @param values entries
* @return new flag
*/
public static ComponentFormattingOptions flags(ComponentFormattingOption ... values) {
return new ComponentFormattingOptions(values);
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static ComponentFormattingOption resolve(int value) {
switch (value) {
case 0: return PrettyDecoded;
case 1048576: return EncodeSpaces;
case 2097152: return EncodeUnicode;
case 12582912: return EncodeDelimiters;
case 16777216: return EncodeReserved;
case 33554432: return DecodeReserved;
case 32505856: return FullyEncoded;
case 133169152: return FullyDecoded;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* QFlags type for enum {@link ComponentFormattingOption}
*/
public static final class ComponentFormattingOptions extends io.qt.QFlags implements Comparable {
private static final long serialVersionUID = 0xc8b167b542824170L;
/**
* Creates a new ComponentFormattingOptions where the flags in args
are set.
* @param args enum entries
*/
public ComponentFormattingOptions(ComponentFormattingOption ... args){
super(args);
}
/**
* Creates a new ComponentFormattingOptions with given value
.
* @param value
*/
public ComponentFormattingOptions(int value) {
super(value);
}
/**
* Combines this flags with enum entry.
* @param e enum entry
* @return new ComponentFormattingOptions
*/
@Override
public final ComponentFormattingOptions combined(ComponentFormattingOption e){
return new ComponentFormattingOptions(value() | e.value());
}
/**
* Sets the flag e
* @param e enum entry
* @return this
*/
public final ComponentFormattingOptions setFlag(ComponentFormattingOption e){
super.setFlag(e);
return this;
}
/**
* Sets or clears the flag flag
* @param e enum entry
* @param on set (true) or clear (false)
* @return this
*/
public final ComponentFormattingOptions setFlag(ComponentFormattingOption e, boolean on){
super.setFlag(e, on);
return this;
}
/**
* Returns an array of flag objects represented by this ComponentFormattingOptions.
* @return array of enum entries
*/
@Override
public final ComponentFormattingOption[] flags(){
return super.flags(ComponentFormattingOption.values());
}
/**
* {@inheritDoc}
*/
@Override
public final ComponentFormattingOptions clone(){
return new ComponentFormattingOptions(value());
}
/**
* {@inheritDoc}
*/
@Override
public final int compareTo(ComponentFormattingOptions other){
return Integer.compare(value(), other.value());
}
}
/**
* Java wrapper for Qt enum QUrl::ParsingMode
*/
public enum ParsingMode implements io.qt.QtEnumerator {
TolerantMode(0),
StrictMode(1),
DecodedMode(2);
private ParsingMode(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static ParsingMode resolve(int value) {
switch (value) {
case 0: return TolerantMode;
case 1: return StrictMode;
case 2: return DecodedMode;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QUrl::UrlFormattingOption
*/
public enum UrlFormattingOption implements io.qt.QtEnumerator, FormattingOption {
None(0),
RemoveScheme(1),
RemovePassword(2),
RemoveUserInfo(6),
RemovePort(8),
RemoveAuthority(30),
RemovePath(32),
RemoveQuery(64),
RemoveFragment(128),
PreferLocalFile(512),
StripTrailingSlash(1024),
RemoveFilename(2048),
NormalizePathSegments(4096);
private UrlFormattingOption(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static UrlFormattingOption resolve(int value) {
switch (value) {
case 0: return None;
case 1: return RemoveScheme;
case 2: return RemovePassword;
case 6: return RemoveUserInfo;
case 8: return RemovePort;
case 30: return RemoveAuthority;
case 32: return RemovePath;
case 64: return RemoveQuery;
case 128: return RemoveFragment;
case 512: return PreferLocalFile;
case 1024: return StripTrailingSlash;
case 2048: return RemoveFilename;
case 4096: return NormalizePathSegments;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QUrl::UserInputResolutionOption
*
* @see UserInputResolutionOptions
*/
public enum UserInputResolutionOption implements io.qt.QtFlagEnumerator {
DefaultResolution(0),
AssumeLocalFile(1);
private UserInputResolutionOption(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Create a QFlags of the enum entry.
* @return QFlags
*/
public UserInputResolutionOptions asFlags() {
return new UserInputResolutionOptions(value);
}
/**
* Combines this entry with other enum entry.
* @param e enum entry
* @return new flag
*/
public UserInputResolutionOptions combined(UserInputResolutionOption e) {
return new UserInputResolutionOptions(this, e);
}
/**
* Creates a new {@link UserInputResolutionOptions} from the entries.
* @param values entries
* @return new flag
*/
public static UserInputResolutionOptions flags(UserInputResolutionOption ... values) {
return new UserInputResolutionOptions(values);
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static UserInputResolutionOption resolve(int value) {
switch (value) {
case 0: return DefaultResolution;
case 1: return AssumeLocalFile;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* QFlags type for enum {@link UserInputResolutionOption}
*/
public static final class UserInputResolutionOptions extends io.qt.QFlags implements Comparable {
private static final long serialVersionUID = 0xa1ce052c65ef8a37L;
/**
* Creates a new UserInputResolutionOptions where the flags in args
are set.
* @param args enum entries
*/
public UserInputResolutionOptions(UserInputResolutionOption ... args){
super(args);
}
/**
* Creates a new UserInputResolutionOptions with given value
.
* @param value
*/
public UserInputResolutionOptions(int value) {
super(value);
}
/**
* Combines this flags with enum entry.
* @param e enum entry
* @return new UserInputResolutionOptions
*/
@Override
public final UserInputResolutionOptions combined(UserInputResolutionOption e){
return new UserInputResolutionOptions(value() | e.value());
}
/**
* Sets the flag e
* @param e enum entry
* @return this
*/
public final UserInputResolutionOptions setFlag(UserInputResolutionOption e){
super.setFlag(e);
return this;
}
/**
* Sets or clears the flag flag
* @param e enum entry
* @param on set (true) or clear (false)
* @return this
*/
public final UserInputResolutionOptions setFlag(UserInputResolutionOption e, boolean on){
super.setFlag(e, on);
return this;
}
/**
* Returns an array of flag objects represented by this UserInputResolutionOptions.
* @return array of enum entries
*/
@Override
public final UserInputResolutionOption[] flags(){
return super.flags(UserInputResolutionOption.values());
}
/**
* {@inheritDoc}
*/
@Override
public final UserInputResolutionOptions clone(){
return new UserInputResolutionOptions(value());
}
/**
* {@inheritDoc}
*/
@Override
public final int compareTo(UserInputResolutionOptions other){
return Integer.compare(value(), other.value());
}
}
/**
* See QUrl::QUrl()
*/
public QUrl(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QUrl instance);
/**
* Overloaded constructor for {@link #QUrl(java.lang.String, io.qt.core.QUrl.ParsingMode)}
* with mode = io.qt.core.QUrl.ParsingMode.TolerantMode
.
*/
public QUrl(java.lang.String url) {
this(url, io.qt.core.QUrl.ParsingMode.TolerantMode);
}
/**
* See QUrl::QUrl(QString,QUrl::ParsingMode)
*/
public QUrl(java.lang.String url, io.qt.core.QUrl.ParsingMode mode){
super((QPrivateConstructor)null);
initialize_native(this, url, mode);
}
private native static void initialize_native(QUrl instance, java.lang.String url, io.qt.core.QUrl.ParsingMode mode);
/**
* See QUrl::QUrl(QUrl)
*/
public QUrl(io.qt.core.QUrl copy){
super((QPrivateConstructor)null);
initialize_native(this, copy);
}
private native static void initialize_native(QUrl instance, io.qt.core.QUrl copy);
/**
* See QUrl::adjusted(QUrl::FormattingOptions)const
*/
@io.qt.QtUninvokable
public final io.qt.core.QUrl adjusted(int options){
return adjusted_native_QUrl_FormattingOptions_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), options);
}
@io.qt.QtUninvokable
private native io.qt.core.QUrl adjusted_native_QUrl_FormattingOptions_constfct(long __this__nativeId, int options);
/**
* Overloaded function for {@link #authority(io.qt.core.QUrl.ComponentFormattingOptions)}.
*/
@io.qt.QtUninvokable
public final java.lang.String authority(io.qt.core.QUrl.ComponentFormattingOption ... options){
return authority(new io.qt.core.QUrl.ComponentFormattingOptions(options));
}
/**
* Overloaded function for {@link #authority(io.qt.core.QUrl.ComponentFormattingOptions)}
* with options = new io.qt.core.QUrl.ComponentFormattingOptions(0)
.
*/
@io.qt.QtUninvokable
public final java.lang.String authority() {
return authority(new io.qt.core.QUrl.ComponentFormattingOptions(0));
}
/**
* See QUrl::authority(ComponentFormattingOptions)const
*/
@io.qt.QtUninvokable
public final java.lang.String authority(io.qt.core.QUrl.ComponentFormattingOptions options){
return authority_native_QFlags_QUrl_ComponentFormattingOption__constfct(QtJambi_LibraryUtilities.internal.nativeId(this), options.value());
}
@io.qt.QtUninvokable
private native java.lang.String authority_native_QFlags_QUrl_ComponentFormattingOption__constfct(long __this__nativeId, int options);
/**
* See QUrl::clear()
*/
@io.qt.QtUninvokable
public final void clear(){
clear_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void clear_native(long __this__nativeId);
@io.qt.QtUninvokable
public final void detach(){
detach_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void detach_native(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final java.lang.String errorString(){
return errorString_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String errorString_native_constfct(long __this__nativeId);
/**
* Overloaded function for {@link #fileName(io.qt.core.QUrl.ComponentFormattingOptions)}.
*/
@io.qt.QtUninvokable
public final java.lang.String fileName(io.qt.core.QUrl.ComponentFormattingOption ... options){
return fileName(new io.qt.core.QUrl.ComponentFormattingOptions(options));
}
/**
* Overloaded function for {@link #fileName(io.qt.core.QUrl.ComponentFormattingOptions)}
* with options = new io.qt.core.QUrl.ComponentFormattingOptions(133169152)
.
*/
@io.qt.QtUninvokable
public final java.lang.String fileName() {
return fileName(new io.qt.core.QUrl.ComponentFormattingOptions(133169152));
}
/**
* See QUrl::fileName(ComponentFormattingOptions)const
*/
@io.qt.QtUninvokable
public final java.lang.String fileName(io.qt.core.QUrl.ComponentFormattingOptions options){
return fileName_native_QFlags_QUrl_ComponentFormattingOption__constfct(QtJambi_LibraryUtilities.internal.nativeId(this), options.value());
}
@io.qt.QtUninvokable
private native java.lang.String fileName_native_QFlags_QUrl_ComponentFormattingOption__constfct(long __this__nativeId, int options);
/**
* Overloaded function for {@link #fragment(io.qt.core.QUrl.ComponentFormattingOptions)}.
*/
@io.qt.QtUninvokable
public final java.lang.String fragment(io.qt.core.QUrl.ComponentFormattingOption ... options){
return fragment(new io.qt.core.QUrl.ComponentFormattingOptions(options));
}
/**
* Overloaded function for {@link #fragment(io.qt.core.QUrl.ComponentFormattingOptions)}
* with options = new io.qt.core.QUrl.ComponentFormattingOptions(0)
.
*/
@io.qt.QtUninvokable
public final java.lang.String fragment() {
return fragment(new io.qt.core.QUrl.ComponentFormattingOptions(0));
}
/**
* See QUrl::fragment(ComponentFormattingOptions)const
*/
@io.qt.QtUninvokable
public final java.lang.String fragment(io.qt.core.QUrl.ComponentFormattingOptions options){
return fragment_native_QFlags_QUrl_ComponentFormattingOption__constfct(QtJambi_LibraryUtilities.internal.nativeId(this), options.value());
}
@io.qt.QtUninvokable
private native java.lang.String fragment_native_QFlags_QUrl_ComponentFormattingOption__constfct(long __this__nativeId, int options);
/**
*
*/
@io.qt.QtUninvokable
public final boolean hasFragment(){
return hasFragment_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean hasFragment_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final boolean hasQuery(){
return hasQuery_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean hasQuery_native_constfct(long __this__nativeId);
/**
* Overloaded function for {@link #host(io.qt.core.QUrl.ComponentFormattingOptions)}.
*/
@io.qt.QtUninvokable
public final java.lang.String host(io.qt.core.QUrl.ComponentFormattingOption ... arg__1){
return host(new io.qt.core.QUrl.ComponentFormattingOptions(arg__1));
}
/**
* Overloaded function for {@link #host(io.qt.core.QUrl.ComponentFormattingOptions)}
* with arg__1 = new io.qt.core.QUrl.ComponentFormattingOptions(133169152)
.
*/
@io.qt.QtUninvokable
public final java.lang.String host() {
return host(new io.qt.core.QUrl.ComponentFormattingOptions(133169152));
}
/**
* See QUrl::host(ComponentFormattingOptions)const
*/
@io.qt.QtUninvokable
public final java.lang.String host(io.qt.core.QUrl.ComponentFormattingOptions arg__1){
return host_native_QFlags_QUrl_ComponentFormattingOption__constfct(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value());
}
@io.qt.QtUninvokable
private native java.lang.String host_native_QFlags_QUrl_ComponentFormattingOption__constfct(long __this__nativeId, int arg__1);
@io.qt.QtUninvokable
public final boolean isDetached(){
return isDetached_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isDetached_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final boolean isEmpty(){
return isEmpty_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isEmpty_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final boolean isLocalFile(){
return isLocalFile_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isLocalFile_native_constfct(long __this__nativeId);
/**
* See QUrl::isParentOf(QUrl)const
*/
@io.qt.QtUninvokable
public final boolean isParentOf(io.qt.core.QUrl url){
return isParentOf_native_cref_QUrl_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(url));
}
@io.qt.QtUninvokable
private native boolean isParentOf_native_cref_QUrl_constfct(long __this__nativeId, long url);
/**
*
*/
@io.qt.QtUninvokable
public final boolean isRelative(){
return isRelative_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isRelative_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final boolean isValid(){
return isValid_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isValid_native_constfct(long __this__nativeId);
/**
* See QUrl::matches(QUrl,QUrl::FormattingOptions)const
*/
@io.qt.QtUninvokable
public final boolean matches(io.qt.core.QUrl url, int options){
return matches_native_cref_QUrl_QUrl_FormattingOptions_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(url), options);
}
@io.qt.QtUninvokable
private native boolean matches_native_cref_QUrl_QUrl_FormattingOptions_constfct(long __this__nativeId, long url, int options);
@io.qt.QtUninvokable
private final boolean operator_less(io.qt.core.QUrl url){
return operator_less_native_cref_QUrl_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(url));
}
@io.qt.QtUninvokable
private native boolean operator_less_native_cref_QUrl_constfct(long __this__nativeId, long url);
@io.qt.QtUninvokable
public void writeTo(io.qt.core.QDataStream arg__1){
java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected.");
writeTo_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native void writeTo_native_ref_QDataStream(long __this__nativeId, long arg__1);
/**
* See QUrl::operator==(QUrl)const
*/
@io.qt.QtUninvokable
private final boolean operator_equal(io.qt.core.QUrl url){
return operator_equal_native_cref_QUrl_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(url));
}
@io.qt.QtUninvokable
private native boolean operator_equal_native_cref_QUrl_constfct(long __this__nativeId, long url);
@io.qt.QtUninvokable
public void readFrom(io.qt.core.QDataStream arg__1){
java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected.");
readFrom_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native void readFrom_native_ref_QDataStream(long __this__nativeId, long arg__1);
/**
* Overloaded function for {@link #password(io.qt.core.QUrl.ComponentFormattingOptions)}.
*/
@io.qt.QtUninvokable
public final java.lang.String password(io.qt.core.QUrl.ComponentFormattingOption ... arg__1){
return password(new io.qt.core.QUrl.ComponentFormattingOptions(arg__1));
}
/**
* Overloaded function for {@link #password(io.qt.core.QUrl.ComponentFormattingOptions)}
* with arg__1 = new io.qt.core.QUrl.ComponentFormattingOptions(133169152)
.
*/
@io.qt.QtUninvokable
public final java.lang.String password() {
return password(new io.qt.core.QUrl.ComponentFormattingOptions(133169152));
}
/**
* See QUrl::password(ComponentFormattingOptions)const
*/
@io.qt.QtUninvokable
public final java.lang.String password(io.qt.core.QUrl.ComponentFormattingOptions arg__1){
return password_native_QFlags_QUrl_ComponentFormattingOption__constfct(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value());
}
@io.qt.QtUninvokable
private native java.lang.String password_native_QFlags_QUrl_ComponentFormattingOption__constfct(long __this__nativeId, int arg__1);
/**
* Overloaded function for {@link #path(io.qt.core.QUrl.ComponentFormattingOptions)}.
*/
@io.qt.QtUninvokable
public final java.lang.String path(io.qt.core.QUrl.ComponentFormattingOption ... options){
return path(new io.qt.core.QUrl.ComponentFormattingOptions(options));
}
/**
* Overloaded function for {@link #path(io.qt.core.QUrl.ComponentFormattingOptions)}
* with options = new io.qt.core.QUrl.ComponentFormattingOptions(133169152)
.
*/
@io.qt.QtUninvokable
public final java.lang.String path() {
return path(new io.qt.core.QUrl.ComponentFormattingOptions(133169152));
}
/**
* See QUrl::path(ComponentFormattingOptions)const
*/
@io.qt.QtUninvokable
public final java.lang.String path(io.qt.core.QUrl.ComponentFormattingOptions options){
return path_native_QFlags_QUrl_ComponentFormattingOption__constfct(QtJambi_LibraryUtilities.internal.nativeId(this), options.value());
}
@io.qt.QtUninvokable
private native java.lang.String path_native_QFlags_QUrl_ComponentFormattingOption__constfct(long __this__nativeId, int options);
/**
* Overloaded function for {@link #port(int)}
* with defaultPort = -1
.
*/
@io.qt.QtUninvokable
public final int port() {
return port((int)-1);
}
/**
*
*/
@io.qt.QtUninvokable
public final int port(int defaultPort){
return port_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), defaultPort);
}
@io.qt.QtUninvokable
private native int port_native_int_constfct(long __this__nativeId, int defaultPort);
/**
* Overloaded function for {@link #query(io.qt.core.QUrl.ComponentFormattingOptions)}.
*/
@io.qt.QtUninvokable
public final java.lang.String query(io.qt.core.QUrl.ComponentFormattingOption ... arg__1){
return query(new io.qt.core.QUrl.ComponentFormattingOptions(arg__1));
}
/**
* Overloaded function for {@link #query(io.qt.core.QUrl.ComponentFormattingOptions)}
* with arg__1 = new io.qt.core.QUrl.ComponentFormattingOptions(0)
.
*/
@io.qt.QtUninvokable
public final java.lang.String query() {
return query(new io.qt.core.QUrl.ComponentFormattingOptions(0));
}
/**
* See QUrl::query(ComponentFormattingOptions)const
*/
@io.qt.QtUninvokable
public final java.lang.String query(io.qt.core.QUrl.ComponentFormattingOptions arg__1){
return query_native_QFlags_QUrl_ComponentFormattingOption__constfct(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value());
}
@io.qt.QtUninvokable
private native java.lang.String query_native_QFlags_QUrl_ComponentFormattingOption__constfct(long __this__nativeId, int arg__1);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QUrl resolved(io.qt.core.QUrl relative){
return resolved_native_cref_QUrl_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(relative));
}
@io.qt.QtUninvokable
private native io.qt.core.QUrl resolved_native_cref_QUrl_constfct(long __this__nativeId, long relative);
/**
*
*/
@io.qt.QtUninvokable
public final java.lang.String scheme(){
return scheme_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String scheme_native_constfct(long __this__nativeId);
/**
* Overloaded function for {@link #setAuthority(java.lang.String, io.qt.core.QUrl.ParsingMode)}
* with mode = io.qt.core.QUrl.ParsingMode.TolerantMode
.
*/
@io.qt.QtUninvokable
public final void setAuthority(java.lang.String authority) {
setAuthority(authority, io.qt.core.QUrl.ParsingMode.TolerantMode);
}
/**
* See QUrl::setAuthority(QString,QUrl::ParsingMode)
*/
@io.qt.QtUninvokable
public final void setAuthority(java.lang.String authority, io.qt.core.QUrl.ParsingMode mode){
setAuthority_native_cref_QString_QUrl_ParsingMode(QtJambi_LibraryUtilities.internal.nativeId(this), authority, mode.value());
}
@io.qt.QtUninvokable
private native void setAuthority_native_cref_QString_QUrl_ParsingMode(long __this__nativeId, java.lang.String authority, int mode);
/**
* Overloaded function for {@link #setFragment(java.lang.String, io.qt.core.QUrl.ParsingMode)}
* with mode = io.qt.core.QUrl.ParsingMode.TolerantMode
.
*/
@io.qt.QtUninvokable
public final void setFragment(java.lang.String fragment) {
setFragment(fragment, io.qt.core.QUrl.ParsingMode.TolerantMode);
}
/**
* See QUrl::setFragment(QString,QUrl::ParsingMode)
*/
@io.qt.QtUninvokable
public final void setFragment(java.lang.String fragment, io.qt.core.QUrl.ParsingMode mode){
setFragment_native_cref_QString_QUrl_ParsingMode(QtJambi_LibraryUtilities.internal.nativeId(this), fragment, mode.value());
}
@io.qt.QtUninvokable
private native void setFragment_native_cref_QString_QUrl_ParsingMode(long __this__nativeId, java.lang.String fragment, int mode);
/**
* Overloaded function for {@link #setHost(java.lang.String, io.qt.core.QUrl.ParsingMode)}
* with mode = io.qt.core.QUrl.ParsingMode.DecodedMode
.
*/
@io.qt.QtUninvokable
public final void setHost(java.lang.String host) {
setHost(host, io.qt.core.QUrl.ParsingMode.DecodedMode);
}
/**
* See QUrl::setHost(QString,QUrl::ParsingMode)
*/
@io.qt.QtUninvokable
public final void setHost(java.lang.String host, io.qt.core.QUrl.ParsingMode mode){
setHost_native_cref_QString_QUrl_ParsingMode(QtJambi_LibraryUtilities.internal.nativeId(this), host, mode.value());
}
@io.qt.QtUninvokable
private native void setHost_native_cref_QString_QUrl_ParsingMode(long __this__nativeId, java.lang.String host, int mode);
/**
* Overloaded function for {@link #setPassword(java.lang.String, io.qt.core.QUrl.ParsingMode)}
* with mode = io.qt.core.QUrl.ParsingMode.DecodedMode
.
*/
@io.qt.QtUninvokable
public final void setPassword(java.lang.String password) {
setPassword(password, io.qt.core.QUrl.ParsingMode.DecodedMode);
}
/**
* See QUrl::setPassword(QString,QUrl::ParsingMode)
*/
@io.qt.QtUninvokable
public final void setPassword(java.lang.String password, io.qt.core.QUrl.ParsingMode mode){
setPassword_native_cref_QString_QUrl_ParsingMode(QtJambi_LibraryUtilities.internal.nativeId(this), password, mode.value());
}
@io.qt.QtUninvokable
private native void setPassword_native_cref_QString_QUrl_ParsingMode(long __this__nativeId, java.lang.String password, int mode);
/**
* Overloaded function for {@link #setPath(java.lang.String, io.qt.core.QUrl.ParsingMode)}
* with mode = io.qt.core.QUrl.ParsingMode.DecodedMode
.
*/
@io.qt.QtUninvokable
public final void setPath(java.lang.String path) {
setPath(path, io.qt.core.QUrl.ParsingMode.DecodedMode);
}
/**
* See QUrl::setPath(QString,QUrl::ParsingMode)
*/
@io.qt.QtUninvokable
public final void setPath(java.lang.String path, io.qt.core.QUrl.ParsingMode mode){
setPath_native_cref_QString_QUrl_ParsingMode(QtJambi_LibraryUtilities.internal.nativeId(this), path, mode.value());
}
@io.qt.QtUninvokable
private native void setPath_native_cref_QString_QUrl_ParsingMode(long __this__nativeId, java.lang.String path, int mode);
/**
*
*/
@io.qt.QtUninvokable
public final void setPort(int port){
setPort_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), port);
}
@io.qt.QtUninvokable
private native void setPort_native_int(long __this__nativeId, int port);
/**
* Overloaded function for {@link #setQuery(java.lang.String, io.qt.core.QUrl.ParsingMode)}
* with mode = io.qt.core.QUrl.ParsingMode.TolerantMode
.
*/
@io.qt.QtUninvokable
public final void setQuery(java.lang.String query) {
setQuery(query, io.qt.core.QUrl.ParsingMode.TolerantMode);
}
/**
* See QUrl::setQuery(QString,QUrl::ParsingMode)
*/
@io.qt.QtUninvokable
public final void setQuery(java.lang.String query, io.qt.core.QUrl.ParsingMode mode){
setQuery_native_cref_QString_QUrl_ParsingMode(QtJambi_LibraryUtilities.internal.nativeId(this), query, mode.value());
}
@io.qt.QtUninvokable
private native void setQuery_native_cref_QString_QUrl_ParsingMode(long __this__nativeId, java.lang.String query, int mode);
/**
*
*/
@io.qt.QtUninvokable
public final void setQuery(io.qt.core.QUrlQuery query){
setQuery_native_cref_QUrlQuery(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(query));
}
@io.qt.QtUninvokable
private native void setQuery_native_cref_QUrlQuery(long __this__nativeId, long query);
/**
*
*/
@io.qt.QtUninvokable
public final void setScheme(java.lang.String scheme){
setScheme_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), scheme);
}
@io.qt.QtUninvokable
private native void setScheme_native_cref_QString(long __this__nativeId, java.lang.String scheme);
/**
* Overloaded function for {@link #setUrl(java.lang.String, io.qt.core.QUrl.ParsingMode)}
* with mode = io.qt.core.QUrl.ParsingMode.TolerantMode
.
*/
@io.qt.QtUninvokable
public final void setUrl(java.lang.String url) {
setUrl(url, io.qt.core.QUrl.ParsingMode.TolerantMode);
}
/**
* See QUrl::setUrl(QString,QUrl::ParsingMode)
*/
@io.qt.QtUninvokable
public final void setUrl(java.lang.String url, io.qt.core.QUrl.ParsingMode mode){
setUrl_native_cref_QString_QUrl_ParsingMode(QtJambi_LibraryUtilities.internal.nativeId(this), url, mode.value());
}
@io.qt.QtUninvokable
private native void setUrl_native_cref_QString_QUrl_ParsingMode(long __this__nativeId, java.lang.String url, int mode);
/**
* Overloaded function for {@link #setUserInfo(java.lang.String, io.qt.core.QUrl.ParsingMode)}
* with mode = io.qt.core.QUrl.ParsingMode.TolerantMode
.
*/
@io.qt.QtUninvokable
public final void setUserInfo(java.lang.String userInfo) {
setUserInfo(userInfo, io.qt.core.QUrl.ParsingMode.TolerantMode);
}
/**
* See QUrl::setUserInfo(QString,QUrl::ParsingMode)
*/
@io.qt.QtUninvokable
public final void setUserInfo(java.lang.String userInfo, io.qt.core.QUrl.ParsingMode mode){
setUserInfo_native_cref_QString_QUrl_ParsingMode(QtJambi_LibraryUtilities.internal.nativeId(this), userInfo, mode.value());
}
@io.qt.QtUninvokable
private native void setUserInfo_native_cref_QString_QUrl_ParsingMode(long __this__nativeId, java.lang.String userInfo, int mode);
/**
* Overloaded function for {@link #setUserName(java.lang.String, io.qt.core.QUrl.ParsingMode)}
* with mode = io.qt.core.QUrl.ParsingMode.DecodedMode
.
*/
@io.qt.QtUninvokable
public final void setUserName(java.lang.String userName) {
setUserName(userName, io.qt.core.QUrl.ParsingMode.DecodedMode);
}
/**
* See QUrl::setUserName(QString,QUrl::ParsingMode)
*/
@io.qt.QtUninvokable
public final void setUserName(java.lang.String userName, io.qt.core.QUrl.ParsingMode mode){
setUserName_native_cref_QString_QUrl_ParsingMode(QtJambi_LibraryUtilities.internal.nativeId(this), userName, mode.value());
}
@io.qt.QtUninvokable
private native void setUserName_native_cref_QString_QUrl_ParsingMode(long __this__nativeId, java.lang.String userName, int mode);
/**
*
*/
@io.qt.QtUninvokable
public final void swap(io.qt.core.QUrl other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
swap_native_ref_QUrl(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@io.qt.QtUninvokable
private native void swap_native_ref_QUrl(long __this__nativeId, long other);
/**
* See QUrl::toDisplayString(QUrl::FormattingOptions)const
*/
@io.qt.QtUninvokable
private final java.lang.String toDisplayString(int options){
return toDisplayString_native_QUrl_FormattingOptions_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), options);
}
@io.qt.QtUninvokable
private native java.lang.String toDisplayString_native_QUrl_FormattingOptions_constfct(long __this__nativeId, int options);
/**
* See QUrl::toEncoded(QUrl::FormattingOptions)const
*/
@io.qt.QtUninvokable
private final io.qt.core.QByteArray toEncoded(int options){
return toEncoded_native_QUrl_FormattingOptions_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), options);
}
@io.qt.QtUninvokable
private native io.qt.core.QByteArray toEncoded_native_QUrl_FormattingOptions_constfct(long __this__nativeId, int options);
/**
*
*/
@io.qt.QtUninvokable
public final java.lang.String toLocalFile(){
return toLocalFile_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String toLocalFile_native_constfct(long __this__nativeId);
/**
* See QUrl::toString(QUrl::FormattingOptions)const
*/
@io.qt.QtUninvokable
private final java.lang.String toString(int options){
return toString_native_QUrl_FormattingOptions_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), options);
}
@io.qt.QtUninvokable
private native java.lang.String toString_native_QUrl_FormattingOptions_constfct(long __this__nativeId, int options);
/**
* See QUrl::url(QUrl::FormattingOptions)const
*/
@io.qt.QtUninvokable
private final java.lang.String url(int options){
return url_native_QUrl_FormattingOptions_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), options);
}
@io.qt.QtUninvokable
private native java.lang.String url_native_QUrl_FormattingOptions_constfct(long __this__nativeId, int options);
/**
* Overloaded function for {@link #userInfo(io.qt.core.QUrl.ComponentFormattingOptions)}.
*/
@io.qt.QtUninvokable
public final java.lang.String userInfo(io.qt.core.QUrl.ComponentFormattingOption ... options){
return userInfo(new io.qt.core.QUrl.ComponentFormattingOptions(options));
}
/**
* Overloaded function for {@link #userInfo(io.qt.core.QUrl.ComponentFormattingOptions)}
* with options = new io.qt.core.QUrl.ComponentFormattingOptions(0)
.
*/
@io.qt.QtUninvokable
public final java.lang.String userInfo() {
return userInfo(new io.qt.core.QUrl.ComponentFormattingOptions(0));
}
/**
* See QUrl::userInfo(ComponentFormattingOptions)const
*/
@io.qt.QtUninvokable
public final java.lang.String userInfo(io.qt.core.QUrl.ComponentFormattingOptions options){
return userInfo_native_QFlags_QUrl_ComponentFormattingOption__constfct(QtJambi_LibraryUtilities.internal.nativeId(this), options.value());
}
@io.qt.QtUninvokable
private native java.lang.String userInfo_native_QFlags_QUrl_ComponentFormattingOption__constfct(long __this__nativeId, int options);
/**
* Overloaded function for {@link #userName(io.qt.core.QUrl.ComponentFormattingOptions)}.
*/
@io.qt.QtUninvokable
public final java.lang.String userName(io.qt.core.QUrl.ComponentFormattingOption ... options){
return userName(new io.qt.core.QUrl.ComponentFormattingOptions(options));
}
/**
* Overloaded function for {@link #userName(io.qt.core.QUrl.ComponentFormattingOptions)}
* with options = new io.qt.core.QUrl.ComponentFormattingOptions(133169152)
.
*/
@io.qt.QtUninvokable
public final java.lang.String userName() {
return userName(new io.qt.core.QUrl.ComponentFormattingOptions(133169152));
}
/**
* See QUrl::userName(ComponentFormattingOptions)const
*/
@io.qt.QtUninvokable
public final java.lang.String userName(io.qt.core.QUrl.ComponentFormattingOptions options){
return userName_native_QFlags_QUrl_ComponentFormattingOption__constfct(QtJambi_LibraryUtilities.internal.nativeId(this), options.value());
}
@io.qt.QtUninvokable
private native java.lang.String userName_native_QFlags_QUrl_ComponentFormattingOption__constfct(long __this__nativeId, int options);
/**
* Overloaded function for {@link #fromAce(io.qt.core.QByteArray, io.qt.core.QUrl.AceProcessingOptions)}.
*/
public static java.lang.String fromAce(io.qt.core.QByteArray domain, io.qt.core.QUrl.AceProcessingOption ... options){
return fromAce(domain, new io.qt.core.QUrl.AceProcessingOptions(options));
}
/**
* Overloaded function for {@link #fromAce(io.qt.core.QByteArray, io.qt.core.QUrl.AceProcessingOptions)}
* with options = new io.qt.core.QUrl.AceProcessingOptions(0)
.
*/
public static java.lang.String fromAce(io.qt.core.QByteArray domain) {
return fromAce(domain, new io.qt.core.QUrl.AceProcessingOptions(0));
}
/**
* See QUrl::fromAce(QByteArray,AceProcessingOptions)
*/
public static java.lang.String fromAce(io.qt.core.QByteArray domain, io.qt.core.QUrl.AceProcessingOptions options){
return fromAce_native_cref_QByteArray_QFlags_QUrl_AceProcessingOption_(QtJambi_LibraryUtilities.internal.checkedNativeId(domain), options.value());
}
private native static java.lang.String fromAce_native_cref_QByteArray_QFlags_QUrl_AceProcessingOption_(long domain, int options);
/**
* Overloaded function for {@link #fromEncoded(io.qt.core.QByteArray, io.qt.core.QUrl.ParsingMode)}
* with mode = io.qt.core.QUrl.ParsingMode.TolerantMode
.
*/
public static io.qt.core.QUrl fromEncoded(io.qt.core.QByteArray url) {
return fromEncoded(url, io.qt.core.QUrl.ParsingMode.TolerantMode);
}
/**
* See QUrl::fromEncoded(QByteArray,QUrl::ParsingMode)
*/
public static io.qt.core.QUrl fromEncoded(io.qt.core.QByteArray url, io.qt.core.QUrl.ParsingMode mode){
return fromEncoded_native_cref_QByteArray_QUrl_ParsingMode(QtJambi_LibraryUtilities.internal.checkedNativeId(url), mode.value());
}
private native static io.qt.core.QUrl fromEncoded_native_cref_QByteArray_QUrl_ParsingMode(long url, int mode);
/**
* See QUrl::fromLocalFile(QString)
*/
public native static io.qt.core.QUrl fromLocalFile(java.lang.String localfile);
/**
* See QUrl::fromPercentEncoding(QByteArray)
*/
public static java.lang.String fromPercentEncoding(io.qt.core.QByteArray arg__1){
return fromPercentEncoding_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
private native static java.lang.String fromPercentEncoding_native_cref_QByteArray(long arg__1);
/**
* Overloaded function for {@link #fromStringList(java.util.Collection, io.qt.core.QUrl.ParsingMode)}
* with mode = io.qt.core.QUrl.ParsingMode.TolerantMode
.
*/
public static io.qt.core.QList fromStringList(java.util.Collection uris) {
return fromStringList(uris, io.qt.core.QUrl.ParsingMode.TolerantMode);
}
/**
* See QUrl::fromStringList(QStringList,QUrl::ParsingMode)
*/
public static io.qt.core.QList fromStringList(java.util.Collection uris, io.qt.core.QUrl.ParsingMode mode){
return fromStringList_native_cref_QStringList_QUrl_ParsingMode(uris, mode.value());
}
private native static io.qt.core.QList fromStringList_native_cref_QStringList_QUrl_ParsingMode(java.util.Collection uris, int mode);
/**
* Overloaded function for {@link #fromUserInput(java.lang.String, java.lang.String, io.qt.core.QUrl.UserInputResolutionOptions)}.
*/
public static io.qt.core.QUrl fromUserInput(java.lang.String userInput, java.lang.String workingDirectory, io.qt.core.QUrl.UserInputResolutionOption ... options){
return fromUserInput(userInput, workingDirectory, new io.qt.core.QUrl.UserInputResolutionOptions(options));
}
/**
* Overloaded function for {@link #fromUserInput(java.lang.String, java.lang.String, io.qt.core.QUrl.UserInputResolutionOptions)}
* with options = new io.qt.core.QUrl.UserInputResolutionOptions(0)
.
*/
public static io.qt.core.QUrl fromUserInput(java.lang.String userInput, java.lang.String workingDirectory) {
return fromUserInput(userInput, workingDirectory, new io.qt.core.QUrl.UserInputResolutionOptions(0));
}
/**
* Overloaded function for {@link #fromUserInput(java.lang.String, java.lang.String, io.qt.core.QUrl.UserInputResolutionOptions)}
* with:
* workingDirectory = ""
* options = new io.qt.core.QUrl.UserInputResolutionOptions(0)
*
*/
public static io.qt.core.QUrl fromUserInput(java.lang.String userInput) {
return fromUserInput(userInput, "", new io.qt.core.QUrl.UserInputResolutionOptions(0));
}
/**
* See QUrl::fromUserInput(QString,QString,UserInputResolutionOptions)
*/
public static io.qt.core.QUrl fromUserInput(java.lang.String userInput, java.lang.String workingDirectory, io.qt.core.QUrl.UserInputResolutionOptions options){
return fromUserInput_native_cref_QString_cref_QString_QFlags_QUrl_UserInputResolutionOption_(userInput, workingDirectory, options.value());
}
private native static io.qt.core.QUrl fromUserInput_native_cref_QString_cref_QString_QFlags_QUrl_UserInputResolutionOption_(java.lang.String userInput, java.lang.String workingDirectory, int options);
/**
*
*/
public native static io.qt.core.QStringList idnWhitelist();
/**
* See QUrl::setIdnWhitelist(QStringList)
*/
public native static void setIdnWhitelist(java.util.Collection arg__1);
/**
* Overloaded function for {@link #toAce(java.lang.String, io.qt.core.QUrl.AceProcessingOptions)}.
*/
public static io.qt.core.QByteArray toAce(java.lang.String domain, io.qt.core.QUrl.AceProcessingOption ... options){
return toAce(domain, new io.qt.core.QUrl.AceProcessingOptions(options));
}
/**
* Overloaded function for {@link #toAce(java.lang.String, io.qt.core.QUrl.AceProcessingOptions)}
* with options = new io.qt.core.QUrl.AceProcessingOptions(0)
.
*/
public static io.qt.core.QByteArray toAce(java.lang.String domain) {
return toAce(domain, new io.qt.core.QUrl.AceProcessingOptions(0));
}
/**
* See QUrl::toAce(QString,AceProcessingOptions)
*/
public static io.qt.core.QByteArray toAce(java.lang.String domain, io.qt.core.QUrl.AceProcessingOptions options){
return toAce_native_cref_QString_QFlags_QUrl_AceProcessingOption_(domain, options.value());
}
private native static io.qt.core.QByteArray toAce_native_cref_QString_QFlags_QUrl_AceProcessingOption_(java.lang.String domain, int options);
/**
* Overloaded function for {@link #toPercentEncoding(java.lang.String, io.qt.core.QByteArray, io.qt.core.QByteArray)}
* with include = new io.qt.core.QByteArray()
.
*/
public static io.qt.core.QByteArray toPercentEncoding(java.lang.String arg__1, io.qt.core.QByteArray exclude) {
return toPercentEncoding(arg__1, exclude, new io.qt.core.QByteArray());
}
/**
* Overloaded function for {@link #toPercentEncoding(java.lang.String, io.qt.core.QByteArray, io.qt.core.QByteArray)}
* with:
* exclude = new io.qt.core.QByteArray()
* include = new io.qt.core.QByteArray()
*
*/
public static io.qt.core.QByteArray toPercentEncoding(java.lang.String arg__1) {
return toPercentEncoding(arg__1, new io.qt.core.QByteArray(), new io.qt.core.QByteArray());
}
/**
* See QUrl::toPercentEncoding(QString,QByteArray,QByteArray)
*/
public static io.qt.core.QByteArray toPercentEncoding(java.lang.String arg__1, io.qt.core.QByteArray exclude, io.qt.core.QByteArray include){
return toPercentEncoding_native_cref_QString_cref_QByteArray_cref_QByteArray(arg__1, QtJambi_LibraryUtilities.internal.checkedNativeId(exclude), QtJambi_LibraryUtilities.internal.checkedNativeId(include));
}
private native static io.qt.core.QByteArray toPercentEncoding_native_cref_QString_cref_QByteArray_cref_QByteArray(java.lang.String arg__1, long exclude, long include);
/**
* See QUrl::toStringList(QList<QUrl>,QUrl::FormattingOptions)
*/
private native static io.qt.core.QStringList toStringList(java.util.Collection uris, int options);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QUrl(QPrivateConstructor p) { super(p); }
@Override
@io.qt.QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.core.QUrl) {
return operator_equal((io.qt.core.QUrl) other);
}
return false;
}
@io.qt.QtUninvokable
public int compareTo(io.qt.core.QUrl other) {
if (equals(other)) return 0;
else if (operator_less(other)) return -1;
else return 1;
}
@io.qt.QtUninvokable
@Override
public int hashCode() {
return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native static int hashCode_native(long __this_nativeId);
/**
* Supertype interface for {@link UrlFormattingOption} and {@link ComponentFormattingOption}
* to be joined in QFiags type {@link FormattingOptions}
*/
public interface FormattingOption extends io.qt.QtFlagEnumerator{
public final static FormattingOption None = UrlFormattingOption.None;
public final static FormattingOption RemoveScheme = UrlFormattingOption.RemoveScheme;
public final static FormattingOption RemovePassword = UrlFormattingOption.RemovePassword;
public final static FormattingOption RemoveUserInfo = UrlFormattingOption.RemoveUserInfo;
public final static FormattingOption RemovePort = UrlFormattingOption.RemovePort;
public final static FormattingOption RemoveAuthority = UrlFormattingOption.RemoveAuthority;
public final static FormattingOption RemovePath = UrlFormattingOption.RemovePath;
public final static FormattingOption RemoveQuery = UrlFormattingOption.RemoveQuery;
public final static FormattingOption RemoveFragment = UrlFormattingOption.RemoveFragment;
public final static FormattingOption PreferLocalFile = UrlFormattingOption.PreferLocalFile;
public final static FormattingOption StripTrailingSlash = UrlFormattingOption.StripTrailingSlash;
public final static FormattingOption RemoveFilename = UrlFormattingOption.RemoveFilename;
public final static FormattingOption NormalizePathSegments = UrlFormattingOption.NormalizePathSegments;
public final static FormattingOption EncodeSpaces = ComponentFormattingOption.EncodeSpaces;
public final static FormattingOption EncodeUnicode = ComponentFormattingOption.EncodeUnicode;
public final static FormattingOption EncodeDelimiters = ComponentFormattingOption.EncodeDelimiters;
public final static FormattingOption EncodeReserved = ComponentFormattingOption.EncodeReserved;
public final static FormattingOption DecodeReserved = ComponentFormattingOption.DecodeReserved;
public final static FormattingOption FullyEncoded = ComponentFormattingOption.FullyEncoded;
public final static FormattingOption FullyDecoded = ComponentFormattingOption.FullyDecoded;
public static FormattingOptions flags(FormattingOption... values) {
return new FormattingOptions(values);
}
public default io.qt.QFlags> asFlags() {
return new FormattingOptions(value());
}
public static FormattingOption resolve(int value) {
try {
return UrlFormattingOption.resolve(value);
}catch(io.qt.QNoSuchEnumValueException e){
return ComponentFormattingOption.resolve(value);
}
}
public static FormattingOption[] values() {
UrlFormattingOption[] v1 = UrlFormattingOption.values();
ComponentFormattingOption[] v2 = ComponentFormattingOption.values();
FormattingOption[] values = new FormattingOption[v1.length + v2.length];
System.arraycopy(v1, 0, values, 0, v1.length);
System.arraycopy(v2, 0, values, v1.length, v2.length);
return values;
}
}
/**
* QFiags type for joining {@link UrlFormattingOption} and {@link ComponentFormattingOption}.
*/
public static class FormattingOptions extends io.qt.QFlags {
private static final long serialVersionUID = -4458464052834800982L;
public FormattingOptions(FormattingOption ... args) {
super(args);
for (FormattingOption arg : args) {
if( !(arg instanceof UrlFormattingOption)
&& !(arg instanceof ComponentFormattingOption) ) {
throw new IllegalArgumentException("Custom implementations of FormattingOption (" + arg.getClass().getName() + ") are not allowed.");
}
}
}
public FormattingOptions(int value) {
super(value);
}
@Override
public FormattingOptions clone() {
return new FormattingOptions(value());
}
@Override
public FormattingOptions combined(FormattingOption flag) {
if( !(flag instanceof UrlFormattingOption)
&& !(flag instanceof ComponentFormattingOption) ) {
throw new IllegalArgumentException("Custom implementations of FormattingOption (" + flag.getClass().getName() + ") are not allowed.");
}
return new FormattingOptions(value() | flag.value());
}
@Override
public FormattingOption[] flags() {
return super.flags(FormattingOption.values());
}
}
@io.qt.QtUninvokable
public final java.lang.String toDisplayString() {
return toDisplayString(ComponentFormattingOption.PrettyDecoded.value());
}
@io.qt.QtUninvokable
public final java.lang.String toDisplayString(FormattingOption... options) {
return toDisplayString(new FormattingOptions(options).value());
}
@io.qt.QtUninvokable
public final java.lang.String toDisplayString(FormattingOptions options) {
return toDisplayString(options.value());
}
@io.qt.QtUninvokable
public final java.lang.String toString(FormattingOptions options) {
return toString(options.value());
}
@io.qt.QtUninvokable
public final java.lang.String toString(FormattingOption... options) {
return toString(new FormattingOptions(options).value());
}
@io.qt.QtUninvokable
public final java.lang.String toString() {
return toString(ComponentFormattingOption.PrettyDecoded.value());
}
@io.qt.QtUninvokable
public final java.lang.String url() {
return url(ComponentFormattingOption.PrettyDecoded.value());
}
@io.qt.QtUninvokable
public final java.lang.String url(FormattingOptions options) {
return url(options.value());
}
@io.qt.QtUninvokable
public final java.lang.String url(FormattingOption... options) {
return url(new FormattingOptions(options).value());
}
@io.qt.QtUninvokable
public final io.qt.core.QByteArray toEncoded() {
return toEncoded(ComponentFormattingOption.PrettyDecoded.value());
}
@io.qt.QtUninvokable
public final io.qt.core.QByteArray toEncoded(FormattingOption... options) {
return toEncoded(new FormattingOptions(options).value());
}
@io.qt.QtUninvokable
public final io.qt.core.QByteArray toEncoded(FormattingOptions options) {
return toEncoded(options.value());
}
public static QStringList toStringList(java.util.Collection uris, FormattingOptions options){
return toStringList(uris, options.value());
}
public static QStringList toStringList(java.util.Collection uris, FormattingOption... options){
return toStringList(uris, new FormattingOptions(options).value());
}
public static QStringList toStringList(java.util.Collection uris){
return toStringList(uris, ComponentFormattingOption.PrettyDecoded.value());
}
public static io.qt.core.QUrl fromClassPath(java.lang.String classspath){
return fromLocalFile("/:classpath:"+classspath);
}
@Override
public QUrl clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native QUrl clone_native(long __this_nativeId);
}