From b39526c27c44302c34fce26163919a0c4c7aecd3 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Mon, 26 Mar 2018 19:55:23 +0000 Subject: URL dispatcher support: Build phone code, even if URL dispatcher is unavailable. --- src/actions-live.cpp | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'src/actions-live.cpp') diff --git a/src/actions-live.cpp b/src/actions-live.cpp index 994fc3c..9225d30 100644 --- a/src/actions-live.cpp +++ b/src/actions-live.cpp @@ -135,10 +135,13 @@ void LiveActions::desktop_open_calendar_app(const DateTime& dt) **** ***/ -#ifdef HAS_URLDISPATCHER void LiveActions::phone_open_alarm_app() { +#ifdef HAS_URLDISPATCHER dispatch_url("appid://com.ubuntu.clock/clock/current-user-version"); +#else + // FIXME: Deal with this, if we build without liburl-dispatcher... +#endif } void LiveActions::phone_open_appointment(const Appointment& appt) @@ -146,7 +149,11 @@ void LiveActions::phone_open_appointment(const Appointment& appt) if (!appt.activation_url.empty()) { +#ifdef HAS_URLDISPATCHER dispatch_url(appt.activation_url); +#else + // FIXME: Deal with this, if we build without liburl-dispatcher... +#endif } else switch (appt.type) { @@ -161,15 +168,22 @@ void LiveActions::phone_open_appointment(const Appointment& appt) void LiveActions::phone_open_calendar_app(const DateTime&) { +#ifdef HAS_URLDISPATCHER // does calendar app have a mechanism for specifying dates? dispatch_url("appid://com.ubuntu.calendar/calendar/current-user-version"); +#else + // FIXME: Deal with this, if we build without liburl-dispatcher... +#endif } void LiveActions::phone_open_settings_app() { +#ifdef HAS_URLDISPATCHER dispatch_url("settings:///system/time-date"); -} +#else + // FIXME: Deal with this, if we build without liburl-dispatcher... #endif +} /*** **** -- cgit v1.2.3