Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(487)

Side by Side Diff: doc/service-api.txt

Issue 3547005: Documentation update: device-lowlevel-api and service-api (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/flimflam.git
Patch Set: Minor typo Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « doc/device-lowlevel-api.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Service hierarchy 1 Service hierarchy
2 ================= 2 =================
3 3
4 Service org.chromium.flimflam 4 Service org.chromium.flimflam
5 Interface org.chromium.flimflam.Service 5 Interface org.chromium.flimflam.Service
6 Object path [variable prefix]/{service0,service1,...} 6 Object path [variable prefix]/{service0,service1,...}
7 7
8 Methods dict GetProperties() 8 Methods dict GetProperties()
9 9
10 Returns properties for the service object. See 10 Returns properties for the service object. See
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 Disconnect this service. If the service is not 52 Disconnect this service. If the service is not
53 connected an error message will be generated. 53 connected an error message will be generated.
54 54
55 On Ethernet devices this will disconnect the IP 55 On Ethernet devices this will disconnect the IP
56 details from the service. It will not magically 56 details from the service. It will not magically
57 unplug the cable. When no cable is plugged in this 57 unplug the cable. When no cable is plugged in this
58 method will fail. 58 method will fail.
59 59
60 This method can also be used to abort a previous 60 This method can also be used to abort a previous
61 » » » connectiong attempt via the Connect method. 61 » » » connection attempt via the Connect method.
62 62
63 Possible Errors: [service].Error.InvalidArguments 63 Possible Errors: [service].Error.InvalidArguments
64 64
65 void Remove() 65 void Remove()
66 66
67 A successfully connected service with Favorite=true 67 A successfully connected service with Favorite=true
68 can be removed this way. If it is connected, it will 68 can be removed this way. If it is connected, it will
69 be automatically disconnected first. 69 be automatically disconnected first.
70 70
71 If the service requires a passphrase it will be 71 If the service requires a passphrase it will be
(...skipping 21 matching lines...) Expand all
93 void MoveAfter(object service) 93 void MoveAfter(object service)
94 94
95 If a service has been used before, this allows a 95 If a service has been used before, this allows a
96 reorder of the favorite services. 96 reorder of the favorite services.
97 97
98 The target service object must be part of this 98 The target service object must be part of this
99 profile. Moving between profiles is not supported. 99 profile. Moving between profiles is not supported.
100 100
101 Possible Errors: [service].Error.InvalidArguments 101 Possible Errors: [service].Error.InvalidArguments
102 102
103 » » void ActivateCellularModem() 103 » » void ActivateCellularModem(string carrier)
104 104
105 » » » Activate a cellular modem. 105 » » » Activate a cellular modem on the provided carrier.
106 106
107 This method returns immediately. The caller 107 This method returns immediately. The caller
108 can either poll the Cellular.ActivationState 108 can either poll the Cellular.ActivationState
109 property, or monitor the PropertyChanged 109 property, or monitor the PropertyChanged
110 signal to know when and if the 110 signal to know when and if the
111 ActivateCellularModem call succeeded. 111 ActivateCellularModem call succeeded.
112 112
113 The correct carrier specific modem firmware 113 The correct carrier specific modem firmware
114 must already be loaded before this method is 114 must already be loaded before this method is
115 called. 115 called.
116 116
117 If this method is called for a non-cellular 117 If this method is called for a non-cellular
118 service or on a service associated with a 118 service or on a service associated with a
119 non-CDMA device, it will return a NotSupported 119 non-CDMA device, it will return a NotSupported
120 » » » error. If the device is already activated 120 » » » error.
121 » » » nothing is returned, but if the device needs 121 » » »
122 » » » to be activated an InProgress error is 122 » » » If the device is already activated nothing is returned.
123 » » » returned. 123 » » » but if the device needs to be activated an InProgress
124 » » » error is returned.
124 125
126 Expected Result: [service].Error.InProgress
125 Possible Errors: [service].Error.NotSupported 127 Possible Errors: [service].Error.NotSupported
126 Possible Errors: [service].Error.InProgress
127
128 128
129 Signals PropertyChanged(string name, variant value) 129 Signals PropertyChanged(string name, variant value)
130 130
131 This signal indicates a changed value of the given 131 This signal indicates a changed value of the given
132 property. 132 property.
133 133
134 Properties string State [readonly] 134 Properties string State [readonly]
135 135
136 The state of the service. 136 The state of the service.
137 137
138 Possible states are: "idle", "carrier", "association", 138 Possible states are: "idle", "carrier", "association",
139 "configuration", "ready", "disconnect", "failure", and 139 "configuration", "ready", "disconnect", "failure", and
140 "activation-failure". 140 "activation-failure".
141 141
142 "idle" means the service is not enabled or otherwise 142 "idle" means the service is not enabled or otherwise
143 operational. 143 operational.
144 144
145 "carrier" means the associated device is powered and 145 "carrier" means the associated device is powered and
146 ready for Layer 2 operation; e.g. a wired Ethernet 146 ready for Layer 2 operation; e.g. a wired Ethernet
147 device that is powered up and connected to a switch. 147 device that is powered up and connected to a switch.
148 148
149 "configuration" means the service is setup for Layer 149 "configuration" means the service is setup for Layer
150 2 operation but not yet setup at Layer 3. 150 2 operation but not yet setup at Layer 3.
151 151
152 "association" and "disconnect" are intermediate states 152 "association" and "disconnect" are intermediate states
153 associated with connection-based devices such as wifi 153 associated with connection-based devices such as wifi
154 » » » and celluar. These are exposed for UI applications to 154 » » » and cellular. These are exposed for UI applications to
155 provide more fine-grained feedback. 155 provide more fine-grained feedback.
156 156
157 "ready" means the device is fully setup and ready for 157 "ready" means the device is fully setup and ready for
158 use; i.e. it is ready to transit data. 158 use; i.e. it is ready to transit data.
159 159
160 "failure" means an error occurred when attempting to 160 "failure" means an error occurred when attempting to
161 bring a service to the "ready" state. The Error 161 bring a service to the "ready" state. The Error
162 property should be consulted for an explanation. 162 property should be consulted for an explanation.
163 163
164 "activation-failure" means an error occurred while 164 "activation-failure" means an error occurred while
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 226
227 string Passphrase [readwrite] 227 string Passphrase [readwrite]
228 228
229 If the service type is "wifi", then this property 229 If the service type is "wifi", then this property
230 holds a passphrase used in setting up services of 230 holds a passphrase used in setting up services of
231 type "wep", "wpa", and "rsn", or a private 231 type "wep", "wpa", and "rsn", or a private
232 key password used in setting up services of 232 key password used in setting up services of
233 type "802_1x". 233 type "802_1x".
234 234
235 This property is included in get requests only 235 This property is included in get requests only
236 » » » when the requestor has sufficient privileges. 236 » » » when the requester has sufficient privileges.
237 237
238 Note that no PropertyChanged signals are sent for 238 Note that no PropertyChanged signals are sent for
239 this property. The PassphraseRequired property 239 this property. The PassphraseRequired property
240 should be monitored instead. 240 should be monitored instead.
241 241
242 string Identity [readwrite] 242 string Identity [readwrite]
243 243
244 If the service type is "wifi", then this property 244 If the service type is "wifi", then this property
245 » » » holds a client identity string used in setting up servic es of 245 » » » holds a client identity string used in setting up
246 » » » type "802_1x". 246 » » » services of type "802_1x".
247 247
248 This property is included in get requests only 248 This property is included in get requests only
249 » » » when the requestor has sufficient privileges. 249 » » » when the requester has sufficient privileges.
250 250
251 string CertPath [readwrite] 251 string CertPath [readwrite]
252 252
253 If the service type is "wifi", then this 253 If the service type is "wifi", then this
254 property holds information that selects a 254 property holds information that selects a
255 client certificate and private key used in 255 client certificate and private key used in
256 setting up services of type "802_1x". 256 setting up services of type "802_1x".
257 257
258 If the value of the property begins with "/", 258 If the value of the property begins with "/",
259 then the property is interpreted as a path in 259 then the property is interpreted as a path in
(...skipping 10 matching lines...) Expand all
270 (used for authentication via a PKCS#11 270 (used for authentication via a PKCS#11
271 provider), ca_cert, client_cert, private_key, 271 provider), ca_cert, client_cert, private_key,
272 private_key_passwd, and identity. 272 private_key_passwd, and identity.
273 273
274 Note that the "SETTINGS:" mechanism can 274 Note that the "SETTINGS:" mechanism can
275 replace the use of the Identity and Passphrase 275 replace the use of the Identity and Passphrase
276 parameters for 802.1x, and that the CertPath 276 parameters for 802.1x, and that the CertPath
277 parameter name is poorly chosen for this use. 277 parameter name is poorly chosen for this use.
278 278
279 This property is included in get requests only 279 This property is included in get requests only
280 » » » when the requestor has sufficient privileges. 280 » » » when the requester has sufficient privileges.
281 281
282 boolean PassphraseRequired [readonly] 282 boolean PassphraseRequired [readonly]
283 283
284 If the service type is "wifi", then this property 284 If the service type is "wifi", then this property
285 indicates if a passphrase or key (for WEP) is required. 285 indicates if a passphrase or key (for WEP) is required.
286 286
287 If a passphrase has been set already or if no 287 If a passphrase has been set already or if no
288 passphrase is needed, then this property will 288 passphrase is needed, then this property will
289 be set to false. 289 be set to false.
290 290
(...skipping 21 matching lines...) Expand all
312 boolean AutoConnect [readwrite] 312 boolean AutoConnect [readwrite]
313 313
314 If set to true, this service will auto-connect 314 If set to true, this service will auto-connect
315 when no other connection is available. If multiple 315 when no other connection is available. If multiple
316 services are marked for auto-connect then the highest 316 services are marked for auto-connect then the highest
317 priority available service will be selected. 317 priority available service will be selected.
318 318
319 For favorite services it is possible to change 319 For favorite services it is possible to change
320 this value to prevent or permit automatic 320 this value to prevent or permit automatic
321 connection attempts. 321 connection attempts.
322
323 For non favorite services, this always reads FALSE and
324 is not writeable.
322 325
323 » » string Device [readonly] 326 » » object Device [readonly]
324 327
325 The object path of the device associated with this 328 The object path of the device associated with this
326 service. This value may be used to retrieve and 329 service. This value may be used to retrieve and
327 manipulate Layer 3 configuration state. 330 manipulate Layer 3 configuration state.
328 331
329 string Cellular.ActivationState [readonly] 332 string Cellular.ActivationState [readonly]
330 333
331 If the service type is "cellular", then this 334 If the service type is "cellular", then this
332 property is present and indicates if the 335 property is present and indicates if the
333 device has been activated on the cellular 336 device has been activated on the cellular
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 gives the roaming status of the modem on the current 393 gives the roaming status of the modem on the current
391 network. Possible values are "home", "roaming", and 394 network. Possible values are "home", "roaming", and
392 "unknown". 395 "unknown".
393 396
394 boolean Cellular.RestrictedPool [readonly] 397 boolean Cellular.RestrictedPool [readonly]
395 If the service type is "cellular", then this property 398 If the service type is "cellular", then this property
396 indicates whether the mobile data connection is within 399 indicates whether the mobile data connection is within
397 a "walled garden", in which only a restricted set of 400 a "walled garden", in which only a restricted set of
398 IP addresses can be reached. A value of "true" indicates 401 IP addresses can be reached. A value of "true" indicates
399 that the connection is in a restricted IP pool. 402 that the connection is in a restricted IP pool.
403
404 string Cellular.OlpUrl [readonly]
405
406 If the service type is "cellular", then this property
407 gives the URL of an online payment portal (OLP) at
408 which a user can sign up for, or modify, a mobile data
409 plan.
410
411 string Passphrase [readwrite]
412
413 If the service type is "wifi", then this property
414 gives the Passphrase.
415
416 This property is only accessible if the caller has
417 'secret' security privileges.
418
419 string Identity [readwrite]
420
421 If the service type is "wifi", then this property
422 gives the 802.1X identity.
423
424 This property is only accessible if the caller has
425 'secret' security privileges.
426
427 string CertPath [readwrite]
428
429 If the service type is "wifi", then this property
430 gives the 802.1X Certificate Path.
431
432 This property is only accessible if the caller has
433 'secret' security privileges.
434
435 string PassphraseRequired [readonly]
436
437 If the service type is "wifi", then this property
438 indicates that a Passphrase is required but not
439 currently set.
OLDNEW
« no previous file with comments | « doc/device-lowlevel-api.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698