io.qt.dbus.QDBusVariant Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qtjambi-dbus Show documentation
Show all versions of qtjambi-dbus Show documentation
Classes for inter-process communication over the D-Bus protocol.
package io.qt.dbus;
import io.qt.*;
/**
* Enables the programmer to identify the variant type provided by the D-Bus typesystem
* Java wrapper for Qt class QDBusVariant
*/
public class QDBusVariant extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QDBusVariant:: QDBusVariant()
*/
public QDBusVariant(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QDBusVariant instance);
/**
* See QDBusVariant:: QDBusVariant(QDBusVariant)
*/
public QDBusVariant(io.qt.dbus.@StrictNonNull QDBusVariant other){
super((QPrivateConstructor)null);
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
initialize_native(this, other);
}
private native static void initialize_native(QDBusVariant instance, io.qt.dbus.QDBusVariant other);
/**
* See QDBusVariant:: QDBusVariant(QVariant&&)
*/
public QDBusVariant(io.qt.core.@NonNull QVariant v){
super((QPrivateConstructor)null);
initialize_native(this, v);
}
private native static void initialize_native(QDBusVariant instance, io.qt.core.QVariant v);
/**
* See QDBusVariant:: QDBusVariant(QVariant)
*/
public QDBusVariant(java.lang.Object variant){
super((QPrivateConstructor)null);
initialize_native(this, variant);
}
private native static void initialize_native(QDBusVariant instance, java.lang.Object variant);
/**
* See operator==(QDBusVariant, QDBusVariant)
*/
@QtUninvokable
public final boolean equals(io.qt.dbus.@StrictNonNull QDBusVariant v2){
java.util.Objects.requireNonNull(v2, "Argument 'v2': null not expected.");
return equals_native_cref_QDBusVariant(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(v2));
}
@QtUninvokable
private native boolean equals_native_cref_QDBusVariant(long __this__nativeId, long v2);
/**
* See QDBusVariant:: setVariant(QVariant)
*/
@QtUninvokable
public final void setVariant(java.lang.Object variant){
setVariant_native_cref_QVariant(QtJambi_LibraryUtilities.internal.nativeId(this), variant);
}
@QtUninvokable
private native void setVariant_native_cref_QVariant(long __this__nativeId, java.lang.Object variant);
/**
* See QDBusVariant:: swap(QDBusVariant&)
*/
@QtUninvokable
public final void swap(io.qt.dbus.@StrictNonNull QDBusVariant other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
swap_native_ref_QDBusVariant(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void swap_native_ref_QDBusVariant(long __this__nativeId, long other);
/**
* See QDBusVariant:: variant()const
*/
@QtUninvokable
public final java.lang.Object variant(){
return variant_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.Object variant_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QDBusVariant(QPrivateConstructor p) { super(p); }
/**
* See operator==(QDBusVariant, QDBusVariant)
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.dbus.QDBusVariant) {
return equals((io.qt.dbus.QDBusVariant) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QDBusVariant)
.
*/
@QtUninvokable
@Override
public int hashCode() {
return 0;
}
/**
* Creates and returns a copy of this object.
See QDBusVariant:: QDBusVariant(QDBusVariant)
*/
@QtUninvokable
@Override
public QDBusVariant clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QDBusVariant clone_native(long __this_nativeId);
}