Commit Graph
28 Commits
Author SHA1 Message Date
Aleksander Morgado 00949c4ad3 core: add autoptr cleanup methods to all internal types 2020-09-19 20:27:10 +02:00
Carlo Lobrano be317e8b80 broadband-modem: fix +CPMS empty parameter support
* Add new async virtual method init_current_storages to
  MMIfaceModemMessaging
* Add logic of init_current_storages to MMBroadbandModem
* Add step "INIT_CURRENT_STORAGES" in MMIfaceModemMessaging
  initialization in order to load and store current SMS
  storages for mem1 and mem2.
* Add usage of current sms storage value for mem1 in place
  of an empty string parameter when the command AT+CPMS
  is used.

https://bugs.freedesktop.org/show_bug.cgi?id=93135
2016-03-09 14:43:08 +01:00
Aleksander Morgado a29382be70 sms: rename 'MMSms' to 'MMBaseSms'
Just so that we don't have same header names in src/ and /libmm-glib.
2014-07-06 16:55:29 +02:00
Aleksander Morgado ce5c3f5af6 ifaces: always include <libmm-glib.h>
As they all use the 'MMSimpleStatus' type.
2014-07-01 15:42:21 +02:00
Aleksander Morgado 6f235b9948 ports: rename 'MMAtSerialPort' to 'MMPortSerialAt' 2014-02-13 13:40:01 +01:00
Aleksander Morgado e212f6b6ed sms: create SMS parts only when storing or sending
When a user creates an SMS object, we will expose all its properties in DBus
properly, but we will not create the internal list of SMS parts.

The list of SMS parts will be created when the SMS is stored or sent, whatever
comes first. When the message is sent and it was previously stored, the list of
parts is not re-created.

If the message requires multiple parts, the multipart reference is computed as
follows:
 * If the SMS was not stored and is being sent, we just use a random number.
 * If the SMS is being stored, we will use a multipart reference which is not
   being used already in another SMS to the same destination.
2012-09-14 07:05:26 +02:00
Aleksander Morgado bddcc2fb07 iface-modem-messaging: instead of mem1,mem2,mem3 use just a new default storage
There is no point in specifying a default 'mem1' memory storage, which is used
for reading/listing/deleting, as those are operations that need a specific
'mem1' set each time.

Also, there is no point in specifying separate default 'mem2' and 'mem3' memory
storages, specially because now we allow Sms.Store() to specify a storage.

So, we will now only have a 'default' memory storage, which is applicable for
both 'mem2' and 'mem3' (storing, sending from storage and deleting).
2012-09-14 07:05:23 +02:00
Aleksander Morgado 96928909b9 iface-modem-messaging: setting preferred storages is a one-time operation
Selection specific storages to run actions on them can now be done with the
broadband-modem-specific lock|unlock_sms_storages() methods.
2012-09-14 07:05:22 +02:00
Aleksander Morgado 83dc9e3e1d iface-modem-messaging: new methods to check support for storage actions
We can now check whether a specific storage is valid for receiving or storing.
2012-09-14 07:05:22 +02:00
Aleksander Morgado a90d149ce4 sms: SMS objects need to be create by `create_modem()' in the Messaging iface
So that plugins can subclass the generic SMS object.
2012-09-06 19:58:01 +02:00
Aleksander Morgado 9eebb75ca3 iface-modem-messaging: let initialization and enabling sequences get cancelled 2012-03-16 14:53:24 +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 3dd5ec64cc iface-modem-messaging: need to enable/disable SMS indications 2012-03-15 14:15:06 +01:00
Aleksander Morgado 21a722b616 core: don't pass primary port to interface initializations
They will all get it themselves.
2012-03-15 14:15:05 +01:00
Aleksander Morgado 978801ee7b sms: specify storage where the SMS is kept 2012-03-15 14:15:04 +01:00
Aleksander Morgado 9e3f66393f iface-modem-messaging: load initial parts from all available storages 2012-03-15 14:15:03 +01:00
Aleksander Morgado 69ecae2dc4 iface-modem-messaging: new method to set preferred SMS storages 2012-03-15 14:15:03 +01:00
Aleksander Morgado f6ef117d32 iface-modem-messaging: new properties to define preferred mem1/mem2/mem3 storages 2012-03-15 14:15:03 +01:00
Aleksander Morgado 7fb1234015 iface-modem-messaging: load supported SMS storages during initialization 2012-03-15 14:15:03 +01:00
Aleksander Morgado 6bb4f9cb57 iface-modem-messaging: handle the flag to use PDU mode as a property 2012-03-15 14:15:02 +01:00
Aleksander Morgado 714e4ca44b sms: export uncomplete multipart messages as well
Uncompleted multipart SMS will be exported to DBus, where only the "state"
property is valid, so that we allow completely removing those uncompleted
multipart SMS which will never get completed due to one reason or another.
2012-03-15 14:15:02 +01:00
Aleksander Morgado 0841f12315 iface-modem-messaging: allow subclassing SMS object creation methods 2012-03-15 14:15:00 +01:00
Aleksander Morgado d9f5779bbb iface-modem-messaging: allow setting up unsolicited events 2012-03-15 14:15:00 +01:00
Aleksander Morgado d996ef84f4 iface-modem-messaging: load initial list of SMS parts 2012-03-15 14:14:59 +01:00
Aleksander Morgado 21b1de678d iface-modem-messaging: allow configuring preferred SMS format 2012-03-15 14:14:59 +01:00
Aleksander Morgado 03ee0b44f6 iface-modem-messaging: new property to handle the list of SMS objects 2012-03-15 14:14:59 +01:00
Aleksander Morgado c9c46b6f51 iface-modem-messaging: check if modem has messaging capabilities
The interface won't be exported if the given check fails.
2012-03-15 14:14:58 +01:00
Aleksander Morgado bc0454badf iface-modem-messaging: new interface to handle the Messaging DBus interface 2012-03-15 14:14:58 +01:00