plugins: Do not compare expression against NULL
[platform/upstream/neard.git] / doc / manager-api.txt
1 Manager hierarchy
2 =================
3
4 Service         org.neard
5 Interface       org.neard.Manager
6 Object path     /
7
8 Methods         dict GetProperties()
9
10                         Returns all properties for the manager. See the
11                         properties section for available properties.
12
13                         Possible Errors: org.neard.Error.DoesNotExist
14
15                 void RegisterHandoverAgent(object path, string carrier)
16
17                         Register new handover agent.
18
19                         Supported carriers are: 'bluetooth', 'wifi'.
20                         Only one registration will be accepted per carrier.
21
22                         Possible Errors: org.neard.Error.InvalidArguments
23                                          org.neard.Error.AlreadyExists.
24
25                 void UnregisterHandoverAgent(object path, string carrier)
26
27                         Unregister an existing handover agent.
28
29                         Possible Errors: org.neard.Error.InvalidArguments
30
31                 void RegisterNDEFAgent(object path, string type)
32
33                         Register new NDEF agent.
34
35                         When a record matching the registered type is found,
36                         the agent will get the whole NDEF as a raw byte stream.
37
38                         Possible Errors: org.neard.Error.InvalidArguments
39
40                 void UnregisterNDEFAgent(object path, string type)
41
42                         Unregister an existing NDEF agent.
43
44                         Possible Errors: org.neard.Error.InvalidArguments
45
46
47 Signals         PropertyChanged(string name, variant value)
48
49                         This signal indicates a changed value of the given
50                         property.
51
52                 AdapterAdded(object adapter)
53
54                         Parameter is the object path of added adapter.
55
56                 AdapterRemoved(object adapter)
57
58                         Parameter is the object path of removed adapter.
59
60
61 Properties      array{object} Adapters [readonly]
62
63                         List of adapter object paths.