io.qt.dbus.QDBusConnectionInterface Maven / Gradle / Ivy
Show all versions of qtjambi-dbus Show documentation
package io.qt.dbus;
import io.qt.*;
/**
* Access to the D-Bus bus daemon service
* Java wrapper for Qt class QDBusConnectionInterface
*/
public final class QDBusConnectionInterface extends io.qt.dbus.QDBusAbstractInterface
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QDBusConnectionInterface.class);
/**
* Java wrapper for Qt enum QDBusConnectionInterface::RegisterServiceReply
*/
public enum RegisterServiceReply implements QtEnumerator {
/**
* Representing QDBusConnectionInterface:: ServiceNotRegistered
*/
ServiceNotRegistered(0),
/**
* Representing QDBusConnectionInterface:: ServiceRegistered
*/
ServiceRegistered(1),
/**
* Representing QDBusConnectionInterface:: ServiceQueued
*/
ServiceQueued(2);
static {
QtJambi_LibraryUtilities.initialize();
}
private RegisterServiceReply(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 RegisterServiceReply resolve(int value) {
switch (value) {
case 0: return ServiceNotRegistered;
case 1: return ServiceRegistered;
case 2: return ServiceQueued;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QDBusConnectionInterface::ServiceQueueOptions
*/
public enum ServiceQueueOptions implements QtEnumerator {
/**
* Representing QDBusConnectionInterface:: DontQueueService
*/
DontQueueService(0),
/**
* Representing QDBusConnectionInterface:: QueueService
*/
QueueService(1),
/**
* Representing QDBusConnectionInterface:: ReplaceExistingService
*/
ReplaceExistingService(2);
static {
QtJambi_LibraryUtilities.initialize();
}
private ServiceQueueOptions(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 ServiceQueueOptions resolve(int value) {
switch (value) {
case 0: return DontQueueService;
case 1: return QueueService;
case 2: return ReplaceExistingService;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QDBusConnectionInterface::ServiceReplacementOptions
*/
public enum ServiceReplacementOptions implements QtEnumerator {
/**
* Representing QDBusConnectionInterface:: DontAllowReplacement
*/
DontAllowReplacement(0),
/**
* Representing QDBusConnectionInterface:: AllowReplacement
*/
AllowReplacement(1);
static {
QtJambi_LibraryUtilities.initialize();
}
private ServiceReplacementOptions(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 ServiceReplacementOptions resolve(int value) {
switch (value) {
case 0: return DontAllowReplacement;
case 1: return AllowReplacement;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QDBusConnectionInterface:: NameAcquired(QString)
*/
public final @NonNull Signal1 NameAcquired = new Signal1<>();
/**
* See QDBusConnectionInterface:: NameLost(QString)
*/
public final @NonNull Signal1 NameLost = new Signal1<>();
/**
* See QDBusConnectionInterface:: NameOwnerChanged(QString, QString, QString)
*/
public final @NonNull Signal3 NameOwnerChanged = new Signal3<>();
/**
* See QDBusConnectionInterface:: callWithCallbackFailed(QDBusError, QDBusMessage)
*/
public final @NonNull Signal2 callWithCallbackFailed = new Signal2<>();
/**
* See QDBusConnectionInterface:: serviceOwnerChanged(QString, QString, QString)
*/
public final @NonNull Signal3 serviceOwnerChanged = new Signal3<>();
/**
* See QDBusConnectionInterface:: serviceRegistered(QString)
*/
public final @NonNull Signal1 serviceRegistered = new Signal1<>();
/**
* See QDBusConnectionInterface:: serviceUnregistered(QString)
*/
public final @NonNull Signal1 serviceUnregistered = new Signal1<>();
/**
* See QDBusConnectionInterface:: activatableServiceNames()const
*/
@QtPropertyReader(name="activatableServiceNames")
public final io.qt.dbus.@NonNull QDBusReply> activatableServiceNames(){
return activatableServiceNames_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native io.qt.dbus.QDBusReply> activatableServiceNames_native_constfct(long __this__nativeId);
/**
* See QDBusConnectionInterface:: isServiceRegistered(QString)const
*/
public final io.qt.dbus.@NonNull QDBusReply isServiceRegistered(java.lang.@NonNull String serviceName){
return isServiceRegistered_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), serviceName);
}
private native io.qt.dbus.QDBusReply isServiceRegistered_native_cref_QString_constfct(long __this__nativeId, java.lang.String serviceName);
/**
*
*/
public final io.qt.dbus.@NonNull QDBusReply registerService(java.lang.@NonNull String serviceName, io.qt.dbus.QDBusConnectionInterface.@NonNull ServiceQueueOptions qoption, io.qt.dbus.QDBusConnectionInterface.@NonNull ServiceReplacementOptions roption){
return registerService_native_cref_QString_QDBusConnectionInterface_ServiceQueueOptions_QDBusConnectionInterface_ServiceReplacementOptions(QtJambi_LibraryUtilities.internal.nativeId(this), serviceName, qoption.value(), roption.value());
}
private native io.qt.dbus.QDBusReply registerService_native_cref_QString_QDBusConnectionInterface_ServiceQueueOptions_QDBusConnectionInterface_ServiceReplacementOptions(long __this__nativeId, java.lang.String serviceName, int qoption, int roption);
/**
* See QDBusConnectionInterface:: registeredServiceNames()const
*/
@QtPropertyReader(name="registeredServiceNames")
public final io.qt.dbus.@NonNull QDBusReply> registeredServiceNames(){
return registeredServiceNames_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native io.qt.dbus.QDBusReply> registeredServiceNames_native_constfct(long __this__nativeId);
/**
* See QDBusConnectionInterface:: serviceOwner(QString)const
*/
public final io.qt.dbus.@NonNull QDBusReply serviceOwner(java.lang.@NonNull String name){
return serviceOwner_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), name);
}
private native io.qt.dbus.QDBusReply serviceOwner_native_cref_QString_constfct(long __this__nativeId, java.lang.String name);
/**
* See QDBusConnectionInterface:: servicePid(QString)const
*/
public final io.qt.dbus.@NonNull QDBusReply servicePid(java.lang.@NonNull String serviceName){
return servicePid_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), serviceName);
}
private native io.qt.dbus.QDBusReply servicePid_native_cref_QString_constfct(long __this__nativeId, java.lang.String serviceName);
/**
* See QDBusConnectionInterface:: serviceUid(QString)const
*/
public final io.qt.dbus.@NonNull QDBusReply serviceUid(java.lang.@NonNull String serviceName){
return serviceUid_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), serviceName);
}
private native io.qt.dbus.QDBusReply serviceUid_native_cref_QString_constfct(long __this__nativeId, java.lang.String serviceName);
/**
* See QDBusConnectionInterface:: startService(QString)
*/
public final io.qt.dbus.@NonNull QDBusReply startService(java.lang.@NonNull String name){
return startService_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), name);
}
private native io.qt.dbus.QDBusReply startService_native_cref_QString(long __this__nativeId, java.lang.String name);
/**
* See QDBusConnectionInterface:: unregisterService(QString)
*/
public final io.qt.dbus.@NonNull QDBusReply unregisterService(java.lang.@NonNull String serviceName){
return unregisterService_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), serviceName);
}
private native io.qt.dbus.QDBusReply unregisterService_native_cref_QString(long __this__nativeId, java.lang.String serviceName);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QDBusConnectionInterface(QPrivateConstructor p) { super(p); }
/**
* @hidden
* Kotlin property getter. In Java use {@link #activatableServiceNames()} instead.
*/
@QtPropertyReader(enabled=false)
public final io.qt.dbus.@NonNull QDBusReply> getActivatableServiceNames() {
return activatableServiceNames();
}
/**
* Overloaded function for {@link #registerService(java.lang.String, io.qt.dbus.QDBusConnectionInterface.ServiceQueueOptions, io.qt.dbus.QDBusConnectionInterface.ServiceReplacementOptions)}
* with roption = io.qt.dbus.QDBusConnectionInterface.ServiceReplacementOptions.DontAllowReplacement
.
*/
public final io.qt.dbus.@NonNull QDBusReply registerService(java.lang.@NonNull String serviceName, io.qt.dbus.QDBusConnectionInterface.@NonNull ServiceQueueOptions qoption) {
return registerService(serviceName, qoption, io.qt.dbus.QDBusConnectionInterface.ServiceReplacementOptions.DontAllowReplacement);
}
/**
* Overloaded function for {@link #registerService(java.lang.String, io.qt.dbus.QDBusConnectionInterface.ServiceQueueOptions, io.qt.dbus.QDBusConnectionInterface.ServiceReplacementOptions)}
* with:
* qoption = io.qt.dbus.QDBusConnectionInterface.ServiceQueueOptions.DontQueueService
* roption = io.qt.dbus.QDBusConnectionInterface.ServiceReplacementOptions.DontAllowReplacement
*
*/
public final io.qt.dbus.@NonNull QDBusReply registerService(java.lang.@NonNull String serviceName) {
return registerService(serviceName, io.qt.dbus.QDBusConnectionInterface.ServiceQueueOptions.DontQueueService, io.qt.dbus.QDBusConnectionInterface.ServiceReplacementOptions.DontAllowReplacement);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #registeredServiceNames()} instead.
*/
@QtPropertyReader(enabled=false)
public final io.qt.dbus.@NonNull QDBusReply> getRegisteredServiceNames() {
return registeredServiceNames();
}
}