diff --git a/mms-handler-dbus/spec/org.nemomobile.MmsHandler.xml b/mms-handler-dbus/spec/org.nemomobile.MmsHandler.xml index 6340c26..3b059fc 100644 --- a/mms-handler-dbus/spec/org.nemomobile.MmsHandler.xml +++ b/mms-handler-dbus/spec/org.nemomobile.MmsHandler.xml @@ -56,6 +56,12 @@ + + diff --git a/mms-handler-dbus/src/mms_handler_dbus.c b/mms-handler-dbus/src/mms_handler_dbus.c index fdb4a7b..056d434 100644 --- a/mms-handler-dbus/src/mms_handler_dbus.c +++ b/mms-handler-dbus/src/mms_handler_dbus.c @@ -201,6 +201,7 @@ mms_handler_dbus_message_notify( const char* subject, time_t expiry, GBytes* push, + const char* location, mms_handler_message_notify_complete_fn cb, void* param) { @@ -215,8 +216,8 @@ mms_handler_dbus_message_notify( mms_handler_busy_inc(handler); call = mms_handler_notify_call_create(dbus, cb, param); - org_nemomobile_mms_handler_call_message_notification( - proxy, imsi, from, subject, expiry, bytes, call->cancellable, + org_nemomobile_mms_handler_call_message_notification(proxy, imsi, + from, subject, expiry, bytes, location, call->cancellable, mms_handler_dbus_message_notify_done, call); g_variant_unref(bytes); diff --git a/mms-lib/include/mms_handler.h b/mms-lib/include/mms_handler.h index a4ba229..7ef3aa5 100644 --- a/mms-lib/include/mms_handler.h +++ b/mms-lib/include/mms_handler.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2015 Jolla Ltd. + * Copyright (C) 2013-2017 Jolla Ltd. * Contact: Slava Monich * * This program is free software; you can redistribute it and/or modify @@ -10,7 +10,6 @@ * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * */ #ifndef JOLLA_MMS_HANDLER_H @@ -112,6 +111,7 @@ typedef struct mms_handler_class { const char* subject, /* Subject (optional) */ time_t expiry, /* Message expiry time */ GBytes* push, /* Raw push message */ + const char* location, /* Download URL */ mms_handler_message_notify_complete_fn cb, void* param); @@ -192,6 +192,7 @@ mms_handler_message_notify( const char* subject, /* Subject (optional) */ time_t expiry, /* Message expiry time */ GBytes* push, /* Raw push message */ + const char* location, /* Download URL */ mms_handler_message_notify_complete_fn cb, void* param); diff --git a/mms-lib/src/mms_handler.c b/mms-lib/src/mms_handler.c index ad955ec..089a96e 100644 --- a/mms-lib/src/mms_handler.c +++ b/mms-lib/src/mms_handler.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2016 Jolla Ltd. + * Copyright (C) 2013-2017 Jolla Ltd. * Contact: Slava Monich * * This program is free software; you can redistribute it and/or modify @@ -119,6 +119,7 @@ mms_handler_message_notify( const char* subject, time_t expiry, GBytes* push, + const char* location, mms_handler_message_notify_complete_fn cb, void* param) { @@ -128,7 +129,7 @@ mms_handler_message_notify( if (!from) from = ""; if (!subject) subject = ""; return klass->fn_message_notify(h, imsi, from, subject, expiry, - push, cb, param); + push, location, cb, param); } } return NULL; diff --git a/mms-lib/src/mms_task_notification.c b/mms-lib/src/mms_task_notification.c index f32954b..19798b6 100644 --- a/mms-lib/src/mms_task_notification.c +++ b/mms-lib/src/mms_task_notification.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2016 Jolla Ltd. + * Copyright (C) 2013-2017 Jolla Ltd. * Contact: Slava Monich * * This program is free software; you can redistribute it and/or modify @@ -168,7 +168,7 @@ mms_task_notification_ind( mms_task_ref(task); ind->notify = mms_handler_message_notify(task->handler, task->imsi, mms_strip_address_type(ni->from), ni->subject, ni->expiry, - ind->push, mms_task_notification_done, ind); + ind->push, ni->location, mms_task_notification_done, ind); if (ind->notify) { mms_task_set_state(task, MMS_TASK_STATE_PENDING);