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 Possible Errors: [service].Error.InvalidArguments
64 A successfully connected service with Favorite=true
65 can be removed this way. If it is connected, it will
66 be automatically disconnected first.
68 If the service requires a passphrase it will be
69 cleared and forgotten when removing.
71 This is similar to setting the Favorite property
72 to false, but that is currently not supported.
74 Calling this method on Ethernet devices will cause
75 an error message. It is not possible to remove these
78 Possible Errors: [service].Error.InvalidArguments
80 void MoveBefore(object service)
82 If a service has been used before, this allows a
83 reorder of the favorite services.
85 The target service object must be part of this
86 profile. Moving between profiles is not supported.
88 Possible Errors: [service].Error.InvalidArguments
90 void MoveAfter(object service)
92 If a service has been used before, this allows a
93 reorder of the favorite services.
95 The target service object must be part of this
96 profile. Moving between profiles is not supported.
98 Possible Errors: [service].Error.InvalidArguments
100 Signals PropertyChanged(string name, variant value)
102 This signal indicates a changed value of the given
105 Properties string State [readonly]
107 The service state information.
109 Valid states are "idle", "failure", "association",
110 "configuration" and "ready".
112 string Error [readonly]
114 The service error status details.
116 When error occur during connection or disconnection
117 the detailed information are represented in this
118 property to help the user interface to present the
119 user with alternate options.
121 This property is only valid when the service is in
122 the "failure" state. Otherwise it might be empty or
125 Current defined error code is "dhcp-failed".
127 string Name [readonly]
129 The service name (for example "Wireless" etc.)
131 This name can be used for directly displaying it in
132 the application. It has pure informational purpose.
134 For Ethernet devices and hidden WiFi networks it is
135 not guaranteed that this property is present.
137 string Type [readonly]
139 The service type (for example "ethernet", "wifi" etc.)
141 This information should only be used to determine
142 advanced properties or showing the correct icon
145 string Mode [readonly]
147 If the service type is WiFi, then this property is
148 present and contains the mode of the network. The
149 possible values are "managed" or "adhoc".
151 This property might be only present for WiFi
154 string Security [readonly]
156 If the service type is WiFi, then this property is
157 present and contains the security method or key
160 Possible values are "none", "wep", "wpa" and "rsn".
162 This property might be only present for WiFi
165 string Passphrase [readwrite]
167 If the service type is WiFi, then this property
168 can be used to store a passphrase.
170 This property is still experimental and might be
171 removed in future version.
173 uint8 Strength [readonly]
175 Indicates the signal strength of the service. This
176 is a normalized value between 0 and 100.
178 This property will not be present for Ethernet
181 boolean Favorite [readonly]
183 Will be true if a cable is plugged in or the user
184 selected and successfully connected to this service.
186 Setting this property to true has no effect at all
187 and setting it to false is similar to the Remove()
188 method. So for now it will be considered a read
191 string IPv4.Method [readwrite]
193 The IPv4 configuration method. Possible values here
194 are "dhcp" and "static".
196 string IPv4.Address [readwrite]
198 The current configured IPv4 address.