io.qt.gui.QSessionManager Maven / Gradle / Ivy
package io.qt.gui;
/**
* 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.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QSessionManager.class);
/**
* Java wrapper for Qt enum QSessionManager::RestartHint
*/
@io.qt.QtUnlistedEnum
public enum RestartHint implements io.qt.QtEnumerator {
RestartIfRunning(0),
RestartAnyway(1),
RestartImmediately(2),
RestartNever(3);
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 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 io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QSessionManager::allowsErrorInteraction()
*/
@io.qt.QtUninvokable
public final boolean allowsErrorInteraction(){
return allowsErrorInteraction_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean allowsErrorInteraction_native(long __this__nativeId);
/**
* See QSessionManager::allowsInteraction()
*/
@io.qt.QtUninvokable
public final boolean allowsInteraction(){
return allowsInteraction_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean allowsInteraction_native(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final void cancel(){
cancel_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void cancel_native(long __this__nativeId);
/**
* See QSessionManager::discardCommand()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QStringList discardCommand(){
return discardCommand_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QStringList discardCommand_native_constfct(long __this__nativeId);
/**
* See QSessionManager::isPhase2()const
*/
@io.qt.QtUninvokable
public final boolean isPhase2(){
return isPhase2_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isPhase2_native_constfct(long __this__nativeId);
/**
* See QSessionManager::release()
*/
@io.qt.QtUninvokable
public final void release(){
release_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void release_native(long __this__nativeId);
/**
* See QSessionManager::requestPhase2()
*/
@io.qt.QtUninvokable
public final void requestPhase2(){
requestPhase2_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void requestPhase2_native(long __this__nativeId);
/**
* See QSessionManager::restartCommand()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QStringList restartCommand(){
return restartCommand_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QStringList restartCommand_native_constfct(long __this__nativeId);
/**
* See QSessionManager::restartHint()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QSessionManager.RestartHint restartHint(){
return io.qt.gui.QSessionManager.RestartHint.resolve(restartHint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int restartHint_native_constfct(long __this__nativeId);
/**
* See QSessionManager::sessionId()const
*/
@io.qt.QtUninvokable
public final java.lang.String sessionId(){
return sessionId_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String sessionId_native_constfct(long __this__nativeId);
/**
* See QSessionManager::sessionKey()const
*/
@io.qt.QtUninvokable
public final java.lang.String sessionKey(){
return sessionKey_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String sessionKey_native_constfct(long __this__nativeId);
/**
* See QSessionManager::setDiscardCommand(QStringList)
*/
@io.qt.QtUninvokable
public final void setDiscardCommand(java.util.Collection arg__1){
setDiscardCommand_native_cref_QStringList(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@io.qt.QtUninvokable
private native void setDiscardCommand_native_cref_QStringList(long __this__nativeId, java.util.Collection arg__1);
/**
* See QSessionManager::setManagerProperty(QString,QString)
*/
@io.qt.QtUninvokable
public final void setManagerProperty(java.lang.String name, java.lang.String value){
setManagerProperty_native_cref_QString_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), name, value);
}
@io.qt.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)
*/
@io.qt.QtUninvokable
public final void setManagerProperty(java.lang.String name, java.util.Collection value){
setManagerProperty_native_cref_QString_cref_QStringList(QtJambi_LibraryUtilities.internal.nativeId(this), name, value);
}
@io.qt.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)
*/
@io.qt.QtUninvokable
public final void setRestartCommand(java.util.Collection arg__1){
setRestartCommand_native_cref_QStringList(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@io.qt.QtUninvokable
private native void setRestartCommand_native_cref_QStringList(long __this__nativeId, java.util.Collection arg__1);
/**
* See QSessionManager::setRestartHint(QSessionManager::RestartHint)
*/
@io.qt.QtUninvokable
public final void setRestartHint(io.qt.gui.QSessionManager.RestartHint arg__1){
setRestartHint_native_QSessionManager_RestartHint(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value());
}
@io.qt.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
.
*/
@io.qt.NativeAccess
protected QSessionManager(QPrivateConstructor p) { super(p); }
}