Commit Graph
29 Commits
Author SHA1 Message Date
Aleksander Morgado 9eebb75ca3 iface-modem-messaging: let initialization and enabling sequences get cancelled 2012-03-16 14:53:24 +01:00
Aleksander Morgado cc6d4a97fb base-modem: new port getters and peekers
* mm_base_modem_peek_port_* () will return either a port object (no new
reference), or NULL if none available.

You would usually peek() a port if you're going to use it just in the current
method, as there is no way to that reference to get invalid (we're single
threaded).

 * mm_base_modem_get_port_* () will return either NEW references to valid
port objects, or NULL if none available.

And, you would usually get() a port, whenever you want the port object to be
valid even out of the current method, for example when keeping it in the
context of an async operation.

Also, we need to consider that the primary AT port MAY BE NULL when you
peek() or get() it. This is due to the fact that we may be releasing ports
(due to device disconnection) in the middle of async operations.
2012-03-16 14:53:23 +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 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 333779bda9 iface-modem-messaging: include policy authorization checks 2012-03-16 14:53:16 +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 50d474056d iface-modem-messaging: once all messages initially loaded, set default storages 2012-03-15 14:15:03 +01:00
Aleksander Morgado f7c41b8e48 iface-modem-messaging: use defaults when no specific storage specified 2012-03-15 14:15:03 +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 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 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 ad3b3d0ba7 iface-modem-messaging: don't allow method calls if not enabled 2012-03-15 14:15:02 +01:00
Aleksander Morgado 76aaac23ec iface-modem-messaging: allow creating new SMS objects 2012-03-15 14:15:01 +01:00
Aleksander Morgado d9f5779bbb iface-modem-messaging: allow setting up unsolicited events 2012-03-15 14:15:00 +01:00
Aleksander Morgado 6f103c1366 sms-list: don't signal completed messages
We will instead not export an SMS until completed and assembled
2012-03-15 14:15:00 +01:00
Aleksander Morgado 47a9903901 iface-modem-messaging: handle SMS listing 2012-03-15 14:14:59 +01:00
Aleksander Morgado 19ce344df8 iface-modem-messaging: handle SMS deletion requests 2012-03-15 14:14:59 +01:00
Aleksander Morgado 2ede62e45e iface-modem-messaging: emit SMS added/completed/deleted signals 2012-03-15 14:14:59 +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