Commit Graph

129 Commits

Author SHA1 Message Date
Jeevaka Badrappan 4196182770 Fix multi-line comment style issues 2010-09-21 21:16:01 -05:00
Denis Kenzior 348a891665 sms: Update signals for introspection 2010-09-21 21:15:08 -05:00
Denis Kenzior 8dbaf29ffc sms: Tweak behavior of txq_submit
If history tracking is desired, expose over D-Bus as well
2010-09-21 21:15:07 -05:00
Denis Kenzior 82ff49c781 sms: Emit MessageRemoved 2010-09-21 21:15:07 -05:00
Denis Kenzior 8ea7db0416 sms: Emit MessageAdded 2010-09-21 21:15:07 -05:00
Denis Kenzior 0e76043303 sms: Implement GetMessages method 2010-09-21 21:15:07 -05:00
Denis Kenzior aa780bc935 sms: Initial Message interface implementation 2010-09-21 21:15:07 -05:00
Denis Kenzior 251ac0ebd2 sms: Update to the new history API 2010-09-21 08:44:48 -05:00
Denis Kenzior 03c8177208 sms: Update to the new status report assembly api 2010-09-21 08:44:47 -05:00
Denis Kenzior 02cca88bcc sms: Get rid of NextMessageId setting 2010-09-21 08:44:47 -05:00
Denis Kenzior b086f57ec0 sms: Reflow manager methods table 2010-09-21 08:44:47 -05:00
Denis Kenzior 016f168f47 sms: Refactor __ofono_sms_txq_submit 2010-09-21 08:44:47 -05:00
Denis Kenzior 63c8b720fe sms: Refactor txq_entry_create 2010-09-21 08:44:47 -05:00
Denis Kenzior 9d52a9d215 sms: Refactor outgoing sms id generator 2010-09-21 08:44:47 -05:00
Inaky Perez-Gonzalez 1683c03140 sms: replace sequential SMS message ID with hash
The SMS messages's ID number (used for history, D-Bus naming and
storage in external database) is updated to use a hash (based on PDUs
and submission time) to further avoid ID collision concerns.
2010-09-21 08:44:47 -05:00
Denis Kenzior 852a65bcdd sms: Compute SHA1 based UUID for incoming messages 2010-09-21 08:44:47 -05:00
Aki Niemi 2cb4d96793 Default to using 8bit SMS reference numbers 2010-09-09 16:30:00 +03:00
Aki Niemi 35cfb432d4 Fix adding 8bit reference number 2010-09-03 09:10:09 -05:00
Marcel Holtmann 6bf2a743f4 sms: Add a few more debug statements 2010-08-20 21:55:22 +02:00
Denis Kenzior 7e0f28c7b1 sms: Update SmsManager to MessageManager 2010-08-19 14:20:05 -05:00
Inaky Perez-Gonzalez 8f570a7969 sms: struct tx_queue_entry: add a destructor
Introduce a destructor function to encapsulate all the release steps
for this data type, as more are to be added later.
2010-08-05 11:59:34 -05:00
Inaky Perez-Gonzalez e31d429dbe sms: rename create_tx_queue_entry()
This is for symmetry with tx_queue_entry_free()
2010-07-23 18:00:59 -05:00
Denis Kenzior 84e73a8b7c sms: Refactor ofono_sms_submit introduced by stk
Simplify the logic and get rid of duplicated code
2010-07-08 14:27:34 -05:00
Denis Kenzior 6d91d84b28 sms: Tweak the logic to be more readable 2010-07-08 14:27:34 -05:00
Andrzej Zaborowski 516a9b06c5 Add __ofono_sms_submit for other atoms to submit SMs. 2010-07-08 14:27:33 -05:00
Denis Kenzior 20da18ca8b sms: Tweak the Bearer API 2010-06-25 17:49:36 -05:00
Denis Kenzior 8ff599c691 sms: Add support for SMS Bearer settings 2010-06-25 14:25:46 -05:00
Denis Kenzior 17de318c76 sms: minor style fix 2010-06-24 14:24:00 -05:00
Denis Kenzior 10e3ca440b sms: Don't bother setting SCA if we can't query 2010-06-24 14:13:04 -05:00
Denis Kenzior 4d82b67ea1 sms: Only emit property if value actually differs 2010-06-21 15:21:40 -05:00
Denis Kenzior 74a8ce2e8b sms: Fixup minor style issues with status reports 2010-06-21 15:21:39 -05:00
Pasi Miettinen 84d095860f sms: Status report notify 2010-06-21 15:21:39 -05:00
Denis Kenzior ba5ec3b38e sms: style fix, remove extra newline 2010-06-07 13:05:50 -05:00
Pasi Miettinen 47082757b9 sms: Add UseDeliveryReports property 2010-06-07 13:05:13 -05:00
Inaky Perez-Gonzalez 2b891029ac sms: Add some documentation
Add doc headers to ofono_sms_{create, register}
2010-05-28 09:45:56 -05:00
Inaky Perez-Gonzalez b0a63388de sms_send_message: add a short roadmap 2010-05-28 09:33:44 -05:00
Aki Niemi 96090ce079 Fix more-messages-to-send indicator
Set the mms indicator based on remaining segment count and not on the
message transmit queue status alone.
2010-05-26 11:16:45 -05:00
Denis Kenzior 5ab70ab5f2 Move sms interface definition to dbus.h 2010-03-22 15:28:08 -05:00
Denis Kenzior 87ca1b0c8f Fix: Don't use ofono_debug directly in the core
Use DBG macro which is integrated with the new debug framework.
2010-02-08 11:54:03 -06:00
Marcel Holtmann 144080e749 Update copyright information 2010-01-01 17:00:10 -08:00
Denis Kenzior 955e6a61ee Style: Fix a few more occurences of if/else
See Linux coding style document for details
2009-12-17 21:45:39 -06:00
Denis Kenzior 7a5de89f32 Fix: Concatenation of datagram SMS messages
The 16 bit port address was not being computed correctly.
2009-12-14 10:14:29 -06:00
Denis Kenzior da496112b7 Fix: Don't forget to cleanup the atom watch 2009-12-01 22:53:45 -06:00
Zhigang Li 3aec8d4ac7 Fix: Send all SMS segments 2009-11-24 14:49:48 -06:00
Denis Kenzior 0b4b41c6a9 Style: add new line 2009-11-13 00:05:42 -06:00
Denis Kenzior a4189db20f Add basic state saving for SMS atom
Message ID and Reference number for concatenated messages should be
persisted.
2009-11-05 17:06:21 -06:00
Denis Kenzior f14e7c30bc Add hooks to call into sms history for SMS atom 2009-11-05 16:47:12 -06:00
Denis Kenzior 61260c298f Refactor: Make SendMessage async
This commit does two things.  First it makes SendMessage an async
method, which returns only when the SMS message has been successfully
sent or failed.

