io.qt.core.QProcessEnvironment Maven / Gradle / Ivy
package io.qt.core;
/**
* Holds the environment variables that can be passed to a program
* Java wrapper for Qt class QProcessEnvironment
*/
public class QProcessEnvironment extends io.qt.QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Java wrapper for Qt enum QProcessEnvironment::Initialization
*/
public enum Initialization implements io.qt.QtEnumerator {
InheritFromParent(0);
private Initialization(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 Initialization resolve(int value) {
switch (value) {
case 0: return InheritFromParent;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QProcessEnvironment::QProcessEnvironment()
*/
public QProcessEnvironment(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QProcessEnvironment instance);
/**
* See QProcessEnvironment::QProcessEnvironment(QProcessEnvironment::Initialization)
*/
public QProcessEnvironment(io.qt.core.QProcessEnvironment.Initialization arg__1){
super((QPrivateConstructor)null);
initialize_native(this, arg__1);
}
private native static void initialize_native(QProcessEnvironment instance, io.qt.core.QProcessEnvironment.Initialization arg__1);
/**
* See QProcessEnvironment::QProcessEnvironment(QProcessEnvironment)
*/
public QProcessEnvironment(io.qt.core.QProcessEnvironment other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QProcessEnvironment instance, io.qt.core.QProcessEnvironment other);
/**
* See QProcessEnvironment::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);
/**
* See QProcessEnvironment::contains(QString)const
*/
@io.qt.QtUninvokable
public final boolean contains(java.lang.String name){
return contains_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), name);
}
@io.qt.QtUninvokable
private native boolean contains_native_cref_QString_constfct(long __this__nativeId, java.lang.String name);
/**
* See QProcessEnvironment::inheritsFromParent()const
*/
@io.qt.QtUninvokable
public final boolean inheritsFromParent(){
return inheritsFromParent_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean inheritsFromParent_native_constfct(long __this__nativeId);
/**
* See QProcessEnvironment::insert(QProcessEnvironment)
*/
@io.qt.QtUninvokable
public final void insert(io.qt.core.QProcessEnvironment e){
insert_native_cref_QProcessEnvironment(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@io.qt.QtUninvokable
private native void insert_native_cref_QProcessEnvironment(long __this__nativeId, long e);
/**
* See QProcessEnvironment::insert(QString,QString)
*/
@io.qt.QtUninvokable
public final void insert(java.lang.String name, java.lang.String value){
insert_native_cref_QString_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), name, value);
}
@io.qt.QtUninvokable
private native void insert_native_cref_QString_cref_QString(long __this__nativeId, java.lang.String name, java.lang.String value);
/**
* See QProcessEnvironment::isEmpty()const
*/
@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);
/**
* See QProcessEnvironment::keys()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QStringList keys(){
return keys_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QStringList keys_native_constfct(long __this__nativeId);
/**
* See QProcessEnvironment::operator==(QProcessEnvironment)const
*/
@io.qt.QtUninvokable
private final boolean operator_equal(io.qt.core.QProcessEnvironment other){
return operator_equal_native_cref_QProcessEnvironment_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@io.qt.QtUninvokable
private native boolean operator_equal_native_cref_QProcessEnvironment_constfct(long __this__nativeId, long other);
/**
* See QProcessEnvironment::remove(QString)
*/
@io.qt.QtUninvokable
public final void remove(java.lang.String name){
remove_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), name);
}
@io.qt.QtUninvokable
private native void remove_native_cref_QString(long __this__nativeId, java.lang.String name);
/**
* See QProcessEnvironment::swap(QProcessEnvironment&)
*/
@io.qt.QtUninvokable
public final void swap(io.qt.core.QProcessEnvironment other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
swap_native_ref_QProcessEnvironment(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@io.qt.QtUninvokable
private native void swap_native_ref_QProcessEnvironment(long __this__nativeId, long other);
/**
* See QProcessEnvironment::toStringList()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QStringList toStringList(){
return toStringList_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QStringList toStringList_native_constfct(long __this__nativeId);
/**
* Overloaded function for {@link #value(java.lang.String, java.lang.String)}
* with defaultValue = ""
.
*/
@io.qt.QtUninvokable
public final java.lang.String value(java.lang.String name) {
return value(name, "");
}
/**
* See QProcessEnvironment::value(QString,QString)const
*/
@io.qt.QtUninvokable
public final java.lang.String value(java.lang.String name, java.lang.String defaultValue){
return value_native_cref_QString_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), name, defaultValue);
}
@io.qt.QtUninvokable
private native java.lang.String value_native_cref_QString_cref_QString_constfct(long __this__nativeId, java.lang.String name, java.lang.String defaultValue);
/**
* Returns the environment of the calling process
* See QProcessEnvironment::systemEnvironment()
*/
public native static io.qt.core.QProcessEnvironment systemEnvironment();
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QProcessEnvironment(QPrivateConstructor p) { super(p); }
@Override
@io.qt.QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.core.QProcessEnvironment) {
return operator_equal((io.qt.core.QProcessEnvironment) other);
}
return false;
}
@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);
@Override
public QProcessEnvironment clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native QProcessEnvironment clone_native(long __this_nativeId);
}