1Net::DBus::Annotation(3U)ser Contributed Perl DocumentatiNoent::DBus::Annotation(3)
2
3
4

NAME

6       Net::DBus::Annotation - annotations for changing behaviour of APIs
7

SYNOPSIS

9         use Net::DBus::Annotation qw(:call);
10
11         my $object = $service->get_object("/org/example/systemMonitor");
12
13         # Block until processes are listed
14         my $processes = $object->list_processes("someuser");
15
16         # Just throw away list of processes, pretty pointless
17         # in this example, but useful if the method doesn't have
18         # a return value
19         $object->list_processes(dbus_call_noreply, "someuser");
20
21         # List processes & get on with other work until
22         # the list is returned.
23         my $asyncreply = $object->list_processes(dbus_call_async, "someuser");
24
25         ... some time later...
26         my $processes = $asyncreply->get_data;
27

DESCRIPTION

29       This module provides a number of annotations which will be useful when
30       dealing with the DBus APIs. There are annotations for switching remote
31       calls between sync, async and no-reply mode. More annotations may be
32       added over time.
33

METHODS

35       dbus_call_sync
36           Requests that a method call be performed synchronously, waiting for
37           the reply or error return to be received before continuing.
38
39       dbus_call_async
40           Requests that a method call be performed a-synchronously, returning
41           a pending call object, which will collect the reply when it eventu‐
42           ally arrives.
43
44       dbus_call_noreply
45           Requests that a method call be performed a-synchronously, discard‐
46           ing any possible reply or error message.
47

AUTHOR

49       Daniel Berrange <dan@berrange.com>
50
52       Copright (C) 2006, Daniel Berrange.
53

SEE ALSO

55       Net::DBus, Net::DBus::RemoteObject
56
57
58
59perl v5.8.8                       2008-02-20          Net::DBus::Annotation(3)
Impressum