From b81f23e24aad7d4fb37e837bbdcab4f43bccfc71 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Sat, 19 Apr 2025 10:30:58 -0500 Subject: base-sms,sms-list,iface-messaging: move MMBaseSms creation to MMBroadbandModem class This commit moves creation of the MMBaseSms objects out of MMSmsList and up into MMIfaceModemMessaging (which is already a MMBroadbandModem) and the MMBroadbandModem subclasses themselves. This flattens the creation of MMBaseSms objects by passing them down from the object that creates the SMS parts, rather than having a convoluted callback scheme relying on MMSmsList and MMBaseSms having direct knowledge of their owning modem. The goal is to eventually remove usage of MMBaseModem from MMBaseSms and MMSmsList so that we can test them more easily. Signed-off-by: Dan Williams --- src/mm-sms-list.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mm-sms-list.h') diff --git a/src/mm-sms-list.h b/src/mm-sms-list.h index 775611c8..e8503a22 100644 --- a/src/mm-sms-list.h +++ b/src/mm-sms-list.h @@ -68,6 +68,7 @@ gboolean mm_sms_list_has_part (MMSmsList *self, guint index); gboolean mm_sms_list_take_part (MMSmsList *self, + MMBaseSms *uninitialized_sms, MMSmsPart *part, MMSmsState state, MMSmsStorage storage, -- cgit v1.2.3-70-g09d2