Commit Graph

73 Commits

Author SHA1 Message Date
Aleksander Morgado
e00705c203 libmm-common,helpers: additional checks in the string to number converters
We won't allow NULL, empty, or strings with non-digits.
2012-03-29 09:18:04 +02:00
Aleksander Morgado
423c4a9d67 libmm-common: new helper `MMModemLocationGpsRaw' object 2012-03-29 09:18:03 +02:00
Aleksander Morgado
bf42082466 libmm-common: new helpers to parse doubles from strings or match infos 2012-03-29 09:18:03 +02:00
Aleksander Morgado
ee8afd8034 libmm-common,location-gps-nmea: allow sequences of traces
Some traces, e.g. $GPGSV, are part of a sequence. For those traces, we'll try
to always keep the whole sequence around, not just the last received trace.
2012-03-29 09:18:03 +02:00
Aleksander Morgado
0012b71186 libmm-common: new helper `MMModemLocationGpsNmea' object 2012-03-29 09:18:03 +02:00
Aleksander Morgado
46d16d5c99 libmm-common: new common uint/int/str parsers 2012-03-18 17:28:14 +01:00
Aleksander Morgado
961290ddd7 build: autogenerate `mm-errors-quarks.c'
We define custom nicks for each error enum, matching the DBus error entry that
we want to have with each of them.
2012-03-16 14:53:23 +01:00
Aleksander Morgado
455fc68d8a libmm-common: new `MMNetworkTimezone' helper object 2012-03-16 14:53:20 +01:00
Aleksander Morgado
bd9d7011b9 api,dbus: rewrote Time interface to be used with gdbus-codegen 2012-03-16 14:53:20 +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
036711eb1c libmm-common: new `MMUnlockRetries' helper object 2012-03-16 14:53:19 +01:00
Aleksander Morgado
1628f495fe libmm-common,tests: include tests when running make check/distcheck 2012-03-16 14:53:18 +01:00
Aleksander Morgado
0c6dad40a0 build: get path of `glib-mkenums' from pkg-config 2012-03-16 14:53:17 +01:00
Aleksander Morgado
3e511f90c7 build: don't distribute generated sources 2012-03-16 14:53:17 +01:00
Aleksander Morgado
e68db23a97 introspection: setup all new files and remove old ones 2012-03-16 14:53:17 +01:00
Aleksander Morgado
6f1a4514da libmm-common: new bands array comparator 2012-03-16 14:28:13 +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
c176117941 libmm-common: no need to check for end of string when looking for spaces 2012-03-15 14:15:06 +01:00
Aleksander Morgado
2234205570 libmm-common: allow empty strings passed to the key value parser 2012-03-15 14:15:06 +01:00
Aleksander Morgado
71c3c8d8e5 libmm-common: use the new key/value parser in the common bearer properties builder 2012-03-15 14:15:04 +01:00
Aleksander Morgado
591e641369 libmm-common: use the new key/value parser in the common connect properties builder 2012-03-15 14:15:04 +01:00
Aleksander Morgado
f0b9f3954c libmm-common: use the new key/value parser in the common SMS properties builder 2012-03-15 14:15:04 +01:00
Aleksander Morgado
b7938448ea libmm-common,tests: new tests for the key/value parser 2012-03-15 14:15:04 +01:00
Aleksander Morgado
7df5874a88 libmm-common: new helper key/value parser 2012-03-15 14:15:04 +01:00
Aleksander Morgado
23508ddd7f libmm-common: new helpers to work with SMS storage strings 2012-03-15 14:15:03 +01:00
Aleksander Morgado
672e9d09e3 libmm-common: new helper object to handle common SMS properties 2012-03-15 14:15:01 +01:00
Aleksander Morgado
bc375ec7c5 libmm-common: include gdbus-codegen generated SMS-related sources 2012-03-15 14:14:58 +01:00
Nathan Williams
418e0ac559 libmm-common: CDMA sid/nid are uint, not enum 2012-03-15 14:14:55 +01:00
Aleksander Morgado
f797beefac libmm-common: build dictionary even if IP config object not given 2012-03-15 14:14:54 +01:00
Aleksander Morgado
ff7406005d libmm-common: new helper object to handle Bearer IP config 2012-03-15 14:14:53 +01:00
Aleksander Morgado
2ca4d36e5e libmm-common: 3gpp location doesn't use any of our enum/flags 2012-03-15 14:14:53 +01:00
Aleksander Morgado
332d1a0891 build: add missing build dependency in libmm-common
Spotted by Nathan Williams.
2012-03-15 14:14:53 +01:00
Aleksander Morgado
a3532e7730 libmm-common: flags string builders are now all autogenerated 2012-03-15 14:14:52 +01:00
Aleksander Morgado
04fc34fab8 build: autogenerate enum/flags string getter/builders
Each enum will have its own #_get_string (),
and each flags will have its own #_build_string_from_mask ().
2012-03-15 14:14:52 +01:00
Aleksander Morgado
3b443b6954 libmm-common: fix usage of main library header 2012-03-15 14:14:52 +01:00
Aleksander Morgado
5fa8918847 libmm-common: new helper object to handle 3GPP location 2012-03-15 14:14:52 +01:00
Aleksander Morgado
263f106b33 libmm-common: include CDMA-specific items in the simple properties 2012-03-15 14:14:50 +01:00
Aleksander Morgado
71fbd2248c api,dbus: prefix with 'm3gpp' the 3GPP-specific entries returned in the simple status
Note that we cannot have properties starting with a digit :-/
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
d19cf55f8f libmm-common: allow duplicating the bearer properties object 2012-03-15 14:14:49 +01:00
Aleksander Morgado
1c447ba85b libmm-common: expect 'rm-protocol' in the common bearer properties 2012-03-15 14:14:47 +01:00
Aleksander Morgado
f3bc54eb40 libmm-common: plug small leak in the common simple properties 2012-03-15 14:14:44 +01:00
Aleksander Morgado
b18a801df3 libmm-common: fix build dependencies
Added proper rules in the Makefile so that those files which need the
glib-mkenums generated files are built always once the prerequisites are all
ready.

Also, avoid including libmm-common.h from within source files of the library.
2012-03-15 14:14:41 +01:00
Aleksander Morgado
9a4940c4b2 libmm-common: handle strings coming in capitals when building bands or modes 2012-03-15 14:14:41 +01:00
Aleksander Morgado
ebbfe9cb61 libmm-common: print modes string with capitals for the acronyms 2012-03-15 14:14:40 +01:00