Class DBusSignal
java.lang.Object
org.freedesktop.dbus.messages.Message
org.freedesktop.dbus.messages.DBusSignal
- Direct Known Subclasses:
DBus.NameAcquired, DBus.NameLost, DBus.NameOwnerChanged, ObjectManager.InterfacesAdded, ObjectManager.InterfacesRemoved, Properties.PropertiesChanged
-
Field Summary
Fields inherited from class Message
logger, MAXIMUM_ARRAY_LENGTH, MAXIMUM_MESSAGE_LENGTH, MAXIMUM_NUM_UNIX_FDS, PROTOCOL -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDBusSignal(byte _endianess, String _objectPath, Object... _args) Create a new signal.protectedDBusSignal(byte _endianess, String _source, String _path, String _iface, String _member, String _sig, Object... _args) protectedDBusSignal(String _objectPath, Object... _args) Create a new signal. -
Method Summary
Modifier and TypeMethodDescriptionvoidappendbody(AbstractConnectionBase _conn) createReal(AbstractConnectionBase _conn) Called to create signal objects for object handlers.Methods inherited from class Message
align, append, appendByte, appendBytes, appendint, createHeaderArgs, demarshallint, demarshallint, demarshallintBig, demarshallintLittle, extract, extract, getAlignment, getByteCounter, getDestination, getEndianess, getFiledescriptors, getFlags, getHeader, getHeader, getHeaderFieldName, getInterface, getName, getParameters, getParameters, getPath, getReplySerial, getSerial, getSig, getSource, getType, getWireData, marshallint, marshallintBig, marshallintLittle, pad, padAndMarshall, setArgs, setByteCounter, setHeader, setSerial, setSource, setWireData, toString, updateEndianess
-
Constructor Details
-
DBusSignal
protected DBusSignal(byte _endianess, String _source, String _path, String _iface, String _member, String _sig, Object... _args) throws DBusException - Throws:
DBusException
-
DBusSignal
Create a new signal. This constructor MUST be called by all sub classes.- Parameters:
_objectPath- The path to the object this is emitted from._args- The parameters of the signal.- Throws:
DBusException- This is thrown if the subclass is incorrectly defined.
-
DBusSignal
Create a new signal. This contructor MUST be called by all sub classes.- Parameters:
_endianess- message endianess_objectPath- The path to the object this is emitted from._args- The parameters of the signal.- Throws:
DBusException- This is thrown if the subclass is incorrectly defined.
-
-
Method Details
-
createReal
Called to create signal objects for object handlers.- Parameters:
_conn- connection on which the signal was received- Returns:
- DBusSignal or null
- Throws:
DBusException- when reading signal fails
-
appendbody
- Throws:
DBusException
-