This also adds a set number of tries that oFono will resubmit the PDU to
the SMSC.  If any fragment fails to be submitted, the entire send
message attempt is deemed a failure and an error is returned to the caller.
2009-11-05 16:44:22 -06:00
Denis Kenzior 3c4dfdcb7f Refactor: Move SMS SendMessage to 1 recipient only 2009-11-05 10:27:25 -06:00
Olivier Le Thanh Duong 6d9bd02480 Migrate from RFC2822 to ISO8601 2009-10-21 19:04:47 -05:00
Denis Kenzior b1c8b291f5 Assume sms is registered only when sim ready 2009-09-22 00:07:06 -05:00
Andrzej Zaborowski 06ea6137a3 Write state of SMS assembly to disk and restore on startup.
This way we can continue receiving segmented messages over a reset or
crash.
2009-09-08 14:44:39 -05:00
Denis Kenzior 422df0edfb change int vendor to unsigned int vendor 2009-09-01 21:39:02 -05:00
Denis Kenzior 8d380f8fa0 Add vendor flag capability for sms 2009-09-01 18:14:58 -05:00
Denis Kenzior 6261b83dbf Fix unused variable modem 2009-08-20 15:39:13 -05:00
Denis Kenzior 5999b418e8 Evolve message waiting low level API 2009-08-19 18:35:07 -05:00
Denis Kenzior c4a349fdf9 Evolve SMS driver API 2009-08-19 18:35:06 -05:00
Denis Kenzior ebce9fbd4d Store the tx_next g_source so it can be removed 2009-08-07 16:14:49 -05:00
Denis Kenzior f6628b81b9 Get rid of message-waiting.h 2009-08-04 15:10:49 -05:00
Andrzej Zaborowski 203ed17cec Add a MessageWaiting interface to track message waiting indications.
The state of the indications is kept in memory and written back to
the SIM after any changes.
2009-08-04 15:08:11 -05:00
Denis Kenzior 3e6d4237cb Remove all uses of modem.h 2009-07-29 16:53:19 -05:00
Denis Kenzior 19eeb7f1ba Rename modem_add_interface / modem_remove_interface
Move to ofono_modem_add_interface, ofono_modem_remove_interface
and put in ofono/modem.h
2009-07-29 16:44:16 -05:00
Denis Kenzior 54816de04d Get rid of dbus-gsm.h 2009-07-29 12:26:06 -05:00
Denis Kenzior 1d8785f8bd Rename dbus_gsm_pending_reply 2009-07-29 12:26:06 -05:00
Denis Kenzior 6728542a01 Rename dbus_gsm_dict_append 2009-07-29 12:26:05 -05:00
Denis Kenzior d9025e13e1 Move & Rename PROPERTIES_ARRAY_SIGNATURE 2009-07-29 12:26:05 -05:00
Denis Kenzior 684b5be1fc Rename dbus_gsm_signal_property_changed 2009-07-29 12:26:05 -05:00
Denis Kenzior 18ecb22f93 Fix segfault 2009-07-29 12:26:05 -05:00
Denis Kenzior 00fb6cce62 Rename dbus_gsm error functions to __ofono_error 2009-07-29 12:26:05 -05:00
Denis Kenzior 99c1c92708 Move & Rename dbus_gsm_connection
Move to ofono/dbus.h ofono_dbus_get_connection
2009-07-29 12:26:04 -05:00
Denis Kenzior 4dae83636c Use int for MoreMessagestoSend (mms) 2009-07-27 17:09:35 -05:00
Marcel Holtmann feb36e2d5b Fix stupid false positive warnings about uninitialized variables
The GCC check for uninitialized variables is so useful that dealing
with the false positives is just a minor inconvenience.

The following GCC trick helps to silence them:

	#define uninitialized_var(x) x = x

This way no code obfuscation is needed to compile smoothly and the
code stays readable. And the author has to actually think about it.
2009-07-14 06:06:46 +02:00
Denis Kenzior 9cc2ce32f7 Fix unused variable 2009-07-13 22:33:48 -05:00
Denis Kenzior 20fb6149a7 Remove uninitialized warning 2009-07-13 22:33:47 -05:00
Denis Kenzior 130f18a0b6 Add SMS Sending Support 2009-06-19 21:15:02 -05:00
Denis Kenzior 5bcc74d857 Fix SMS port addressing 2009-06-16 16:38:50 -05:00
Denis Kenzior 8241c3f025 Add SMS fragment assembly capabilities 2009-06-14 02:02:16 -05:00
Denis Kenzior 3a28213072 Add Basic SMS reception capabilities
- Can receive 7Bit, 8Bit and UCS2 encoded messages
- 8Bit is assumed to be a datagram to a certain port
- Messages with Invalid format are ignored
- Concatenation not yet supported
2009-06-12 21:43:26 -05:00
Denis Kenzior 4f554c2cb7 Forgot to add this 2009-06-01 14:05:33 -05:00