io.qt.dbus.QDBus 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.*;
/**
* Contains miscellaneous identifiers used throughout the Qt D-Bus module
* Java wrapper for Qt header file QDBus
*/
public final class QDBus
{
static {
QtJambi_LibraryUtilities.initialize();
}
private QDBus() throws java.lang.InstantiationError { throw new java.lang.InstantiationError("Cannot instantiate namespace QDBus."); }
/**
* Java wrapper for Qt enum QDBus::CallMode
*/
public enum CallMode implements QtEnumerator {
/**
* Representing QDBus:: NoBlock
*/
NoBlock(0),
/**
* Representing QDBus:: Block
*/
Block(1),
/**
* Representing QDBus:: BlockWithGui
*/
BlockWithGui(2),
/**
* Representing QDBus:: AutoDetect
*/
AutoDetect(3);
static {
QtJambi_LibraryUtilities.initialize();
}
private CallMode(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 CallMode resolve(int value) {
switch (value) {
case 0: return NoBlock;
case 1: return Block;
case 2: return BlockWithGui;
case 3: return AutoDetect;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
}