Protocol::DBus::Message
This class encapsulates a single DBus message. You generally should not instantiate it directly.
$NAME is, e.g., PATH.
PATH
Always returned as an array reference or undef. See below about mapping between D-Bus and Perl.
Returns a number. Cross-reference with the D-Bus specification.
Convenience method; $NAME is, e.g., METHOD_CALL.
METHOD_CALL
Convenience method; indicates whether all of the given @NAMES (e.g., NO_AUTO_START) correspond to flags that are set in the message.
NO_AUTO_START
Returns a number.
Numeric and string types are represented as plain Perl scalars.
Containers are represented as blessed references: Protocol::DBus::Type::Dict, Protocol::DBus::Type::Array, and Protocol::DBus::Type::Struct. Currently these are just plain hash and array references that are bless()ed; i.e., the classes don’t have any methods defined.
Protocol::DBus::Type::Dict
Protocol::DBus::Type::Array
Protocol::DBus::Type::Struct
Variant signatures are not preserved; the values are represented according to the above logic.
Use plain Perl scalars to represent all numeric and string types.
Use array references to represent D-Bus arrays and structs. Use hash references for dicts.
Use a two-member array reference—signature then value—to represent a D-Bus variant.
s(s) - ( $s0, [ $s1 ] )
s(s)
( $s0, [ $s1 ] )
a(s) - ( \@ss )
a(s)
( \@ss )
a{ss} - ( \%ss )
a{ss}
( \%ss )
To install Protocol::DBus, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Protocol::DBus
CPAN shell
perl -MCPAN -e shell install Protocol::DBus
For more information on module installation, please visit the detailed CPAN module installation guide.