4 Service org.moblin.connman
5 Interface org.moblin.connman.Service
6 Object path [variable prefix]/{service0,service1,...}
8 Methods dict GetProperties()
10 Returns properties for the service object. See
11 the 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 void ClearProperty(string name)
27 Clears the value of the specified property.
29 Possible Errors: [service].Error.InvalidArguments
30 [service].Error.InvalidProperty
34 Connect this service. It will attempt to connect
35 WiFi, WiMAX or Bluetooth services.
37 For Ethernet devices this method can only be used
38 if it has previously been disconnected. Otherwise
39 the plugging of a cable will trigger connecting
40 automatically. If no cable is plugged in this method
43 This method call will only return in case of an
44 error or when the service is fully connected. So
45 setting a longer D-Bus timeout might be a really
48 Possible Errors: [service].Error.InvalidArguments
52 Disconnect this service. If the service is not
53 connected an error message will be generated.
55 On Ethernet devices this will disconnect the IP
56 details from the service. It will not magically
57 unplug the cable. When no cable is plugged in this
60 This method can also be used to abort a previous
61 connectiong attempt via the Connect method.
63 Possible Errors: [service].Error.InvalidArguments
67 A successfully connected service with Favorite=true
68 can be removed this way. If it is connected, it will
69 be automatically disconnected first.
71 If the service requires a passphrase it will be
72 cleared and forgotten when removing.
74 This is similar to setting the Favorite property
75 to false, but that is currently not supported.
77 In the case a connection attempt failed and the
78 service is in the State=failure, this method can
79 also be used to reset the service.
81 Calling this method on Ethernet devices will cause
82 an error message. It is not possible to remove these
85 Possible Errors: [service].Error.InvalidArguments
87 void MoveBefore(object service)
89 If a service has been used before, this allows a
90 reorder of the favorite services.
92 The target service object must be part of this
93 profile. Moving between profiles is not supported.
95 Possible Errors: [service].Error.InvalidArguments
97 void MoveAfter(object service)
99 If a service has been used before, this allows a
100 reorder of the favorite services.
102 The target service object must be part of this
103 profile. Moving between profiles is not supported.
105 Possible Errors: [service].Error.InvalidArguments
109 Reset the counter statistics.
111 Possible Errors: None
113 Signals PropertyChanged(string name, variant value)
115 This signal indicates a changed value of the given
118 Properties string State [readonly]
120 The service state information.
122 Valid states are "idle", "failure", "association",
123 "configuration" and "ready".
125 Also "login" and "online" states are used. The
126 state "online" signals that an Internet connection
127 is available and has been verified.
129 string Error [readonly]
131 The service error status details.
133 When error occur during connection or disconnection
134 the detailed information are represented in this
135 property to help the user interface to present the
136 user with alternate options.
138 This property is only valid when the service is in
139 the "failure" state. Otherwise it might be empty or
142 Current defined error code is "dhcp-failed".
144 string Name [readonly]
146 The service name (for example "Wireless" etc.)
148 This name can be used for directly displaying it in
149 the application. It has pure informational purpose.
151 For Ethernet devices and hidden WiFi networks it is
152 not guaranteed that this property is present.
154 string Type [readonly]
156 The service type (for example "ethernet", "wifi" etc.)
158 This information should only be used to determine
159 advanced properties or showing the correct icon
162 string Mode [readonly]
164 If the service type is WiFi or Cellular, then this
165 property is present and contains the mode of the
168 For WiFi services the possible values are "managed"
169 and "adhoc". For Cellular services it describes the
170 network technology. Possible values are "gprs", "edge"
173 This property might be only present for WiFi and
176 string Security [readonly]
178 If the service type is WiFi, then this property is
179 present and contains the security method or key
182 Possible values are "none", "wep", "psk" and
183 also "ieee8021x". Alternate values for "psk"
184 can also be "wpa" and "rsn".
186 This property might be only present for WiFi
189 string Passphrase [readwrite]
191 If the service type is WiFi, then this property
192 can be used to store a passphrase.
194 No PropertyChanged signals will be send for this
195 property. The PassphraseRequired property should
196 be monitored instead.
198 This property might also not always be included
199 since it is protected by a different security policy.
201 boolean PassphraseRequired [readonly]
203 If the service type is WiFi, then this property
204 indicates if a passphrase is required.
206 If a passphrase has been set already or if no
207 passphrase is needed, then this property will
210 uint8 Strength [readonly]
212 Indicates the signal strength of the service. This
213 is a normalized value between 0 and 100.
215 This property will not be present for Ethernet
218 boolean Favorite [readonly]
220 Will be true if a cable is plugged in or the user
221 selected and successfully connected to this service.
223 This value is automatically changed and to revert
224 it back to false the Remove() method needs to be
227 boolean Immutable [readonly]
229 This value will be set to true if the service is
230 configured externally via a configuration file.
232 The only valid operation are Connect() and of
233 course Disconnect(). The Remove() method will
236 boolean AutoConnect [readwrite]
238 If set to true, this service will auto-connect
239 when not other connection is available.
241 For favorite services it is possible to change
242 this value to prevent or permit automatic
245 boolean SetupRequired [readonly]
247 If the service is Cellular, then this property
248 indicates that some extra setup steps are required.
250 In most cases it is required to fill in the APN
253 string APN [readwrite]
255 If the service is Cellular, then this property
256 contains the APN details.
258 The APN is network provider specific and even
259 sometimes data plan specific. Possible examples
260 are "isp.cingular" or "internet.t-mobile".
262 string MCC [readonly]
264 If the service is Cellular, then this property
265 contains the Mobile Country Code.
267 string MNC [readonly]
269 If the service is Cellular, then this property
270 contains the Mobile Network Code.
272 boolean Roaming [readonly]
274 This property indicates if this service is roaming.
276 In the case of Cellular services this normally
277 indicates connections to a foreign provider when
280 array{string} Nameservers [readonly]
282 The list of currently active nameservers for this
283 service. If the server is not in READY, LOGIN or
284 ONLINE state than this list will be empty.
286 Global nameservers are automatically added to this
287 list. The array represents a sorted list of the
288 current nameservers. The first one has the highest
289 priority and is used by default.
291 When using DHCP this array represents the nameservers
292 provided by the network. In case of manual settings,
293 the ones from Nameservers.Configuration are used.
295 array{string} Nameservers.Configuration [readwrite]
297 The list of manually configured domain name
298 servers. Some 3G networks don't provide correct
299 name servers and this allows for an override.
301 This array is sorted by priority and the first
302 entry in the list represents the nameserver with
303 the highest priority.
305 When using manual configuration and no global
306 nameservers are configured, then it is useful
307 to configure this setting.
309 Changes to the domain name servers can be done
310 at any time. It will not cause a disconnect of
311 the service. However there might be small window
312 where name resolution might fail.
314 array{string} Domains [readonly]
316 The list of currently used search domains.
318 array{string} Domains.Configuration [readwrite]
320 The list of manually configured search domains.
324 string Method [readonly]
326 Possible values are "dhcp", "manual"
329 The value "fixed" indicates an IP address
330 that can not be modified. For example
331 cellular networks return fixed information.
333 string Address [readonly]
335 The current configured IPv4 address.
337 string Netmask [readonly]
339 The current configured IPv4 netmask.
341 string Gateway [readonly]
343 The current configured IPv4 gateway.
345 dict IPv4.Configuration [readwrite]
347 Same values as IPv4 property. The IPv4 represents
348 the actual system configuration while this allows
351 Changing these settings will cause a state change
352 of the service. The service will become unavailable
353 until the new configuration has been successfully
356 dict Proxy [readonly]
358 string Method [readonly]
360 Possible values are "direct", "auto",
361 "manual" and "auto-config".
363 If the DHCP server provides an automatic
364 configuration URL, then this value is set
365 to "auto-config". The PAC file will be
366 referenced by the URL value.
368 If no automatic configuration is available,
369 then "direct" is set.
371 The values "auto" and "manual" are not yet
374 string URL [readonly]
376 Automatic proxy configuration URL.
378 dict Ethernet [readonly]
380 string Method [readonly]
382 Possible values are "auto" and "manual".
384 string Interface [readonly]
386 Interface name (for example eth0).
388 string Address [readonly]
390 Ethernet device address (MAC address).
392 uint16 MTU [readonly]
394 The Ethernet MTU (default is 1500).
396 uint16 Speed [readonly]
398 Selected speed of the line.
400 This information might not always be
403 string Duplex [readonly]
405 Selected duplex settings of the line.
407 Possible values are "half" and "full".
409 This information might not always be