Package org.freedesktop
Interface DBus
- All Superinterfaces:
DBusInterface
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceContains Binding-test interfacesstatic @interfaceIndicates that a DBus interface or method is deprecatedstatic @interfaceDescription of the interface or method, returned in the introspection datastatic interfaceContains standard errors that can be thrown from methods.static interfaceContains GLib-specific annotationsstatic interfaceObjects can provide introspection data via this interface and method.static interfaceMessages generated locally in the application.static interfaceContains method-specific annotationsstatic classSignal sent to a connection when it aquires a namestatic classSignal sent to a connection when it loses a namestatic classSignal sent when the owner of a name changesstatic interfaceAll DBus Applications should respond to the Ping method on this interfacestatic interfaceA standard properties interface. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a match rule.Byte[]Does something undocumented.GetConnectionUnixProcessID(String connection_name) Returns the proccess ID associated with a connection.GetConnectionUnixUser(String connection_name) Get the Unix UID that owns a connection name.GetNameOwner(String name) Get the connection unique name that owns the given name.Hello()Initial message to register ourselves on the Bus.String[]Lists all connected names on the Bus.String[]ListQueuedOwners(String name) List the connections currently queued for a name.booleanNameHasOwner(String name) Determine if a name has an owner.ReleaseName(String name) Release a name on the bus.voidDoes something undocumented.voidRemoveMatch(String matchrule) Remove a match rule.RequestName(String name, UInt32 flags) Request a name on the bus.StartServiceByName(String name, UInt32 flags) Start a service.Methods inherited from interface org.freedesktop.dbus.DBusInterface
isRemote
-
Field Details
-
DBUS_NAME_FLAG_ALLOW_REPLACEMENT
static final int DBUS_NAME_FLAG_ALLOW_REPLACEMENT- See Also:
-
DBUS_NAME_FLAG_REPLACE_EXISTING
static final int DBUS_NAME_FLAG_REPLACE_EXISTING- See Also:
-
DBUS_NAME_FLAG_DO_NOT_QUEUE
static final int DBUS_NAME_FLAG_DO_NOT_QUEUE- See Also:
-
DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER
static final int DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER- See Also:
-
DBUS_REQUEST_NAME_REPLY_IN_QUEUE
static final int DBUS_REQUEST_NAME_REPLY_IN_QUEUE- See Also:
-
DBUS_REQUEST_NAME_REPLY_EXISTS
static final int DBUS_REQUEST_NAME_REPLY_EXISTS- See Also:
-
DBUS_REQUEST_NAME_REPLY_ALREADY_OWNER
static final int DBUS_REQUEST_NAME_REPLY_ALREADY_OWNER- See Also:
-
DBUS_RELEASE_NAME_REPLY_RELEASED
static final int DBUS_RELEASE_NAME_REPLY_RELEASED- See Also:
-
DBUS_RELEASE_NAME_REPLY_NON_EXISTANT
static final int DBUS_RELEASE_NAME_REPLY_NON_EXISTANT- See Also:
-
DBUS_RELEASE_NAME_REPLY_NOT_OWNER
static final int DBUS_RELEASE_NAME_REPLY_NOT_OWNER- See Also:
-
DBUS_START_REPLY_SUCCESS
static final int DBUS_START_REPLY_SUCCESS- See Also:
-
DBUS_START_REPLY_ALREADY_RUNNING
static final int DBUS_START_REPLY_ALREADY_RUNNING- See Also:
-
-
Method Details
-
Hello
String Hello()Initial message to register ourselves on the Bus.- Returns:
- The unique name of this connection to the Bus.
-
ListNames
String[] ListNames()Lists all connected names on the Bus.- Returns:
- An array of all connected names.
-
NameHasOwner
Determine if a name has an owner.- Parameters:
name- The name to query.- Returns:
- true if the name has an owner.
-
GetNameOwner
Get the connection unique name that owns the given name.- Parameters:
name- The name to query.- Returns:
- The connection which owns the name.
-
GetConnectionUnixUser
Get the Unix UID that owns a connection name.- Parameters:
connection_name- The connection name.- Returns:
- The Unix UID that owns it.
-
StartServiceByName
Start a service. If the given service is not provided by any application, it will be started according to the .service file for that service.- Parameters:
name- The service name to start.flags- Unused.- Returns:
- DBUS_START_REPLY constants.
-
RequestName
Request a name on the bus.- Parameters:
name- The name to request.flags- DBUS_NAME flags.- Returns:
- DBUS_REQUEST_NAME_REPLY constants.
-
ReleaseName
Release a name on the bus.- Parameters:
name- The name to release.- Returns:
- DBUS_RELEASE_NAME_REPLY constants.
-
AddMatch
Add a match rule. Will cause you to receive messages that aren't directed to you which match this rule.- Parameters:
matchrule- The Match rule as a string. Format Undocumented.- Throws:
DBus.Error.MatchRuleInvalid
-
RemoveMatch
Remove a match rule. Will cause you to stop receiving messages that aren't directed to you which match this rule.- Parameters:
matchrule- The Match rule as a string. Format Undocumented.- Throws:
DBus.Error.MatchRuleInvalid
-
ListQueuedOwners
List the connections currently queued for a name.- Parameters:
name- The name to query- Returns:
- A list of unique connection IDs.
-
GetConnectionUnixProcessID
Returns the proccess ID associated with a connection.- Parameters:
connection_name- The name of the connection- Returns:
- The PID of the connection.
-
GetConnectionSELinuxSecurityContext
Does something undocumented. -
ReloadConfig
void ReloadConfig()Does something undocumented.
-