Commit Graph

68 Commits

Author SHA1 Message Date
Aleksander Morgado
6bf277e794 libmm-glib: install missing headers 2012-05-24 09:59:52 +02:00
Nathan Williams
a07220650b libmm-glib,modem: mm_modem_{get,dup}_own_numbers(): fix inverted logic.
The string vector test was reversed, causing valid vectors not to be
returned, and commands like mmcli to not display own numbers from a
modem.

Change-Id: Ia889f49f18511a2dfcdbc71a80ee0239a6c912e0
2012-04-13 23:33:25 +02:00
Aleksander Morgado
3dd0034560 libmm-glib: provide extended getters for location information objects
The user can now query for all location information with
`mm_modem_location_get_full()', or just for specific location sources with
`mm_modem_location_get_3gpp()', `mm_modem_location_get_gps_nmea()' or
`mm_modem_location_get_gps_raw()'.
2012-03-29 09:18:04 +02:00
Aleksander Morgado
ceefa2c356 location: rework to allow multiple location sources
Location sources can now be enabled or disabled by using the mask of sources
given in Setup() (similar previous Enable()).
2012-03-29 09:17:53 +02:00
Aleksander Morgado
a3e6faeaca libmm-glib: implement Time interface specific actions 2012-03-16 14:53:22 +01:00
Aleksander Morgado
59d8110767 libmm-glib: add support to retrieve own numbers 2012-03-16 14:53:21 +01: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
bb352d5da3 libmm-common: `MMLocation3gpp' won't be considered internal any more
Renamed `MMCommonLocation3gpp' to `MMLocation3gpp', and removed the
`MMModemLocation3gpp' 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
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
d306bb082f libmm-common: `MMBearerProperties' won't be considered internal any more
Renamed `MMCommonBearerProperties' to `MMBearerProperties', and removed the
`MMBearerProperties' 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
323df60ed9 libmm-common: `MMBearerIpConfig' won't be considered internal any more
Renamed `MMCommonBearerIpConfig' to `MMBearerIpConfig', and removed the
`MMBearerIpConfig' 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
ef9fb0bfac libmm-common: `MMSmsProperties' won't be considered internal any more
Renamed `MMCommonSmsProperties' to `MMSmsProperties', and removed the
`MMSmsProperties' 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
3ccc78e858 api: `UnlockRetries' will reply a list of per-lock retry counts
Equivalent to `PinRetryCount' in the previous API. We don't have an additional
property for the retry count of the current lock, as it really is duplicating
information.
2012-03-16 14:53:19 +01:00
Nathan Williams
b6203ab425 libmm-glib: set the gdbus timeout to a value longer than that remote operation timeout
Lets commands like "mmcli -m 0 --command-timeout=60 --command='+COPS=?'" work,
instead of tripping over the 25-second gdbus default timeout first.

Change-Id: I67034423ca5ab08a07ecf3c9e313082d4860ffb3
2012-03-16 14:53:18 +01:00
Aleksander Morgado
09d2f062c7 api,dbus: rename AllowedBands' to just Bands'
ModemManager will load:
  1) The list of supported bands. Note that this doesn't mean that any possible
     combination of bands is supported, as modems may support only specific
     combinations, but at least gives a rough idea of what the modem is capable
     of handling.

  2) The list of CURRENT bands. There is no such "Allowed" bands, as we do with
     modes, modems will have a specific set of bands being currently used, which
     will be reported in the `Bands' property.

