Package org.freedesktop
Interface DBus
-
- All Superinterfaces:
org.freedesktop.dbus.DBusInterface
public interface DBus extends org.freedesktop.dbus.DBusInterface
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceDBus.BindingContains Binding-test interfacesstatic interfaceDBus.DeprecatedIndicates that a DBus interface or method is deprecatedstatic interfaceDBus.DescriptionDescription of the interface or method, returned in the introspection datastatic interfaceDBus.ErrorContains standard errors that can be thrown from methods.static interfaceDBus.GLibContains GLib-specific annotationsstatic interfaceDBus.IntrospectableObjects can provide introspection data via this interface and method.static interfaceDBus.LocalMessages generated locally in the application.static interfaceDBus.MethodContains method-specific annotationsstatic classDBus.NameAcquiredSignal sent to a connection when it aquires a namestatic classDBus.NameLostSignal sent to a connection when it loses a namestatic classDBus.NameOwnerChangedSignal sent when the owner of a name changesstatic interfaceDBus.PeerAll DBus Applications should respond to the Ping method on this interfacestatic interfaceDBus.PropertiesA standard properties interface.
-
Field Summary
Fields Modifier and Type Field Description static StringBUSNAMEstatic intDBUS_NAME_FLAG_ALLOW_REPLACEMENTstatic intDBUS_NAME_FLAG_DO_NOT_QUEUEstatic intDBUS_NAME_FLAG_REPLACE_EXISTINGstatic intDBUS_RELEASE_NAME_REPLY_NON_EXISTANTstatic intDBUS_RELEASE_NAME_REPLY_NOT_OWNERstatic intDBUS_RELEASEME_REPLY_RELEASEDstatic intDBUS_REQUEST_NAME_REPLY_ALREADY_OWNERstatic intDBUS_REQUEST_NAME_REPLY_EXISTSstatic intDBUS_REQUEST_NAME_REPLY_IN_QUEUEstatic intDBUS_REQUEST_NAME_REPLY_PRIMARY_OWNERstatic intDBUS_START_REPLY_ALREADY_RUNNINGstatic intDBUS_START_REPLY_SUCCESSstatic StringOBJECTPATH
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidAddMatch(String matchrule)Add a match rule.Byte[]GetConnectionSELinuxSecurityContext(String a)Does something undocumented.org.freedesktop.dbus.UInt32GetConnectionUnixProcessID(String connection_name)Returns the proccess ID associated with a connection.org.freedesktop.dbus.UInt32GetConnectionUnixUser(String connection_name)Get the Unix UID that owns a connection name.StringGetNameOwner(String name)Get the connection unique name that owns the given name.StringHello()Initial message to register ourselves on the Bus.String[]ListNames()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.org.freedesktop.dbus.UInt32ReleaseName(String name)Release a name on the bus.voidReloadConfig()Does something undocumented.voidRemoveMatch(String matchrule)Remove a match rule.org.freedesktop.dbus.UInt32RequestName(String name, org.freedesktop.dbus.UInt32 flags)Request a name on the bus.org.freedesktop.dbus.UInt32StartServiceByName(String name, org.freedesktop.dbus.UInt32 flags)Start a service.
-
-
-
Field Detail
-
BUSNAME
static final String BUSNAME
- See Also:
- Constant Field Values
-
OBJECTPATH
static final String OBJECTPATH
- See Also:
- Constant Field Values
-
DBUS_NAME_FLAG_ALLOW_REPLACEMENT
static final int DBUS_NAME_FLAG_ALLOW_REPLACEMENT
- See Also:
- Constant Field Values
-
DBUS_NAME_FLAG_REPLACE_EXISTING
static final int DBUS_NAME_FLAG_REPLACE_EXISTING
- See Also:
- Constant Field Values
-
DBUS_NAME_FLAG_DO_NOT_QUEUE
static final int DBUS_NAME_FLAG_DO_NOT_QUEUE
- See Also:
- Constant Field Values
-
DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER
static final int DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER
- See Also:
- Constant Field Values
-
DBUS_REQUEST_NAME_REPLY_IN_QUEUE
static final int DBUS_REQUEST_NAME_REPLY_IN_QUEUE
- See Also:
- Constant Field Values
-
DBUS_REQUEST_NAME_REPLY_EXISTS
static final int DBUS_REQUEST_NAME_REPLY_EXISTS
- See Also:
- Constant Field Values
-
DBUS_REQUEST_NAME_REPLY_ALREADY_OWNER
static final int DBUS_REQUEST_NAME_REPLY_ALREADY_OWNER
- See Also:
- Constant Field Values
-
DBUS_RELEASEME_REPLY_RELEASED
static final int DBUS_RELEASEME_REPLY_RELEASED
- See Also:
- Constant Field Values
-
DBUS_RELEASE_NAME_REPLY_NON_EXISTANT
static final int DBUS_RELEASE_NAME_REPLY_NON_EXISTANT
- See Also:
- Constant Field Values
-
DBUS_RELEASE_NAME_REPLY_NOT_OWNER
static final int DBUS_RELEASE_NAME_REPLY_NOT_OWNER
- See Also:
- Constant Field Values
-
DBUS_START_REPLY_SUCCESS
static final int DBUS_START_REPLY_SUCCESS
- See Also:
- Constant Field Values
-
DBUS_START_REPLY_ALREADY_RUNNING
static final int DBUS_START_REPLY_ALREADY_RUNNING
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
boolean NameHasOwner(String name)
Determine if a name has an owner.- Parameters:
name- The name to query.- Returns:
- true if the name has an owner.
-
GetNameOwner
String GetNameOwner(String name)
Get the connection unique name that owns the given name.- Parameters:
name- The name to query.- Returns:
- The connection which owns the name.
-
GetConnectionUnixUser
org.freedesktop.dbus.UInt32 GetConnectionUnixUser(String connection_name)
Get the Unix UID that owns a connection name.- Parameters:
connection_name- The connection name.- Returns:
- The Unix UID that owns it.
-
StartServiceByName
org.freedesktop.dbus.UInt32 StartServiceByName(String name, org.freedesktop.dbus.UInt32 flags)
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
org.freedesktop.dbus.UInt32 RequestName(String name, org.freedesktop.dbus.UInt32 flags)
Request a name on the bus.- Parameters:
name- The name to request.flags- DBUS_NAME flags.- Returns:
- DBUS_REQUEST_NAME_REPLY constants.
-
ReleaseName
org.freedesktop.dbus.UInt32 ReleaseName(String name)
Release a name on the bus.- Parameters:
name- The name to release.- Returns:
- DBUS_RELEASE_NAME_REPLY constants.
-
AddMatch
void AddMatch(String matchrule) throws DBus.Error.MatchRuleInvalid
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
void RemoveMatch(String matchrule) throws DBus.Error.MatchRuleInvalid
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
String[] ListQueuedOwners(String name)
List the connections currently queued for a name.- Parameters:
name- The name to query- Returns:
- A list of unique connection IDs.
-
GetConnectionUnixProcessID
org.freedesktop.dbus.UInt32 GetConnectionUnixProcessID(String connection_name)
Returns the proccess ID associated with a connection.- Parameters:
connection_name- The name of the connection- Returns:
- The PID of the connection.
-
GetConnectionSELinuxSecurityContext
Byte[] GetConnectionSELinuxSecurityContext(String a)
Does something undocumented.
-
ReloadConfig
void ReloadConfig()
Does something undocumented.
-
-