Commit Graph
135 Commits
Author SHA1 Message Date
Aleksander Morgado f9105bff87 api,introspection: update 'Validity' property in the SMS interface
We don't want to support only 'relative' validity, so don't assume that the
Validity property will always be a uint32 value.

Instead, we define the Validity propery as '(uv)' tuple, where the first value
(a MMSmsValidityType) specifies the type of validity, and the second value is
a variant formatted accordingly to what the validity type specifies (e.g. a
uint32 value if the type is MM_SMS_VALIDITY_TYPE_RELATIVE).
2013-04-05 17:48:51 +02:00
Aleksander Morgado 3e33f1bc4d api,introspection: new `ActivationState' property in the CDMA interface 2013-03-22 08:11:00 +01:00
Colin Walters 980ad52a47 build: Look for generated file in builddir, not srcdir 2013-02-25 08:51:50 +01:00
Aleksander Morgado b1bb8e30b4 broadband-modem: don't assume the returned string is always hex-encoded 2013-02-22 19:43:49 +01:00
Aleksander Morgado 75d20c15d4 api: notify in the interface about the reason why the modem is FAILED
We currently implement 'SIM missing' and 'SIM error', which are probably the
most common ones.
2013-02-22 16:35:56 +01:00
Aleksander Morgado c1ef36b860 libmm-glib,simple-connect-properties: avoid using an uninitialized variable 2013-02-13 15:03:07 +01:00
Aleksander Morgado d44eb83ac4 libmm-glib,manager: add missing logic to ensure the proxy is created 2013-02-06 22:20:19 +01:00
Aleksander Morgado a85fd0ab4f libmm-glib,manager: don't fail creation if the ModemManager process is not found
A 'GDBusObjectManagerClient' for a service for which there is no current
name-owner is a perfectly valid and useful object. For example, we could then
connect to the 'notify::name-owner' property to follow the life cycle of the
ModemManager process.

So, don't tie the successful creation of a 'MMManager' to the successful
creation of the internal GDBusProxy for the 'Manager1' interface. If there is
no current name owner, the GDBusProxy wouldn't be created, and instead we
would completely fail the 'MMManager' creation.
2013-02-06 19:56:18 +01:00
Aleksander Morgado 2ad6e0627d libmm-glib: fix error reporting when 'MMManager' is created 2013-02-06 19:10:13 +01:00
Aleksander Morgado 091c47d695 libmm-glib,modem: new methods to handle the power state 2013-01-11 10:05:46 +01:00
Dan Williams dd51f7a6ae libmm-glib: document mm_get_uint_from_str()
Unlike strtol/stroul, this function doesn't ignore leading or
trailing non-digit characters, so document that restriction.
2012-12-05 11:43:58 -06:00
Aleksander Morgado 562055b53b libmm-glib,manager: client creation may fail, avoid explicit MM_MANAGER() cast 2012-11-27 16:25:51 +01:00
Aleksander Morgado cf46ed4238 libmm-glib,manager: register DBus error associations in advance
In order to have a proper conversion between DBus error names and GErrors for
our known domains, the associations need to be registered before any DBus
call attempt.

Given that the high-level API of libmm-glib has its entry point always in the
MMManager, just register them as soon as the first such object is created.
2012-11-15 09:39:26 +01:00
Aleksander Morgado 94d62146e3 libmm-glib,manager: avoid unref of unset cancellables 2012-11-07 11:10:32 +01:00
Aleksander Morgado d9241d08db libmm-glib: implement handling the CDMA BS location source 2012-11-02 08:23:11 +01:00
Aleksander Morgado 72068598e5 libmm-glib: new header file for common stuff in location reporting 2012-11-02 08:23:10 +01:00
Aleksander Morgado 79fdddccbf api,modem: new 'PrimaryPort' property
We do need to specify which is the primary port being used for controlling the
modem. This allows us to match the device with an already existing bluetooth
device in NetworkManager.
2012-10-19 00:58:36 +02:00
Aleksander Morgado e2a36bd6be libmm-glib: allow 'none' authentication with more values
Specifying 'none' is really not exclusive. We may want to say that the modem can
either authenticate with a given protocol, or otherwise just try without
authentication.

The reality is that 'none' itself is usually always given in the connection
settings.
2012-10-10 16:55:24 +02:00
Aleksander Morgado 316b9fa001 libmm-glib,build: remove unneeded rule 2012-10-08 14:09:35 +02:00
Aleksander Morgado ebd792d2aa api,libmm-glib: new `allowed-auth' configuration for bearers
For bearers using STATIC or DHCP IP method, the modem itself is the one
negotiating authentication with the network. The new `allowed-auth' property
allows users to specify which authentication method(s) are allowed to be used.

See the following NetworkManager commit for more reference:
    commit 34aef8aaaa09b7473b9496aa49e550bd2def03f8
    Author: Andrew Bird <ajb@spheresystems.co.uk>
    Date:   Thu Mar 15 16:19:43 2012 -0500
2012-10-07 21:12:00 +02:00
Aleksander Morgado 1ccf89dbb8 api,libmm-glib,cli: handle firmware images of type `MM_FIRMWARE_IMAGE_TYPE_GOBI' 2012-10-04 19:08:03 +02:00
Aleksander Morgado 9e16aeb6bf libmm-glib: fix firmware list result parsing 2012-10-04 18:53:00 +02:00
Aleksander Morgado 0d00ee28be api,libmm-glib: use a 'unique-id' as ID of the firmware image, not a 'name'
Also, make only the 'unique-id' mandatory.
2012-10-04 18:52:39 +02:00
Aleksander Morgado 4251030bd8 api: only allow including `ModemManager.h' directly 2012-10-04 10:17:13 +02:00
Aleksander Morgado 239c56cf7f libmm-glib: don't install the common helpers header
And make it only available for internal ModemManager compilation.
2012-10-04 10:17:13 +02:00
Aleksander Morgado b52bbf7b0b libmm-glib,sms-properties: improve documentation 2012-10-04 10:17:12 +02:00
Aleksander Morgado 054915299a libmm-glib,bearer-ip-config: improve documentation 2012-10-04 10:17:12 +02:00
Aleksander Morgado 52f457bb88 libmm-glib,bearer-properties: improve documentation 2012-10-04 10:17:12 +02:00
Aleksander Morgado 54c2ee77b0 libmm-glib,firmware-properties: improve documentation 2012-10-04 10:17:12 +02:00
Aleksander Morgado dc4656cead libmm-glib,network-timezone: improve documentation 2012-10-04 10:17:12 +02:00
Aleksander Morgado 487090607d libmm-glib,location-gps-raw: improve documentation 2012-10-04 10:17:12 +02:00
Aleksander Morgado 030daafc45 libmm-glib,location-gps-nmea: improve documentation 2012-10-04 10:17:12 +02:00
Aleksander Morgado 7edc3508c7 libmm-glib,location-3gpp: improve documentation 2012-10-04 10:17:12 +02:00
Aleksander Morgado f99ac11cbb libmm-glib,simple-status: improve documentation 2012-10-04 10:17:12 +02:00
Aleksander Morgado 8185f24e64 libmm-glib,simple-connect-properties: improve documentation 2012-10-04 10:17:12 +02:00
Aleksander Morgado 4f5dd8afaa libmm-glib,unlock-retries: improve documentation 2012-10-04 10:17:12 +02:00
Aleksander Morgado 433fdea6d4 libmm-glib: only allow including `libmm-glib.h' directly
Unless when compiling libmm-glib itself, of course.
2012-10-04 10:17:12 +02:00
Aleksander Morgado c250fa3797 libmm-glib: remove the `libmm-common.h' header
Both the ModemManager daemon and the mmcli will now include `libmm-glib.h' only.

