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
27 Return global connection state of a system. The
28 same value is return via the State property.
30 Possible Errors: [service].Error.InvalidArguments
32 object CreateProfile(string name)
34 Create and add new profile with the specified
37 Possible Errors: [service].Error.InvalidArguments
39 void RemoveProfile(object path)
41 Remove profile with specified object path.
43 It is not possible to remove the current active
44 profile. To remove the active profile a different
45 one must be selected via ActiveProfile property
48 At minimum one profile must be available all the time.
50 Possible Errors: [service].Error.InvalidArguments
52 void RequestScan(string type)
54 Request to trigger a scan for the specified
55 technology. The empty string "" triggers scanning
58 Possible Errors: [service].Error.InvalidArguments
60 void EnableTechnology(string type)
62 Enable specified type of technologies.
64 Possible Errors: [service].Error.InvalidArguments
66 void DisableTechnology(string type)
68 Disable specified type of technologies.
70 Possible Errors: [service].Error.InvalidArguments
72 object ConnectService(dict network)
74 Connect to a network specified by the given
77 For connecting to a hidden WiFi network for example
78 it is required that Type = "wifi" and the SSID
79 properties are provided.
81 When successful this method will return object
82 path of the service object.
84 This method can also be used to connect to an
85 already existing service. It works exactly the
86 same as executing the Connect method from the
89 This method call will only return in case of an
90 error or when the service is fully connected. So
91 setting a longer D-Bus timeout might be a really
94 Possible Errors: [service].Error.InvalidArguments
96 void RegisterAgent(object path)
98 Register new agent for handling user requests.
100 Possible Errors: [service].Error.InvalidArguments
102 void UnregisterAgent(object path)
104 Unregister an existing agent.
106 Possible Errors: [service].Error.InvalidArguments
108 void RegisterCounter(object path, uint32 interval)
110 Register a new counter for user notifications.
112 Possible Errors: [service].Error.InvalidArguments
114 void UnregisterCounter(object path)
116 Unregister an existing counter.
118 Possible Errors: [service].Error.InvalidArguments
120 Signals PropertyChanged(string name, variant value)
122 This signal indicates a changed value of the given
125 StateChanged(string state)
127 This signal is similar to the PropertyChanged signal
128 for the State property.
130 It exists for application state only care about the
131 current state and so can avoid to be woken up when
132 other details changes.
134 Properties string State [readonly]
136 The global connection state of a system. Possible
137 values are "online" if at least one connection exists
138 and "offline" if no device is connected.
140 In certain situations the state might change to
141 the value "connected". This can only be seen if
142 previously no connection was present.
144 array{string} AvailableTechnologies [readonly]
146 The list of available technologies. The strings
147 are the same as the ones from the service types.
149 array{string} EnabledTechnologies [readonly]
151 The list of enabled technologies. The strings
152 are the same as the ones from the service types.
154 array{string} ConnectedTechnologies [readonly]
156 The list of connected technologies. The strings
157 are the same as the ones from the service type.
159 string DefaultTechnology [readonly]
161 The current connected technology which holds the
164 boolean OfflineMode [readwrite]
166 The offline mode indicates the global setting for
167 switching all radios on or off. Changing offline mode
168 to true results in powering down all devices. When
169 leaving offline mode the individual policy of each
170 device decides to switch the radio back on or not.
172 During offline mode, it is still possible to switch
173 certain technologies manually back on. For example
174 the limited usage of WiFi or Bluetooth devices might
175 be allowed in some situations.
177 object ActiveProfile [readwrite]
179 Object path of the current active profile.
181 array{object} Profiles [readonly]
183 List of profile object paths.
185 array{object} Devices [readonly]
187 List of device object paths.
189 array{object} Services [readonly]
191 List of service object paths. The list is sorted
192 internally to have the service with the default
193 route always first and then the favorite services
194 followed by scan results.
196 This list represents the available services for the
197 current selected profile. If the profile gets changed
198 then this list will be updated.
200 The same list is available via the profile object
201 itself. It is just provided here for convenience of
202 applications only dealing with the current active