@@ -151,6 +151,17 @@ def deleteCbm(self, cbm_path):
151
151
)
152
152
153
153
154
+ def setChannels (_self , channels ):
155
+ modem_obj = mockobject .objects [SIMPLE_MODEM_PATH ]
156
+
157
+ modem_obj .UpdateProperties (
158
+ MODEM_CELL_BROADCAST_IFACE ,
159
+ {
160
+ "Channels" : dbus .Array (channels ),
161
+ },
162
+ )
163
+
164
+
154
165
@dbus .service .method (MOCK_IFACE , in_signature = "" , out_signature = "ss" )
155
166
def AddSimpleModem (self ):
156
167
"""Convenience method to add a simple Modem object
@@ -196,11 +207,13 @@ def AddSimpleModem(self):
196
207
modem .AddProperties (MODEM_3GPP_IFACE , modem_3gpp_props )
197
208
198
209
modem_cell_broadcast_props = {
210
+ "Channels" : dbus .Array ([], signature = "(uu)" ),
199
211
"CellBroadcasts" : dbus .Array ([], signature = "o" ),
200
212
}
201
213
modem_cell_broadcast_methods = [
202
214
("List" , "" , "ao" , listCbm ),
203
215
("Delete" , "o" , "" , deleteCbm ),
216
+ ("SetChannels" , "a(uu)" , "" , setChannels ),
204
217
]
205
218
modem .AddProperties (MODEM_CELL_BROADCAST_IFACE , modem_cell_broadcast_props )
206
219
modem .AddMethods (MODEM_CELL_BROADCAST_IFACE , modem_cell_broadcast_methods )
0 commit comments