We also handle two new special `_LIBMM_INSIDE_MM' and `LIBMM_INSIDE_MMCLI'
symbols, which if included before the `libmm-glib.h' library allow us to:

 * Don't include the libmm-glib high level API in the ModemManager daemon, as
   the object names would clash with those in the core.

 * Define some of the methods of helper objects to be included only if compiling
   ModemManager daemon or the mmcli.
2012-10-04 10:17:12 +02:00
Aleksander Morgado 8bdcdeecb6 libmm-glib,manager: minor indentation fixes 2012-10-04 10:17:05 +02:00
Aleksander Morgado b6d628b3a1 build: merge libmm-common into libmm-glib
It's pointless to have libmm-common around, just merge it into libmm-glib and
make ModemManager depend on libmm-glib directly. At the end, the non-common
stuff in libmm-glib is really minimal.
2012-10-04 10:17:05 +02:00
Aleksander Morgado 715a775949 libmm-glib,firmware: new `MMModemFirmware' type to handle the Firmware interface 2012-10-04 10:17:05 +02:00
Aleksander Morgado d148eb6c7d libmm-glib,sms: `MMSms' is now a real object
Not just a typedef of the gdbus-codegen generated `MmGdbusSms'.
2012-10-03 20:45:20 +02:00
Aleksander Morgado ba075e48f4 libmm-glib,sim: `MMSim' is now a real object
Not just a typedef of the gdbus-codegen generated `MmGdbusSim'.
2012-10-03 20:45:20 +02:00
Aleksander Morgado 41ece5a021 libmm-glib,bearer: `MMBearer' is now a real object
Not just a typedef of the gdbus-codegen generated `MmGdbusBearer'.
2012-10-03 20:45:20 +02:00
Aleksander Morgado 730f69a6d4 libmm-glib,time: `MMModemTime' is now a real object
Not just a typedef of the gdbus-codegen generated `MmGdbusModemTime'.
2012-10-02 14:45:37 +02:00
Aleksander Morgado 653582ce17 libmm-glib,simple: `MMModemSimple' is now a real object
Not just a typedef of the gdbus-codegen generated `MmGdbusModemSimple'.
2012-10-02 14:45:37 +02:00
Aleksander Morgado 6ac9460543 libmm-glib,messaging: `MMModemMessaging' is now a real object
Not just a typedef of the gdbus-codegen generated `MmGdbusModemMessaging'.
2012-10-02 14:45:37 +02:00
Aleksander Morgado 45172e39b4 libmm-glib,location: `MMModemLocation' is now a real object
Not just a typedef of the gdbus-codegen generated `MmGdbusModemLocation'.
2012-10-02 14:45:37 +02:00
Aleksander Morgado 2d6bca4b8b libmm-glib,cdma: `MMModemCdma' is now a real object
Not just a typedef of the gdbus-codegen generated `MmGdbusModemCdma'.
2012-10-02 14:45:36 +02:00
Aleksander Morgado 9a722de6bb libmm-glib,3gpp-ussd: `MMModem3gppUssd' is now a real object
Not just a typedef of the gdbus-codegen generated `MmGdbusModem3gppUssd'.
2012-10-02 14:45:36 +02:00