4 Service org.moblin.connman
5 Interface org.moblin.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 object AddProfile(string name)
27 Add a new profile with the specified name.
29 It is possible to create two profiles with the same
30 name. The identification is done via the object path
31 and not the name of the profile.
33 Possible Errors: [service].Error.InvalidArguments
35 void RemoveProfile(object path)
37 Remove profile with specified object path.
39 It is not possible to remove the current active
40 profile. To remove the active profile a different
41 one must be selected via ActiveProfile property
44 At minimum one profile must be available all the time.
46 Possible Errors: [service].Error.InvalidArguments
48 void RequestScan(string type)
50 Request to trigger a scan for the specified
51 technology. The empty string "" triggers scanning
54 Possible Errors: [service].Error.InvalidArguments
56 void EnableTechnology(string type)
58 Enable specified type of technologies.
60 Possible Errors: [service].Error.InvalidArguments
62 void DisableTechnology(string type)
64 Disable specified type of technologies.
66 Possible Errors: [service].Error.InvalidArguments
68 object ConnectService(dict network)
70 Connect to a network specified by the given
73 For connecting to a hidden WiFi network for example
74 it is required that Type = "wifi" and the SSID
75 properties are provided.
77 When successful this method will return object
78 path of the service object.
80 This method can also be used to connect to an
81 already existing service. It works exactly the
82 same as executing the Connect method from the
85 This method call will only return in case of an
86 error or when the service is fully connected. So
87 setting a longer D-Bus timeout might be a really
90 Possible Errors: [service].Error.InvalidArguments
92 void RegisterAgent(object path)
94 Register new agent for handling user requests.
96 Possible Errors: [service].Error.InvalidArguments
98 void UnregisterAgent(object path)
100 Unregister an existing agent.
102 Possible Errors: [service].Error.InvalidArguments
104 Signals PropertyChanged(string name, variant value)
106 This signal indicates a changed value of the given
109 StateChanged(string state)
111 This signal is similar to the PropertyChanged signal
112 for the State property.
114 It exists for application state only care about the
115 current state and so can avoid to be woken up when
116 other details changes.
118 Properties string State [readonly]
120 The global connection state of a system. Possible
121 values are "online" if at least one connection exists
122 and "offline" if no device is connected.
124 In certain situations the state might change to
125 the value "connected". This can only be seen if
126 previously no connection was present.
128 array{string} AvailableTechnologies [readonly]
130 The list of available technologies. The strings
131 are the same as the ones from the service types.
133 array{string} EnabledTechnologies [readonly]
135 The list of enabled technologies. The strings
136 are the same as the ones from the service types.
138 array{string} ConnectedTechnologies [readonly]
140 The list of connected technologies. The strings
141 are the same as the ones from the service type.
143 boolean OfflineMode [readwrite]
145 The offline mode indicates the global setting for
146 switching all radios on or off. Changing offline mode
147 to true results in powering down all devices. When
148 leaving offline mode the individual policy of each
149 device decides to switch the radio back on or not.
151 During offline mode, it is still possible to switch
152 certain technologies manually back on. For example
153 the limited usage of WiFi or Bluetooth devices might
154 be allowed in some situations.
156 object ActiveProfile [readwrite]
158 Object path of the current active profile.
160 array{object} Profiles [readonly]
162 List of profile object paths.
164 array{object} Devices [readonly]
166 List of device object paths.
168 array{object} Services [readonly]
170 List of service object paths. The list is sorted
171 internally to have the service with the default
172 route always first and then the favorite services
173 followed by scan results.
175 This list represents the available services for the
176 current selected profile. If the profile gets changed
177 then this list will be updated.
179 The same list is available via the profile object
180 itself. It is just provided here for convenience of
181 applications only dealing with the current active
184 array{object} Connections [readonly]
186 List of active connection object paths.