aboutsummaryrefslogtreecommitdiff
path: root/src/mm-sms-list.c
AgeCommit message (Collapse)Author
2020-04-08sms-list: port to use object loggingAleksander Morgado
2019-07-15sms-list: improve logging of multipart related fieldsAleksander Morgado
We were not logging anywhere the "concat max" field for example.
2018-04-24all: drop unused variablesLubomir Rintel
Keeps build with GCC 8 happy. mm-base-call.c:758:18: warning: variable 'response' set but not used [-Wunused-but-set-variable] mm-base-call.c:822:18: warning: variable 'response' set but not used [-Wunused-but-set-variable] mm-base-sms.c:908:18: warning: variable 'response' set but not used [-Wunused-but-set-variable] mm-sms-list.c:331:25: warning: variable 'ctx' set but not used [-Wunused-but-set-variable] mm-iface-modem-messaging.c:1210:21: warning: variable 'storage_ctx' set but not used [-Wunused-but-set-variable] huawei/mm-plugin-huawei.c:183:18: warning: variable 'response' set but not used [-Wunused-but-set-variable] ublox/mm-plugin-ublox.c:161:24: warning: variable 'response' set but not used [-Wunused-but-set-variable] ublox/mm-plugin-ublox.c:159:24: warning: variable 'ctx' set but not used [-Wunused-but-set-variable] icera/mm-modem-helpers-icera.c:218:25: warning: variable 'first_free' set but not used [-Wunused-but-set-variable] novatel/mm-common-novatel.c:50:18: warning: variable 'response' set but not used [-Wunused-but-set-variable]
2017-04-07sms-list: port mm_sms_list_delete_sms to use GTaskBen Chan
2017-03-29core: reset GList pointers to NULL when necessaryBen Chan
When calling g_list_free_full() to free a GList in dispose(), it is necessary to reset the GList pointer to NULL as dispose() may be called more than once.
2017-03-29core: remove explicit GDestroyNotify cast on g_free / g_object_unrefBen Chan
g_free and g_object_unref are in form of `void (*)(gpointer)`, which matches the GDestroyNotify signature. An explicit GDestroyNotify cast on g_free and g_object_unref is thus not needed.
2014-07-06sms: rename 'MMSms' to 'MMBaseSms'Aleksander Morgado
Just so that we don't have same header names in src/ and /libmm-glib.
2014-05-20core: minor coding style fixesBen Chan
2013-11-21introspection,api: new 'Messages' property in the Messaging interfaceAleksander Morgado
https://bugzilla.gnome.org/show_bug.cgi?id=712276
2013-11-20build: use 'g_cclosure_marshal_generic' by defaultAleksander Morgado
Avoid custom marshalers, and just use libffi-based 'g_cclosure_marshal_generic'.
2012-10-04libmm-glib: remove the `libmm-common.h' headerAleksander Morgado
Both the ModemManager daemon and the mmcli will now include `libmm-glib.h' only. We also handle two new special `_LIBMM_INSIDE_MM' and `LIBMM_INSIDE_MMCLI' symbols, which if included before the `libmm-glib.h' library allow us to: * Don't include the libmm-glib high level API in the ModemManager daemon, as the object names would clash with those in the core. * Define some of the methods of helper objects to be included only if compiling ModemManager daemon or the mmcli.
2012-09-14sms: create SMS parts only when storing or sendingAleksander Morgado
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-14libmm-common: added common utils from coreAleksander Morgado
Moved the utils to play with binary to hex strings into libmm-common.
2012-09-14broadband-modem: properly avoid duplicate CMTI indicationsAleksander Morgado
We will look for the part being notified in the CMTI indication directly in the list of processed parts; and if we have it there already we won't re-process it. Still, we may get several CMTI indications for the same part one after the other, so it may still happen that the second CMTI comes *before* we have parsed and created the part in the SMS list. For that case, the SMS list will reject taking the part if there is already a part with the same storage+index already processed. This fix removes the `known_sms_parts' hash table, which was being handled incorrectly. This should fix https://bugzilla.gnome.org/show_bug.cgi?id=675175
2012-09-14sms-list: don't look for duplicate parts if index is unknownAleksander Morgado
2012-09-14sms: always export incomplete multipart SMS messagesAleksander Morgado
2012-09-07sms: multipart sequence starts with 1; singlepart is always 0Aleksander Morgado
2012-09-06sms-list: add helper debug logsAleksander Morgado
2012-03-16messaging: part index may be repeated in different storagesAleksander Morgado
2012-03-15sms: specify storage where the SMS is keptAleksander Morgado
2012-03-15sms-list: refactor SMS removalAleksander Morgado
If any of the parts couldn't be removed, an error is reported and the SMS is left in the list.
2012-03-15sms: export uncomplete multipart messages as wellAleksander Morgado
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-15sms-list: allow adding full SMS objects to the listAleksander Morgado
2012-03-15sms-list: handle NULL paths in SMS objectsAleksander Morgado
They will have NULL paths when they are not exported yet
2012-03-15api,header: renamed `MMModemSmsState' to `MMSmsState'Aleksander Morgado
2012-03-15sms: pass known state when creating the MMSms objectAleksander Morgado
2012-03-15iface-modem-messaging: allow subclassing SMS object creation methodsAleksander Morgado
2012-03-15sms: allow sublassing the part deletion procedureAleksander Morgado
2012-03-15sms: rename method which creates MMSms from single partAleksander Morgado
2012-03-15sms: assemble and export the SMS when its completedAleksander Morgado
2012-03-15sms-list: don't signal completed messagesAleksander Morgado
We will instead not export an SMS until completed and assembled
2012-03-15sms: set modem object, so that the SMS are exported in DBusAleksander Morgado
2012-03-15sms-list: allow deleting an SMS object and its partsAleksander Morgado
2012-03-15sms-list: signal messages added/completed/deletedAleksander Morgado
2012-03-15sms-list: new object to handle SMS objects and SMS partsAleksander Morgado