Commit Graph
29 Commits
Author SHA1 Message Date
Aleksander Morgado ba4e209745 sms: fix sending SMS messages on some modems
This is the port to git master of the following commit:

commit 65f13f41cfd00cd38f118121a58b83713501f45f
Author: Dan Williams <dcbw@redhat.com>
Date:   Tue Jul 17 16:00:31 2012 -0500

    gsm: fix sending SMS messages on some modems and use PDU by default

    It turns out we really do have to wait for the modem to return the
    ">" prompt before sending the message data, otherwise a number of
    modems will complain about the data and fail the message.  Fix that
    by sending the first bit of the CMGS, waiting for the ">", and then
    sending the rest.

    This also switches all modems over to PDU mode by default if they
    support it, since it's more compatible and most recent modems don't
    even bother to support text mode anyway.
2012-08-24 12:32:29 +02:00
Aleksander Morgado df1f21d17f sms: fix setting multipart specific properties
Don't make them construct-only, so that we can set them whenever needed.
2012-05-06 18:53:03 +02:00
Aleksander Morgado cdd339f802 base-modem: implement new modem-wide cancellable, and rework AT commands
Instead of the `_in_port()' variants, we'll provide more generic
`_full()' methods. These should be used either if we want to send commands
to a specific port, or if we want to use a specific user-provided GCancellable.

In addition to this user-provided GCancellable, we keep the internal modem-wide
one.
2012-03-16 14:53:23 +01:00
Aleksander Morgado 22113859c9 messaging: part index may be repeated in different storages 2012-03-16 14:53:21 +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 17ef077797 sms: include policy authorization checks 2012-03-16 14:53:16 +01:00
Aleksander Morgado 978801ee7b sms: specify storage where the SMS is kept 2012-03-15 14:15:04 +01:00
Aleksander Morgado 4b6792dd62 sms: implement default sending, either from storage or through the generic cmd 2012-03-15 14:15:03 +01:00
Aleksander Morgado ea8b4c80b7 sms: don't allow sending received messages 2012-03-15 14:15:02 +01:00
Aleksander Morgado 4e4078ef2e sms: implement default storing 2012-03-15 14:15:02 +01:00
Aleksander Morgado 572565c1e0 sms: delete() just removes the parts from the storage
It's left to the delete() caller to unexport the SMS object from DBus and such.
2012-03-15 14:15:02 +01:00
Aleksander Morgado a8b3b50f45 sms: 'number' and 'text' are mandatory when creating from properties 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 470d9b933e sms: handle message storing and sending actions from DBus 2012-03-15 14:15:01 +01:00
Aleksander Morgado fb02fbf7a0 sms-part: new symbol to define invalid indexes
SMS parts with invalid indexes are NOT stored yet in the device
2012-03-15 14:15:01 +01:00
Aleksander Morgado 14baeff88d api,dbus: renamed To' to Number' in the SMS interface 2012-03-15 14:15:01 +01:00
Aleksander Morgado f414350b24 sms: allow creating SMS objects from the common properties 2012-03-15 14:15:01 +01:00
Aleksander Morgado 69b8742ca3 api,header: renamed MMModemSmsState' to MMSmsState' 2012-03-15 14:15:01 +01:00
Aleksander Morgado c15fbedc03 sms: pass known state when creating the MMSms object 2012-03-15 14:15:01 +01:00
Aleksander Morgado c17d6c09a4 sms-part: include validity 2012-03-15 14:15:01 +01:00
Aleksander Morgado 0841f12315 iface-modem-messaging: allow subclassing SMS object creation methods 2012-03-15 14:15:00 +01:00
Aleksander Morgado 61a8452893 sms: allow sublassing the part deletion procedure 2012-03-15 14:15:00 +01:00
Aleksander Morgado 9ca03ba9f2 sms: rename method which creates MMSms from single part 2012-03-15 14:15:00 +01:00
Aleksander Morgado 1eb7f60e4c sms: assemble and export the SMS when its completed 2012-03-15 14:15:00 +01:00
Aleksander Morgado a91948879c sms: set modem object, so that the SMS are exported in DBus 2012-03-15 14:15:00 +01:00
Aleksander Morgado 9dee04a971 sms: allow deleting all parts of an SMS 2012-03-15 14:14:59 +01:00
Aleksander Morgado ba0a622616 sms: new method to check if the SMS has a given part 2012-03-15 14:14:59 +01:00
Aleksander Morgado c938a25ca7 sms: new methods to handle multipart messages 2012-03-15 14:14:59 +01:00
Aleksander Morgado ad8fbcd1a6 sms: new object to handle single-part and multi-part messages 2012-03-15 14:14:59 +01:00