If the modem allows modifying the list of bands to use, this can be done with
the `SetBands()' method. If the modem doesn't support using a specific
combination of bands, this method will report an error.
2012-03-16 14:28:13 +01:00
Aleksander Morgado
aa2ad5c319 libmm-glib: allow retrieving the IP timeout value from the bearer 2012-03-15 14:15:06 +01:00
Nathan Williams
3c41ce5d8b api,dbus: new `Command' method in the API to send arbitrary AT commands
BUG=chromium-os:25348
TEST="mmcli -m 0 --command='E0'"
Change-Id: I320587560fde5780f9d5a4998e32364d36a71ed7
2012-03-15 14:15:06 +01:00
Aleksander Morgado
a35472b0a1 libmm-glib: allow getting SMS storage 2012-03-15 14:15:04 +01:00
Aleksander Morgado
cee94ef536 libmm-glib: new method to store SMS messages 2012-03-15 14:15:02 +01:00
Aleksander Morgado
b61c94016a api,dbus: remove the option to send the SMS in the Create() call
An SMS must be first created with the Messaging interface, and then sent using the
Send() method from the SMS-specific interface.
2012-03-15 14:15:02 +01:00
Aleksander Morgado
e82db67646 libmm-glib: implement support for the Messaging interface 2012-03-15 14:15:01 +01:00
Aleksander Morgado
26075236f6 libmm-glib: (trivial) fix some return types 2012-03-15 14:15:01 +01:00
Aleksander Morgado
9de213fcc1 libmm-glib: methods to create MMSms objects
We need them, as received messages are signaled just with their path, so the
program listening to those signals will need to create the proxy objects itself.
2012-03-15 14:15:01 +01:00
Aleksander Morgado
bfbcf3cfaf libmm-glib: new object to handle SMS objects 2012-03-15 14:15:01 +01:00
Aleksander Morgado
d30c101e53 libmm-glib: new common object to handle SMS properties
To be used when requesting to create new SMS.
2012-03-15 14:15:01 +01:00
Aleksander Morgado
a1b199d903 libmm-glib: handle the 3GPP/USSD interface 2012-03-15 14:14:57 +01:00
Aleksander Morgado
2a5e9b46b6 libmm-glib: use the common IP config object from libmm-common 2012-03-15 14:14:54 +01:00
Aleksander Morgado
98d7edadb5 libmm-glib: number no longer needed in Connect() 2012-03-15 14:14:53 +01:00
Aleksander Morgado
69e860329b libmm-glib: no need to expose custom flags string builders 2012-03-15 14:14:52 +01:00
Aleksander Morgado
b05430cb28 libmm-glib: include support for the Location interface
We hide the location signaling; not sure if we should even support it.
2012-03-15 14:14:52 +01:00
Aleksander Morgado
231e54f037 libmm-glib: implement CDMA activation request 2012-03-15 14:14:51 +01:00
Aleksander Morgado
6c36ae9101 libmm-glib: include CDMA-specific items in the simple status properties 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
d2af326e1a libmm-common: prefix with '3gpp' the 3GPP-specific simple properties 2012-03-15 14:14:50 +01:00
Aleksander Morgado
a71393f227 libmm-glib: handle the CDMA interface 2012-03-15 14:14:48 +01:00
Aleksander Morgado
014a9eddab libmm-glib: allow passing Rm protocol to bearer properties 2012-03-15 14:14:47 +01:00
Aleksander Morgado
20acb274dc libmm-glib: use g_list_free_full() when possible 2012-03-15 14:14:46 +01:00
Aleksander Morgado
fa5064ece3 libmm-glib: implement handling of GetStatus() calls in the Simple interface 2012-03-15 14:14:39 +01:00
Aleksander Morgado
f58a23c9c2 libmm-glib: new interface to handle simple status properties 2012-03-15 14:14:39 +01:00
Aleksander Morgado
0edf403734 build: fix libmm-glib library headers
Remove headers from libmm-common, and include all public headers.
2012-03-15 14:14:39 +01:00
Aleksander Morgado
dd4b073e08 libmm-glib: handle simple Disconnect() 2012-03-15 14:14:38 +01:00
Aleksander Morgado
fe7f71b677 libmm-common,libmm-glib: new object to handle bearer creation properties 2012-03-15 14:14:38 +01:00
Aleksander Morgado
dcecb94631 libmm-common,libmm-glib: new object to handle properties in simple Connect()
Instead of using type unsafe properties passed to the connect() call, we build
a new object which does the handling of the properties to be passed.
2012-03-15 14:14:37 +01:00
Aleksander Morgado
6cfccb1452 libmm-common,libmm-glib: new modes string builder 2012-03-15 14:14:37 +01:00
Aleksander Morgado
5e0df90272 libmm-common, libmm-glib: new bands string builder 2012-03-15 14:14:37 +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
90b4323b8a libmm-glib: handle the Simple interface 2012-03-15 14:14:37 +01:00
Aleksander Morgado
8fc2050e76 libmm-glib: provide a list of opaque structs with network info in scan reply 2012-03-15 14:14:36 +01:00
Aleksander Morgado
215b9c1a31 libmm-glib: allow getting properties used when the bearer was created 2012-03-15 14:14:36 +01:00
Aleksander Morgado
a422f5619f libmm-glib: generic warning if IP config dictionary has unexpected contents 2012-03-15 14:14:36 +01:00