Commit Graph

49 Commits

Author SHA1 Message Date
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
Aleksander Morgado
cc55734a01 api,header: don't use '1G' for modem modes, use 'CS' instead.
1G is not the proper way to define GSM, which is already 2G. Use CS instead,
which will include all circuit-switched broadband modem technologies.
2012-03-15 14:14:40 +01:00
Aleksander Morgado
1745d8c9eb libmm-common: let the simple properties object be built from a dictionary 2012-03-15 14:14:39 +01:00
Aleksander Morgado
111cd56a2b libmm-common: new helper object to handle simple properties from all interfaces 2012-03-15 14:14:39 +01:00
Aleksander Morgado
b0272444cb libmm-common: new helpers to work with bands arrays 2012-03-15 14:14:39 +01:00
Aleksander Morgado
e08ce775c5 libmm-common: let the connection properties use bearer properties internally
Removes lots of duplicated code.
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
0343812502 libmm-common: new modes string parser 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
aa3d98d0ff libmm-common: new bands string parser 2012-03-15 14:14:37 +01:00
Aleksander Morgado
d81d1d9d6a libmm-common: handle exact mask matches when building capabilities string 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
4495ba180e core: implement Access Technology reporting
For 3GPP modems only for now..
2012-03-15 14:14:35 +01:00
Aleksander Morgado
6081919744 libmm-common: make it installable
We'll install libmm-common and its headers, which will be used by libmm-glib
and the ModemManager daemon.
2012-03-15 14:14:34 +01:00
Aleksander Morgado
d22def9309 build: let enum and error templates be completely generic
Don't include anything in the templates specific to the file to be built, like
#ifdef guards in headers or #include in sources.
2012-03-15 14:14:34 +01:00
Aleksander Morgado
0793522d28 errors: new TOO_MANY and NOT_FOUND core errors 2012-03-15 14:14:33 +01:00
Aleksander Morgado
4d594c50e8 libmm-common: capabilities string builder moved from core
Keep in libmm-common the capabilities string builder.
2012-03-15 14:14:33 +01:00
Aleksander Morgado
7b12da9169 errors: new MM_CORE_ERROR_CONNECTED error
To be returned when we try to send an AT command to a modem, but there is no
usable AT port available, as the primary port is connected (hence the name)
and there is no secondary port.
2012-03-15 14:14:31 +01:00
Aleksander Morgado
a58f95121a api: rename 3GPP and CDMA interface paths
Elements in a DBus interface name cannot start with a digit, so
"org.freedesktop.ModemManager1.Modem.3gpp" is an invalid interface name.

Renamed here all relevant interfaces so that they have an additional "Modem"
prefix in the element, so we get now:
 "org.freedesktop.ModemManager1.Modem.Modem3gpp"
 "org.freedesktop.ModemManager1.Modem.Modem3gpp.Ussd"
 "org.freedesktop.ModemManager1.Modem.ModemCdma"

Objects generated with gdbus-codegen maintain the previous names.
2012-03-15 14:14:28 +01:00
Aleksander Morgado
23367c7186 libmm-common: include Errors type information
The code to handle the Errors type information is automatically built with
`glib-mkenums' and the new templates kept under `build-aux'.
2012-03-15 14:14:18 +01:00
Aleksander Morgado
0e9ed6e5fe libmm-common: include Enums and Flags type information
The code to handle the Enums and Flags type information is automatically built
with `glib-mkenums' and the new templates kept under `build-aux'.

Note: We currently skip the type information of `MMModemBand'. GFlagsValue
can hold only 32-bit types, and we're working with a 64-bit flag here.
See: https://bugzilla.gnome.org/show_bug.cgi?id=663054
2012-03-15 14:14:18 +01:00
Aleksander Morgado
ade484826c libmm-common: setup new library, with the gdbus-codegen generated code
This library will not (probably) be installable, but will share the GDBus
and new Enum/Flag/Error type support between the core daemon and the new
libmm-glib library.
2012-03-15 14:14:18 +01:00