io.qt.gui.QSessionManager Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
import io.qt.*;
/**
* Access to the session manager
* Java wrapper for Qt class QSessionManager
*/
public final class QSessionManager extends io.qt.core.QObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QSessionManager.class);
/**
* Java wrapper for Qt enum QSessionManager::RestartHint
*/
@QtUnlistedEnum
public enum RestartHint implements QtEnumerator {
/**
* Representing QSessionManager:: RestartIfRunning
*/
RestartIfRunning(0),
/**
* Representing QSessionManager:: RestartAnyway
*/
RestartAnyway(1),
/**
* Representing QSessionManager:: RestartImmediately
*/
RestartImmediately(2),
/**
* Representing QSessionManager:: RestartNever
*/
RestartNever(3);
static {
QtJambi_LibraryUtilities.initialize();
}
private RestartHint(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 @NonNull RestartHint resolve(int value) {
switch (value) {
case 0: return RestartIfRunning;
case 1: return RestartAnyway;
case 2: return RestartImmediately;
case 3: return RestartNever;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QSessionManager:: allowsErrorInteraction()
*/
@QtUninvokable
public final boolean allowsErrorInteraction(){
return allowsErrorInteraction_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean allowsErrorInteraction_native(long __this__nativeId);
/**
* See QSessionManager:: allowsInteraction()
*/
@QtUninvokable
public final boolean allowsInteraction(){
return allowsInteraction_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean allowsInteraction_native(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final void cancel(){
cancel_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void cancel_native(long __this__nativeId);
/**
* See QSessionManager:: discardCommand()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QStringList discardCommand(){
return discardCommand_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QStringList discardCommand_native_constfct(long __this__nativeId);
/**
* See QSessionManager:: isPhase2()const
*/
@QtUninvokable
public final boolean isPhase2(){
return isPhase2_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isPhase2_native_constfct(long __this__nativeId);
/**
* See QSessionManager:: release()
*/
@QtUninvokable
public final void release(){
release_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void release_native(long __this__nativeId);
/**
* See QSessionManager:: requestPhase2()
*/
@QtUninvokable
public final void requestPhase2(){
requestPhase2_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void requestPhase2_native(long __this__nativeId);
/**
* See QSessionManager:: restartCommand()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QStringList restartCommand(){
return restartCommand_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QStringList restartCommand_native_constfct(long __this__nativeId);
/**
* See QSessionManager:: restartHint()const
*/
@QtUninvokable
public final io.qt.gui.QSessionManager.@NonNull RestartHint restartHint(){
return io.qt.gui.QSessionManager.RestartHint.resolve(restartHint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int restartHint_native_constfct(long __this__nativeId);
/**
* See QSessionManager:: sessionId()const
*/
@QtUninvokable
public final java.lang.@NonNull String sessionId(){
return sessionId_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String sessionId_native_constfct(long __this__nativeId);
/**
* See QSessionManager:: sessionKey()const
*/
@QtUninvokable
public final java.lang.@NonNull String sessionKey(){
return sessionKey_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String sessionKey_native_constfct(long __this__nativeId);
/**
* See QSessionManager:: setDiscardCommand(QStringList)
*/
@QtUninvokable
public final void setDiscardCommand(java.util.@NonNull Collection arg__1){
setDiscardCommand_native_cref_QStringList(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@QtUninvokable
private native void setDiscardCommand_native_cref_QStringList(long __this__nativeId, java.util.Collection arg__1);
/**
* See QSessionManager:: setManagerProperty(QString, QString)
*/
@QtUninvokable
public final void setManagerProperty(java.lang.@NonNull String name, java.lang.@NonNull String value){
setManagerProperty_native_cref_QString_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), name, value);
}
@QtUninvokable
private native void setManagerProperty_native_cref_QString_cref_QString(long __this__nativeId, java.lang.String name, java.lang.String value);
/**
* See QSessionManager:: setManagerProperty(QString, QStringList)
*/
@QtUninvokable
public final void setManagerProperty(java.lang.@NonNull String name, java.util.@NonNull Collection value){
setManagerProperty_native_cref_QString_cref_QStringList(QtJambi_LibraryUtilities.internal.nativeId(this), name, value);
}
@QtUninvokable
private native void setManagerProperty_native_cref_QString_cref_QStringList(long __this__nativeId, java.lang.String name, java.util.Collection value);
/**
* See QSessionManager:: setRestartCommand(QStringList)
*/
@QtUninvokable
public final void setRestartCommand(java.util.@NonNull Collection arg__1){
setRestartCommand_native_cref_QStringList(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@QtUninvokable
private native void setRestartCommand_native_cref_QStringList(long __this__nativeId, java.util.Collection arg__1);
/**
* See QSessionManager:: setRestartHint(QSessionManager::RestartHint)
*/
@QtUninvokable
public final void setRestartHint(io.qt.gui.QSessionManager.@NonNull RestartHint arg__1){
setRestartHint_native_QSessionManager_RestartHint(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value());
}
@QtUninvokable
private native void setRestartHint_native_QSessionManager_RestartHint(long __this__nativeId, int arg__1);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QSessionManager(QPrivateConstructor p) { super(p); }
}