-
-
-#ifdef MODEST_HAVE_OSSO_MIME
-gboolean
-modest_platform_activate_uri (const gchar *uri)
-{
- OssoURIAction *action;
- gboolean result = FALSE;
- GSList *actions, *iter = NULL;
- const gchar *scheme;
-
- g_return_val_if_fail (uri, FALSE);
- if (!uri)
- return FALSE;
-
- /* the default action should be email */
- scheme = osso_uri_get_scheme_from_uri (uri, NULL);
- actions = osso_uri_get_actions (scheme, NULL);
-
- for (iter = actions; iter; iter = g_slist_next (iter)) {
- action = (OssoURIAction*) iter->data;
- if (action && strcmp (osso_uri_action_get_name (action), "uri_link_compose_email") == 0) {
- GError *err = NULL;
- result = osso_uri_open (uri, action, &err);
- if (!result && err) {
- g_printerr ("modest: modest_platform_activate_uri : %s",
- err->message ? err->message : "unknown error");
- g_error_free (err);
- }
- break;
- }
- }
-
- /* if we could open it with email, try something else */
- if (!result)
- result = osso_uri_open (uri, NULL, NULL);
-
-
- if (!result)
- hildon_banner_show_information (NULL, NULL, _("mcen_ib_unsupported_link"));
- return result;
-}
-
-#else /* !MODEST_HAVE_OSSO_MIME*/
-