<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://alteeve.com/w/index.php?action=history&amp;feed=atom&amp;title=Net%3A%3ADBus%3A%3ARemoteObject_Methods</id>
	<title>Net::DBus::RemoteObject Methods - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://alteeve.com/w/index.php?action=history&amp;feed=atom&amp;title=Net%3A%3ADBus%3A%3ARemoteObject_Methods"/>
	<link rel="alternate" type="text/html" href="https://alteeve.com/w/index.php?title=Net::DBus::RemoteObject_Methods&amp;action=history"/>
	<updated>2026-05-09T01:52:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://alteeve.com/w/index.php?title=Net::DBus::RemoteObject_Methods&amp;diff=459&amp;oldid=prev</id>
		<title>Digimer: Created page with &#039;{{dbtut_header}}  Usage: &lt;source lang=&quot;perl&quot;&gt; use Net::DBus; my $bus=Net::DBus-&gt;find; my $service=$bus-&gt;get_service(&quot;org.freedesktop.DBus&quot;); my $object=$service-&gt;get_object(&quot;/org…&#039;</title>
		<link rel="alternate" type="text/html" href="https://alteeve.com/w/index.php?title=Net::DBus::RemoteObject_Methods&amp;diff=459&amp;oldid=prev"/>
		<updated>2009-10-12T03:01:03Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;{{dbtut_header}}  Usage: &amp;lt;source lang=&amp;quot;perl&amp;quot;&amp;gt; use Net::DBus; my $bus=Net::DBus-&amp;gt;find; my $service=$bus-&amp;gt;get_service(&amp;quot;org.freedesktop.DBus&amp;quot;); my $object=$service-&amp;gt;get_object(&amp;quot;/org…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Páàjì titun&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{dbtut_header}}&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;perl&amp;quot;&amp;gt;&lt;br /&gt;
use Net::DBus;&lt;br /&gt;
my $bus=Net::DBus-&amp;gt;find;&lt;br /&gt;
my $service=$bus-&amp;gt;get_service(&amp;quot;org.freedesktop.DBus&amp;quot;);&lt;br /&gt;
my $object=$service-&amp;gt;get_object(&amp;quot;/org/freedesktop/DBus&amp;quot;);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
= new =&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;perl&amp;quot;&amp;gt;&lt;br /&gt;
my $object_path=&amp;quot;/path/to/SomeObject&amp;quot;;&lt;br /&gt;
my $interface=&amp;quot;&amp;quot;;    # Optional interface needed when a given object name is&lt;br /&gt;
                     # duplicated on multiple interfaces within the object.&lt;br /&gt;
my $object=Net::DBus::RemoteObject-&amp;gt;new($service, $object_path[, $interface]);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This creates a handle to a remote &amp;#039;&amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;$object&amp;lt;/span&amp;gt;&amp;#039; at the given &amp;#039;&amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;$object_path&amp;lt;/span&amp;gt;&amp;#039; published on the message bus by the given &amp;#039;&amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;$service&amp;lt;/span&amp;gt;&amp;#039;. When more than one interface is available under the &amp;#039;&amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;$service&amp;lt;/span&amp;gt;&amp;#039;, you may want to specify which &amp;#039;&amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;$interface&amp;lt;/span&amp;gt;&amp;#039; to use. This is required when the given &amp;#039;&amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;$object_path&amp;lt;/span&amp;gt;&amp;#039; exists on two or more interfaces.&lt;br /&gt;
&lt;br /&gt;
This should not be directly called. Instead, it is preferable to use the [[Net::DBus::RemoteService Methods#get_object|get_object]] call as this will cache handles to remote objects, preventing unecessary introspection data lookups.&lt;br /&gt;
&lt;br /&gt;
= as_interface =&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;perl&amp;quot;&amp;gt;my $object=$object-&amp;gt;as_interface($interface);&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This re-casts the object to the specified &amp;#039;&amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;$interface&amp;lt;/span&amp;gt;&amp;#039;. This is only needed when the original &amp;#039;&amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;$object&amp;lt;/span&amp;gt;&amp;#039; name is available on two or more interfaces or when the remote object does not support introspection data lookups.&lt;br /&gt;
&lt;br /&gt;
= get_service =&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;perl&amp;quot;&amp;gt;my $service=$object-&amp;gt;get_service;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This gets a handle to the remote &amp;#039;&amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;$service&amp;lt;/span&amp;gt;&amp;#039; that the remote &amp;#039;&amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;$object&amp;lt;/span&amp;gt;&amp;#039; is published under.&lt;br /&gt;
&lt;br /&gt;
= get_object_path =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;perl&amp;quot;&amp;gt;my $path=$object-&amp;gt;get_object_path;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The returns the remote &amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;$object&amp;lt;/span&amp;gt;&amp;#039;s &amp;#039;&amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;$path&amp;lt;/span&amp;gt;&amp;#039; from within the service.&lt;br /&gt;
&lt;br /&gt;
= get_child_object =&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;perl&amp;quot;&amp;gt;&lt;br /&gt;
my $subpath=&amp;quot;/ChildObject&amp;quot;;  # This is RELATIVE to the parent&amp;#039;s path, which is&lt;br /&gt;
                             # prepended to this value.&lt;br /&gt;
my $interface=&amp;quot;&amp;quot;;            # Optional, immediately casts the object to the&lt;br /&gt;
                             # specified interface.&lt;br /&gt;
my $child_object=$object-&amp;gt;get_child_object($subpath, [$interface]);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This returns a handle to the &amp;#039;&amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;$child_object&amp;lt;/span&amp;gt;&amp;#039; at the specified &amp;#039;&amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;$subpath&amp;lt;/span&amp;gt;&amp;#039;. This &amp;#039;&amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;$subpath&amp;lt;/span&amp;gt;&amp;#039; is appended onto the parent object&amp;#039;s path! So, if the parent object&amp;#039;s path is &amp;#039;&amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;/path/to/SomeObject&amp;lt;/span&amp;gt;&amp;#039; and you set &amp;#039;&amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;$subpath&amp;lt;/span&amp;gt;&amp;#039; to &amp;#039;&amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;/ChildObject&amp;lt;/span&amp;gt;&amp;#039;, the full path will be &amp;#039;&amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;/path/to/SomeObject/ChildObject&amp;lt;/span&amp;gt;&amp;#039;. The interface can be defined if you want to cast the child object to the specified interface immediately.&lt;br /&gt;
&lt;br /&gt;
= connect_to_signal =&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;perl&amp;quot;&amp;gt;&lt;br /&gt;
my $name=&amp;quot;SomeSignal&amp;quot;;&lt;br /&gt;
my $coderef=\&amp;amp;some_subroutine;&lt;br /&gt;
$object-&amp;gt;connect_to_signal($name, $coderef);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This creates a callback attached to the remote method. When the signal with the given &amp;#039;&amp;lt;span class=&amp;quot;code&amp;quot;&amp;gt;$name&amp;lt;/span&amp;gt;&amp;#039; is emitted, the referenced subroutine will be called with the arguments from the signal being passed into it.&lt;br /&gt;
{{footer}}&lt;/div&gt;</summary>
		<author><name>Digimer</name></author>
	</entry>
</feed>