1 Connection Manager hierarchy
5 Interface org.ofono.ConnectionManager
8 Methods dict GetProperties()
10 Returns all global system properties. See the
11 properties section for available properties.
13 void SetProperty(string property, variant value)
15 Sets the property to a desired value
17 Possible Errors: [service].Error.InProgress
18 [service].Error.NotImplemented
19 [service].Error.InvalidArguments
20 [service].Error.Failed
24 Deactivates all active contexts.
26 Possible Errors: [service].Error.InProgress
27 [service].Error.InvalidArguments
28 [service].Error.Failed
30 array{object,dict} GetContexts()
32 Get array of context objects and properties.
34 The method should only be call once per application.
35 Further changes shall be monitored via ContextAdded
36 ContextRemoved signals.
38 object AddContext(string type)
40 Creates a new Primary context. The type contains
41 the intended purpose of the context.
43 For possible values of the type parameter see the
44 Type documentation of ConnectionContext interface.
45 Returns the object path of the created context.
47 Possible Errors: [service].Error.InvalidArguments
48 [service].Error.InvalidFormat
49 [service].Error.Failed
51 void RemoveContext(object context)
53 Removes a primary context. All secondary contexts, if
54 any, associated with the primary context are also
57 Possible Errors: [service].Error.InProgress
58 [service].Error.InvalidArguments
59 [service].Error.InvalidFormat
60 [service].Error.NotFound
61 [service].Error.Failed
65 Removes all contexts and re-provisions from the APN
66 database. Contexts must all be deactivated for this
67 method to work, and the atom must not be powered.
69 Possible Errors: [service].Error.InProgress
70 [service].Error.InvalidArguments
71 [service].Error.NotAllowed
73 Signals PropertyChanged(string property, variant value)
75 This signal indicates a changed value of the given
78 ContextAdded(object path, dict properties)
80 Signal that gets emitted when a new context has
81 been created. It contains the context object path
84 ContextRemoved(object path)
86 Signal that gets emitted when a context has been
87 removed. The object path of the context is only
88 included for reference. Its properties are no
89 longer accessible at this point.
91 Properties boolean Attached [readonly]
93 Contains whether the Packet Radio Service is attached.
94 The attach state might change dynamically based on
95 availability of network resources. If this value
96 changes to false, the user can assume that all
97 contexts have been deactivated.
99 If the modem is detached, certain features will not
100 be available, e.g. receiving SMS over packet radio
101 or network initiated PDP activation.
103 string Bearer [readonly, optional]
105 Contains the data bearer technology as reported by the
106 GPRS service registration (if known).
109 "none", "gsm", "edge", "umts", "hsdpa", "hsupa",
110 "hspa" (HSDPA and HSUPA at the same time) and
113 boolean Suspended [readonly, optional]
115 Contains whether the GPRS service is suspended.
116 During suspended state the modem is attached to the
117 GPRS service and all contexts remain established,
118 however, data transfer is not possible.
120 The suspended state may be entered if the modem is
121 temporarily out of network coverage. GPRS class B
122 modems will suspend GPRS whenever a voice call is
123 active at the same time. GPRS may also be suspended
124 if the network does not support simultaneous packet
125 data and voice. Various signalling procedures may
126 also cause GPRS to be briefly suspended.
128 As the suspension may be brief, clients should wait
129 for an appropriate time for GPRS service to resume
130 before taking corrective action.
132 boolean RoamingAllowed [readwrite]
134 Contains whether data roaming is allowed. In the off
135 setting, if the packet radio registration state
136 indicates that the modem is roaming, oFono will
137 automatically detach and no further connection
138 establishment will be possible.
140 boolean Powered [readwrite]
142 Controls whether packet radio use is allowed. Setting
143 this value to off detaches the modem from the
144 Packet Domain network.
146 Connection Context hierarchy
150 Interface org.ofono.ConnectionContext
151 Object path [variable]
153 Methods dict GetProperties()
154 Returns all properties for the context object.
156 void SetProperty(string property, variant value)
158 Sets the property to a desired value
160 Possible Errors: [service].Error.InvalidArguments
161 [service].Error.InvalidFormat
162 [service].Error.Failed
163 [service].Error.InProgress
164 [service].Error.NotAttached
165 [service].Error.AttachInProgress
166 [service].Error.NotImplemented
168 Signals PropertyChanged(string property, variant value)
170 This signal indicates a changed value of the given
173 Properties boolean Active [readwrite]
175 Holds whether the context is activated. This value
176 can be set to activate / deactivate the context.
178 string AccessPointName [readwrite]
180 Holds the name of the access point. This is
181 abbreviated as APN. This value cannot be changed when
182 the context is active.
184 string Type [readwrite]
186 Contains the intended usage type for this context.
187 The currently supported values are:
188 "internet" - General internet connectivity
189 "mms" - Used by MMS related services
190 "wap" - Used by WAP related services
191 "ims" - Used by IMS related services
193 string AuthenticationMethod [readwrite]
194 Holds the PPP authentication method to use. Valid
195 values are "pap" and "chap". Defaults to "chap".
197 string Username [readwrite]
199 Holds the username to be used for authentication
200 purposes. This value cannot be changed when the
203 string Password [readwrite]
205 Holds the password to be used for authentication
206 purposes. This value cannot be changed when the
209 string Protocol [readwrite]
211 Holds the protocol for this context. Valid values
212 are: "ip", "ipv6" and "dual".
214 string Name [readwrite]
216 The name is a free form string that describes this
217 context. The name should not be empty and limited
218 to a short string for display purposes.
220 dict Settings [readonly, optional]
222 Holds all the IP network settings
224 string Interface [readonly, optional]
226 Holds the interface of the network interface
227 used by this context (e.g. "ppp0" "usb0")
229 string Method [readonly, optional]
231 Holds the IP network config method
232 "static"- Set IP network statically
233 "dhcp" - Set IP network through DHCP
235 string Address [readonly, optional]
237 Holds the IP address for this context.
239 string Netmask [readonly, optional]
241 Holds the Netmask for this context.
243 array{string} DomainNameServers [readonly, optional]
245 Holds the list of domain name servers for this
248 string Gateway [readonly, optional]
250 Holds the gateway IP for this connection.
252 string Proxy [readonly, MMS only]
254 Holds the current proxy information for
257 In combination with the Interface value
258 this allows access to the services offered
261 It is possible that this reflects just the
262 MessageProxy property if such a routing can
263 be set up. However this can also be pointing
264 to a local proxy on 127.0.0.1 and then using
265 the loopback interace lo for it.
267 Users of this context should bind to the
268 provided interface and only attempt access
269 via this proxy. All other values are left
272 dict IPv6.Settings [readonly, optional]
274 Holds all the IPv6 network settings
276 string Interface [readonly, optional]
278 Holds the interface of the network interface
279 used by this context (e.g. "ppp0" "usb0")
281 string Address [readonly, optional]
283 Holds the IP address for this context.
285 byte PrefixLength [readonly, optional]
287 Holds the prefix length.
289 array{string} DomainNameServers [readonly, optional]
291 Holds the list of domain name servers for this
294 string Gateway [readonly, optional]
296 Holds the gateway IP for this connection.
298 string MessageProxy [readwrite, MMS only]
300 Holds the MMS Proxy setting.
302 string MessageCenter [readwrite, MMS only]
304 Holds the MMSC setting.