Commit Graph

317 Commits

Author SHA1 Message Date
Denis Kenzior 67e19dc14c Evolve the call-barring driver
- Move call barring related functionality out of driver.h into a
  dedicated file, call-barring.h
- Update to use the new atom framework
- Remove over-reliance on the modem structure, call-barring structure
  should now be used instead whenever possible
2009-08-14 11:19:09 -05:00
Denis Kenzior 01b4c49447 Move certain parts of driver.h to types.h 2009-08-13 10:08:32 -05:00
Denis Kenzior 03e90fff16 Add ofono atom routines 2009-08-13 10:08:32 -05:00
Denis Kenzior 00482e341e Make ss_passwd_register slightly more efficient 2009-08-13 10:08:32 -05:00
Denis Kenzior 6f8acce8ec Make ss_control_register slightly more efficient 2009-08-13 10:08:32 -05:00
Denis Kenzior b1d0bda4b3 Always output useable FN in VCard
If text is NULL or empty, use the number field for the FN VCard entry
instead.
2009-08-12 19:49:23 -05:00
Denis Kenzior 715067d38d Fix a segfault in need_merge 2009-08-12 19:49:23 -05:00
Denis Kenzior 70b758f8be Bail out early if text & number are empty 2009-08-12 19:49:23 -05:00
Marcel Holtmann 5641f1974a Fix comment 2009-08-12 17:40:41 -07:00
Marcel Holtmann 08f6629d60 Add function for printing warnings 2009-08-12 17:33:44 -07:00
Denis Kenzior 19858da361 Fix compile warning 2009-08-08 22:39:50 -05:00
Denis Kenzior 07cca7ab13 Quiet an error if a modem is removed quickly 2009-08-07 20:11:34 -05:00
Denis Kenzior 6db2762d75 Fix segfault upon modem removal due to g_source
Network registration was not removing operator list scan g_source,
which was causing a crash in one of two potential places.
2009-08-07 20:06:05 -05:00
Denis Kenzior b951aa9a32 Refactor SIM file cache 2009-08-07 19:51:30 -05:00
Denis Kenzior f12af3728c Re-enable reading of SPN & PNN on phonesim 2009-08-07 19:51:29 -05:00
Denis Kenzior 2cfd8a9894 Make the sim op queue have a removable gsource 2009-08-07 19:51:29 -05:00
Denis Kenzior 32e4232b7c Don't use g_timeout_add to retrieve imsi 2009-08-07 19:51:29 -05:00
Denis Kenzior 055c5c7450 No need to use g_timeout_add here 2009-08-07 19:51:23 -05:00
Denis Kenzior fef502bab2 No need to use g_timeout_add here 2009-08-07 17:40:54 -05:00
Denis Kenzior f8d5b16e4e No need to use g_timeout_add here 2009-08-07 17:36:26 -05:00
Denis Kenzior d7a5e7d017 No need to use g_timeout_add here 2009-08-07 17:30:28 -05:00
Denis Kenzior 6b9d8567b4 No need to use g_timeout_add
Simply calling the function here should be sufficient
2009-08-07 16:33:31 -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 44e56bf752 Use g_source instead of flag for mpty list changes 2009-08-07 16:14:46 -05:00
Denis Kenzior eae2f2b3fb Use g_source instead of flag for call list changes 2009-08-07 16:14:40 -05:00
Denis Kenzior f4037d77f7 Fix sim ADN type of number handling
The type of number stored here is not quite the same as SMS number,
and should be parsed differently
2009-08-07 15:49:30 -05:00
Denis Kenzior f93962078c Refactor setting MSISDN
- Empty lists should be supported, as clearing the MSISDN is OK
- Initialization of empty MSISDN record should also be possible
- Overwriting of unused records should be possible
- Simplify resource cleanup
2009-08-07 15:49:30 -05:00
Denis Kenzior 6f9e386424 Keep new numbers in the main sim data structure
No sense to allocate / free memory for a single pointer
2009-08-07 15:49:30 -05:00
Denis Kenzior 7eb440e864 Move error label to a more logical place 2009-08-07 15:49:30 -05:00
Denis Kenzior e5082b4b78 Move variable declarations to a move logical place 2009-08-07 15:49:30 -05:00
Andrzej Zaborowski 988f0ffbed Make SubscriberNumbers writable.
This implements writing SubscriberNumbers if the SIM allows this
(optional to the SIM provider).  Because the property is an array
of phone numbers, setting the property needs to write multiple
records on the SIM so it's not atomic and potentially can fail
partially.  In this case we have to report a write error to DBus
client but at the same time file may be changed and we send a
PropertyChanged.
2009-08-07 15:49:30 -05:00
Andrzej Zaborowski d6aae60983 Make SIM op queue more robust.
This allows ofono_sim_read and ofono_sim_write callbacks to queue new
read or write operations.  The callback must not be called between
removing the operation from queue and checking queue length.
2009-08-07 15:49:30 -05:00
Denis Kenzior 572a89cce2 Fix style 2009-08-06 17:33:44 -05:00
Denis Kenzior 6989732e3a Fix style 2009-08-06 17:33:00 -05:00
Denis Kenzior c2144be486 Add whitespace properly 2009-08-06 17:29:55 -05:00
Denis Kenzior d4ccad4b72 Fix trailing whitespace 2009-08-06 17:29:11 -05:00
Denis Kenzior 24ded594ef No spaces between variable and ++/-- 2009-08-06 17:26:36 -05:00
Denis Kenzior a7cfcae752 Fix trailing whitespace 2009-08-06 17:24:46 -05:00
Denis Kenzior 89effa1723 Squash warning 2009-08-06 15:42:22 -05:00
Denis Kenzior d6c58caadc Squash warning 2009-08-06 15:42:22 -05:00
Denis Kenzior ee2a88c678 Squash warning 2009-08-06 15:42:22 -05:00
Andrzej Zaborowski d0b91bfbc8 Attempt to update MBDN based on Enhanced VM IEI 2009-08-05 13:33:35 -05:00
Andrzej Zaborowski 9a55de9cd0 Implement committing the EF-MBDN records to SIM 2009-08-05 13:32:49 -05:00
Andrzej Zaborowski e8552dde07 Add utility for building ADN records
Used to populate MSISDN, MBDN, etc records on the SIM
2009-08-05 13:25:31 -05:00
Andrzej Zaborowski ad6b8adebb Expose address encode/decode utilities
These can be used elsewhere, in particular for decoding the
enhanced message waiting notification ieis
2009-08-05 13:19:54 -05:00
Andrzej Zaborowski 4c3ae72b36 Add encode_bcd_number utility function 2009-08-05 13:17:08 -05:00
Denis Kenzior 965fc09e6a Don't emit signals for unexposed properties
Signals shouldn't be emitted, but we should still track the information
so it can be written to the SIM reliably
2009-08-05 12:45:55 -05:00
Denis Kenzior 2d12b296e0 Don't hardcode info len to 6 2009-08-05 12:35:08 -05:00
Denis Kenzior fdc129e3e2 Make method async 2009-08-05 12:33:57 -05:00
Denis Kenzior b7c51f9028 Remove unused declaration 2009-08-05 12:33:01 -05:00