Commit Graph

14 Commits

Author SHA1 Message Date
Aleksander Morgado
28f13c09ec mmcli: abort certain operations if modem is unlocked
Do not try to perform feature/capability specific actions if we're still
unlocked, as the modem didn't yet export the feature/capability specific
interface.

The only interfaces expected while modem is unlocked are the Modem and Simple
interfaces, as well as the SIM interface in the SIM object, of course.
2012-03-26 13:00:07 +02:00
Aleksander Morgado
467b8892ae mmcli: ensure the modem exports the Simple interface before trying to use it 2012-03-26 12:09:33 +02:00
Aleksander Morgado
cd63df938f libmm-common: `MMSimpleStatus' won't be considered internal any more
Renamed `MMCommonSimpleProperties' to `MMSimpleStatus', and removed the
`MMSimpleStatusProperties' provided in libmm-glib. We'll just use the original
one from libmm-common always.
2012-03-16 14:53:20 +01:00
Aleksander Morgado
1385eb394f libmm-common: `MMSimpleConnectProperties' won't be considered internal any more
Renamed `MMCommonConnectProperties' to `MMSimpleConnectProperties', and removed
the `MMModemSimpleConnectProperties' provided in libmm-glib. We'll just use the
original one from libmm-common always.
2012-03-16 14:53:19 +01:00
Aleksander Morgado
d528a2211b cli: ensure EOL is added at every error message 2012-03-15 14:15:01 +01:00
Aleksander Morgado
c753649361 cli: use new enums/flags string getters/builders 2012-03-15 14:14:53 +01:00
Aleksander Morgado
31131a1f66 cli: print properties only if registered in the specific network(s)
If registered in the 3GPP network, print 3GPP-specific properties; and if
registered in a CDMA network, print CDMA-specific properties.
2012-03-15 14:14:50 +01:00
Aleksander Morgado
5f5ad38431 cli: include CDMA-specific properties in the simple status report 2012-03-15 14:14:50 +01:00
Aleksander Morgado
8c704ea7a2 libmm-glib: prefix with '3gpp' the 3GPP-specific simple status properties 2012-03-15 14:14:50 +01:00
Aleksander Morgado
eb1c7afc8c cli: implement `--simple-status' 2012-03-15 14:14:39 +01:00
Aleksander Morgado
0cdb293452 cli: new `simple-disconnect' command
This command doesn't expect any argument, it will disconnect all available
bearers. You can disconnect specific bearers using `--bearer' and
`--disconnect'.
2012-03-15 14:14:38 +01:00
Aleksander Morgado
3c90793f22 cli: use the new properties handler object in simple Connect() 2012-03-15 14:14:38 +01:00
Aleksander Morgado
9d7e3de4cd api: MMModemBand is now an enum, not flags
We don't want to handle bands as flags, in order to avoid the need of 64-bits
for the enum. This change implies that setting allowed bands will be done by
giving an array of uint32 values, signature "au".
2012-03-15 14:14:37 +01:00
Aleksander Morgado
21d3aed125 cli: implement actions from the Simple interface 2012-03-15 14:14:37 +01:00