cli: Add support for listing and deleting Cell Broadcast messages
This adds
```
$ mmcli -m 0 --cell-broadcast-list-cbm
/org/freedesktop/ModemManager1/CBM/0 (received)
/org/freedesktop/ModemManager1/CBM/0 (received)
$ mmcli -m 0 --cell-broadcast-delete-cbm=0
successfully deleted CBM from modem
$ mmcli -m 0 --cbm 0
--------------------------
General | path: /org/freedesktop/ModemManager1/CBM/1
--------------------------
Content | text: This is a test of the Ontario Alert Ready System. There is no danger to your health or safety
--------------------------
Properties | update: 0
| message code: 0
```
Signed-off-by: Guido Günther <agx@sigxcpu.org>
This commit is contained in:
committed by
Aleksander Morgado
parent
502e0c920f
commit
b491bc474e
@@ -87,6 +87,9 @@ static SectionInfo section_infos[] = {
|
||||
[MMC_S_SMS_PROPERTIES] = { "Properties" },
|
||||
[MMC_S_SIM_GENERAL] = { "General" },
|
||||
[MMC_S_SIM_PROPERTIES] = { "Properties" },
|
||||
[MMC_S_CBM_GENERAL] = { "General" },
|
||||
[MMC_S_CBM_CONTENT] = { "Content" },
|
||||
[MMC_S_CBM_PROPERTIES] = { "Properties" },
|
||||
};
|
||||
|
||||
/******************************************************************************/
|
||||
@@ -285,6 +288,11 @@ static FieldInfo field_infos[] = {
|
||||
[MMC_F_CALL_AUDIO_FORMAT_ENCODING] = { "call.audio-format.encoding", "encoding", MMC_S_CALL_AUDIO_FORMAT, },
|
||||
[MMC_F_CALL_AUDIO_FORMAT_RESOLUTION] = { "call.audio-format.resolution", "resolution", MMC_S_CALL_AUDIO_FORMAT, },
|
||||
[MMC_F_CALL_AUDIO_FORMAT_RATE] = { "call.audio-format.rate", "rate", MMC_S_CALL_AUDIO_FORMAT, },
|
||||
[MMC_F_CBM_GENERAL_DBUS_PATH] = { "cbm.dbus-path", "path", MMC_S_CBM_GENERAL, },
|
||||
[MMC_F_CBM_CONTENT_TEXT] = { "cbm.content.text", "text", MMC_S_CBM_CONTENT, },
|
||||
[MMC_F_CBM_PROPERTIES_CHANNEL] = { "cbm.properties.channel", "channel", MMC_S_CBM_PROPERTIES, },
|
||||
[MMC_F_CBM_PROPERTIES_UPDATE] = { "cbm.properties.update", "update", MMC_S_CBM_PROPERTIES, },
|
||||
[MMC_F_CBM_PROPERTIES_MESSAGE_CODE] = { "cbm.properties.message-code", "message code", MMC_S_CBM_PROPERTIES, },
|
||||
[MMC_F_SMS_GENERAL_DBUS_PATH] = { "sms.dbus-path", "path", MMC_S_SMS_GENERAL, },
|
||||
[MMC_F_SMS_CONTENT_NUMBER] = { "sms.content.number", "number", MMC_S_SMS_CONTENT, },
|
||||
[MMC_F_SMS_CONTENT_TEXT] = { "sms.content.text", "text", MMC_S_SMS_CONTENT, },
|
||||
@@ -321,6 +329,7 @@ static FieldInfo field_infos[] = {
|
||||
[MMC_F_MODEM_LIST_DBUS_PATH] = { "modem-list", "modems", MMC_S_UNKNOWN, },
|
||||
[MMC_F_SMS_LIST_DBUS_PATH] = { "modem.messaging.sms", "sms messages", MMC_S_UNKNOWN, },
|
||||
[MMC_F_CALL_LIST_DBUS_PATH] = { "modem.voice.call", "calls", MMC_S_UNKNOWN, },
|
||||
[MMC_F_CBM_LIST_DBUS_PATH] = { "modem.cell-broadcast.cbm", "cell broadcast messages", MMC_S_UNKNOWN, },
|
||||
};
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user