5 Interface net.connman.Manager
8 Methods dict GetProperties()
10 Returns all global system properties. See the
11 properties section for available properties.
13 Possible Errors: [service].Error.InvalidArguments
15 void SetProperty(string name, variant value)
17 Changes the value of the specified property. Only
18 properties that are listed as read-write are
19 changeable. On success a PropertyChanged signal
22 Possible Errors: [service].Error.InvalidArguments
23 [service].Error.InvalidProperty
25 array{object,dict} GetTechnologies()
27 Returns a list of tuples with technology object
28 path and dictionary of technology properties.
30 Possible Errors: [service].Error.InvalidArguments
32 array{object,dict} GetServices()
34 Returns a sorted list of tuples with service
35 object path and dictionary of service properties.
37 This list will not contain sensitive information
40 Possible Errors: [service].Error.InvalidArguments
42 array{object,dict} GetPeers() [experimental]
44 Returns a sorted list of tuples with peer object path
45 and dictionary of peer properties
47 Possible Errors: [service].Error.InvalidArguments
49 object ConnectProvider(dict provider) [deprecated]
51 Connect to a VPN specified by the given provider
54 When successful this method will return the object
55 path of the VPN service object.
57 This method can also be used to connect to an
60 This method call will only return in case of an
61 error or when the service is fully connected. So
62 setting a longer D-Bus timeout might be a really
65 When 'SessionMode' property is enabled, this method
68 This API is deprecated and should not be used.
69 The VPN configuration API is provided by ConnMan
70 VPN daemon and user should use that one instead.
72 Possible Errors: [service].Error.InvalidArguments
74 void RemoveProvider(object path) [deprecated]
76 Remove a VPN specified by the object path.
78 void RegisterAgent(object path)
80 Register new agent for handling user requests.
82 Possible Errors: [service].Error.InvalidArguments
84 void UnregisterAgent(object path)
86 Unregister an existing agent.
88 Possible Errors: [service].Error.InvalidArguments
90 void RegisterCounter(object path, uint32 accuracy, uint32 period) [experimental]
92 Register a new counter for user notifications.
94 The accuracy is specified in kilo-bytes and defines
95 a threshold for counter updates. Together with the
96 period value it defines how often user space needs
97 to be updated. The period value is in seconds.
99 This interface is not meant for time tracking. If
100 the time needs to be tracked down to the second, it
101 is better to have a real timer running inside the
102 application than using this interface.
104 Also getting notified for every kilo-byte is a bad
105 choice (even if the interface supports it). Something
106 like 10 kilo-byte units or better 1 mega-byte seems
107 to be a lot more reasonable and better for the user.
109 Possible Errors: [service].Error.InvalidArguments
111 void UnregisterCounter(object path) [experimental]
113 Unregister an existing counter.
115 Possible Errors: [service].Error.InvalidArguments
117 object CreateSession(dict settings, object notifier) [experimental]
119 Create a new session for the application. Every
120 application can create multiple session with
121 different settings. The settings are described
122 as part of the session interface.
124 The notifier allows asynchronous notification about
125 session specific changes. These changes can be
126 for online/offline state or IP address changes or
127 similar things the application is required to
130 Every application should at least create one session
131 to inform about its requirements and it purpose.
133 void DestroySession(object session) [experimental]
135 Remove the previously created session.
137 If an application exits unexpectatly the session
138 will be automatically destroyed.
140 object path, dict, fd RequestPrivateNetwork(dict options)
143 Request a new Private Network, which includes the
144 creation of a tun/tap interface, and IP
145 configuration, NAT and IP forwarding on that
147 An object path, a dictionnary and a file descriptor
148 with IP settings are returned.
150 Possible Errors: [service].Error.InvalidArguments
151 [service].Error.NotSupported
153 void ReleasePrivateNetwork(object path) [experimental]
155 Releases a private network.
157 Possible Errors: [service].Error.InvalidArguments
159 void RegisterPeerService(dict specification, boolean master)
162 Registers a local P2P Peer service
164 Even if p2p techonology is not available, it will be
165 possible to register peer services, since a p2p
166 enabled WiFi device might appear at anytime. The
167 registered peer services will automatically be enabled
168 for the p2p WiFi device; the application does not need
169 to do any re-registration.
171 A Peer service belongs to the process that registers
172 it, thus if that process dies, its Peer services will
173 be destroyed as well.
175 The specification dict follows the format described
176 in the Peer API document.
178 ConnMan will be able to determine in most cases
179 whether to be the P2P Group Owner or not. If the
180 service for some reason must belong to a group that
181 this device manages, the "master" property can be
182 set. Do not enable the "master" property unless it
183 is absolutely sure that this is needed for the
184 provided peer service.
186 Possible Errors: [service].Error.InvalidArguments
187 [service].Error.AlreadyExists
188 [service].Error.NotSupported
190 void UnregisterPeerService(dict specification) [experimental]
192 Unregisters an existing local P2P Peer service
194 Possible Errors: [service].Error.InvalidArguments
195 [service].Error.NotRegistered
197 Signals TechnologyAdded(object path, dict properties)
199 Signal that is sent when a new technology is added.
201 It contains the object path of the technology and
204 TechnologyRemoved(object path)
206 Signal that is sent when a technology has been removed.
208 The object path is no longer accessible after this
209 signal and only emitted for reference.
211 ServicesChanged(array{object, dict}, array{object})
213 Signals a list of services that have been changed
214 via the first array. And a list of service that
215 have been removed via the second array.
217 The list of added services is sorted. The dictionary
218 with the properties might be empty in case none of
219 the properties have changed. Or only contains the
220 properties that have changed.
222 For newly added services the whole set of properties
225 The list of removed services can be empty.
227 This signal will only be triggered when the sort
228 order of the service list or the number of services
229 changes. It will not be emitted if only a property
230 of the service object changes. For that it is
231 required to watch the PropertyChanged signal of
234 PeersChanged(array{object, dict}, array{object}) [experimental]
236 Signals a list of peers that have been changed via the
237 first array. And a list of peer that have been removed
238 via the second array.
240 The list of changed peers is sorted. The dictionary
241 with the properties might be empty in case none of the
242 properties have changed. Or only contains the
243 properties that have changed.
245 For newly added peers the whole set of properties will
248 The list of removed peers can be empty.
250 This signal will only be triggered when the sort order
251 of the peer list or the number of peers changes. It
252 will not be emitted if only a property of the peer
253 object changes. For that it is required to watch the
254 PropertyChanged signal of the peer object.
256 PropertyChanged(string name, variant value)
258 This signal indicates a changed value of the given
261 Properties string State [readonly]
263 The global connection state of a system. Possible
264 values are "offline", "idle", "ready" and "online".
266 If the device is in offline mode, the value "offline"
267 indicates this special global state. It can also be
268 retrieved via the OfflineMode property, but is kept
269 here for consistency and to differentiate from "idle".
271 However when OfflineMode property is true, the State
272 property can still be "idle", "ready" or "online"
273 since it is possible by the end user to re-enable
274 individual technologies like WiFi and Bluetooth while
277 The states "idle", "ready" and "online" match to
278 states from the services. If no service is in
279 either "ready" or "online" state it will indicate
282 If at least one service is in "ready" state and no
283 service is in "online" state, then it will indicate
286 When at least one service is in "online" state,
287 this property will indicate "online" as well.
289 boolean OfflineMode [readwrite]
291 The offline mode indicates the global setting for
292 switching all radios on or off. Changing offline mode
293 to true results in powering down all devices. When
294 leaving offline mode the individual policy of each
295 device decides to switch the radio back on or not.
297 During offline mode, it is still possible to switch
298 certain technologies manually back on. For example
299 the limited usage of WiFi or Bluetooth devices might
300 be allowed in some situations.
302 boolean SessionMode [readwrite] [experminental][deprecated]
304 This property exists only for compatibility reasons
305 and does not affect ConnMan in any way.
307 The default value is false.