Ecore_Win32_Window *win;
} win32;
#endif
- Eina_Stringshare *teamwork_uri;
Efl_Ui_Win_Type type;
Efl_Ui_Win_Keyboard_Mode kbdmode;
eina_stringshare_del(sd->shot.info);
ecore_timer_del(sd->shot.timer);
- eina_stringshare_replace(&sd->teamwork_uri, NULL);
#ifdef HAVE_ELEMENTARY_X
ecore_event_handler_del(sd->x.client_message_handler);
/* Efl.Part end */
-#ifndef EFL_TEAMWORK_VERSION
-# define EFL_TEAMWORK_VERSION 2
-#endif
-
-static EOLIAN void
-_efl_ui_win_teamwork_uri_preload(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd, const char *uri)
-{
-#ifdef HAVE_ELEMENTARY_X
- if (sd->x.xwin)
- {
- ecore_x_window_prop_string_set(sd->x.xwin, ECORE_X_ATOM_TEAMWORK_PROPERTY, uri);
- ecore_x_client_message32_send(sd->x.xwin, ECORE_X_ATOM_TEAMWORK_PRELOAD,
- ECORE_X_EVENT_MASK_WINDOW_MANAGE | ECORE_X_EVENT_MASK_WINDOW_CHILD_CONFIGURE, EFL_TEAMWORK_VERSION, 0, 0, 0, 0);
- }
-#endif
-#ifdef HAVE_ELEMENTARY_WL2
- if (sd->wl.win)
- {
- Ecore_Wl2_Display *ewd = ecore_wl2_window_display_get(sd->wl.win);
- if (ewd->wl.teamwork)
- zwp_teamwork_preload_uri(ewd->wl.teamwork, ecore_wl2_window_surface_get(sd->wl.win), uri);
- }
-#endif
- eina_stringshare_replace(&sd->teamwork_uri, uri);
-}
-
-static EOLIAN void
-_efl_ui_win_teamwork_uri_show(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd, const char *uri)
-{
- int x, y;
-
- EINA_SAFETY_ON_NULL_RETURN(uri);
- if (eina_streq(uri, sd->teamwork_uri)) return;
-
- evas_pointer_canvas_xy_get(sd->evas, &x, &y);
-#ifdef HAVE_ELEMENTARY_X
- if (sd->x.xwin)
- {
- ecore_x_window_prop_string_set(sd->x.xwin, ECORE_X_ATOM_TEAMWORK_PROPERTY, uri);
- ecore_x_client_message32_send(sd->x.xwin, ECORE_X_ATOM_TEAMWORK_ACTIVATE,
- ECORE_X_EVENT_MASK_WINDOW_MANAGE | ECORE_X_EVENT_MASK_WINDOW_CHILD_CONFIGURE, EFL_TEAMWORK_VERSION, x, y, 0, 0);
- }
-#endif
-#ifdef HAVE_ELEMENTARY_WL2
- if (sd->wl.win)
- {
- Ecore_Wl2_Display *ewd = ecore_wl2_window_display_get(sd->wl.win);
- if (ewd->wl.teamwork)
- zwp_teamwork_activate_uri(ewd->wl.teamwork, ecore_wl2_window_surface_get(sd->wl.win),
- uri, wl_fixed_from_int(x), wl_fixed_from_int(y));
- }
-#endif
- eina_stringshare_replace(&sd->teamwork_uri, uri);
-}
-
-static EOLIAN void
-_efl_ui_win_teamwork_uri_hide(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd)
-{
- if (!sd->teamwork_uri) return;
-#ifdef HAVE_ELEMENTARY_X
- if (sd->x.xwin)
- {
- ecore_x_window_prop_string_set(sd->x.xwin, ECORE_X_ATOM_TEAMWORK_PROPERTY, sd->teamwork_uri);
- ecore_x_client_message32_send(sd->x.xwin, ECORE_X_ATOM_TEAMWORK_DEACTIVATE,
- ECORE_X_EVENT_MASK_WINDOW_MANAGE | ECORE_X_EVENT_MASK_WINDOW_CHILD_CONFIGURE, EFL_TEAMWORK_VERSION, 0, 0, 0, 0);
- }
-#endif
-#ifdef HAVE_ELEMENTARY_WL2
- if (sd->wl.win)
- {
- Ecore_Wl2_Display *ewd = ecore_wl2_window_display_get(sd->wl.win);
- if (ewd->wl.teamwork)
- zwp_teamwork_deactivate_uri(ewd->wl.teamwork, ecore_wl2_window_surface_get(sd->wl.win), sd->teamwork_uri);
- }
-#endif
- eina_stringshare_replace(&sd->teamwork_uri, NULL);
-}
-
-static EOLIAN void
-_efl_ui_win_teamwork_uri_open(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd, const char *uri)
-{
- EINA_SAFETY_ON_NULL_RETURN(uri);
-#ifdef HAVE_ELEMENTARY_X
- if (sd->x.xwin)
- {
- ecore_x_window_prop_string_set(sd->x.xwin, ECORE_X_ATOM_TEAMWORK_PROPERTY, uri);
- ecore_x_client_message32_send(sd->x.xwin, ECORE_X_ATOM_TEAMWORK_OPEN,
- ECORE_X_EVENT_MASK_WINDOW_MANAGE | ECORE_X_EVENT_MASK_WINDOW_CHILD_CONFIGURE, EFL_TEAMWORK_VERSION, 0, 0, 0, 0);
- }
-#endif
-#ifdef HAVE_ELEMENTARY_WL2
- if (sd->wl.win)
- {
- Ecore_Wl2_Display *ewd = ecore_wl2_window_display_get(sd->wl.win);
- if (ewd->wl.teamwork)
- zwp_teamwork_open_uri(ewd->wl.teamwork, ecore_wl2_window_surface_get(sd->wl.win), uri);
- }
-#endif
-#if !defined(HAVE_ELEMENTARY_WL2) && !defined(HAVE_ELEMENTARY_X)
- (void)sd;
-#endif
-}
-
EOLIAN static Eina_Bool
_efl_ui_win_move_resize_start(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd, Efl_Ui_Win_Move_Resize_Mode mode)
{
efl_ui_win_type_set(obj, type);
}
+EAPI void
+elm_win_teamwork_uri_preload(Efl_Ui_Win *obj EINA_UNUSED, const char *uri EINA_UNUSED)
+{
+ ERR("Calling deprecrated function '%s'", __FUNCTION__);
+}
+
+EAPI void
+elm_win_teamwork_uri_show(Efl_Ui_Win *obj EINA_UNUSED, const char *uri EINA_UNUSED)
+{
+ ERR("Calling deprecrated function '%s'", __FUNCTION__);
+}
+
+EAPI void
+elm_win_teamwork_uri_hide(Efl_Ui_Win *obj EINA_UNUSED)
+{
+ ERR("Calling deprecrated function '%s'", __FUNCTION__);
+}
+
+EAPI void
+elm_win_teamwork_uri_open(Efl_Ui_Win *obj EINA_UNUSED, const char *uri EINA_UNUSED)
+{
+ ERR("Calling deprecrated function '%s'", __FUNCTION__);
+}
+
#include "efl_ui_win.eo.c"
EINA_DEPRECATED EAPI Eina_Bool elm_genlist_edit_mode_get(const Evas_Object *obj);
/**
+ * @brief Notify the compositor that a uri should be preloaded
+ *
+ * @param[in] uri This is the uri to notify with
+ *
+ * @since 1.18
+ *
+ * @ingroup Efl_Ui_Win
+ * @deprecated This is a possibly security issue and is non-portable outside enlightenment and there is no code to detect if it exists and even works, so better not to have this
+ */
+EINA_DEPRECATED EAPI void elm_win_teamwork_uri_preload(Efl_Ui_Win *obj, const char *uri);
+
+/**
+ * @brief Notify the compositor that a uri should be displayed
+ *
+ * Sends the current mouse coordinates as a hint for displaying the related uri
+ * in the compositor.
+ *
+ * @param[in] uri This is the uri to notify with
+ *
+ * @since 1.18
+ *
+ * @ingroup Efl_Ui_Win
+ * @deprecated This is a possibly security issue and is non-portable outside enlightenment and there is no code to detect if it exists and even works, so better not to have this
+ */
+EINA_DEPRECATED EAPI void elm_win_teamwork_uri_show(Efl_Ui_Win *obj, const char *uri);
+
+/**
+ * @brief Notify the compositor that a uri should be hidden
+ *
+ * Hides any uri-related media displayed in the compositor through previous
+ * @ref elm_win_teamwork_uri_show request
+ *
+ * @since 1.18
+ *
+ * @ingroup Efl_Ui_Win
+ * @deprecated This is a possibly security issue and is non-portable outside enlightenment and there is no code to detect if it exists and even works, so better not to have this
+ */
+EINA_DEPRECATED EAPI void elm_win_teamwork_uri_hide(Efl_Ui_Win *obj);
+
+/**
+ * @brief Notify the compositor that a uri should be opened
+ *
+ * Use the compositor's default application to open a uri
+ *
+ * @param[in] uri This is the uri to open
+ *
+ * @since 1.18
+ *
+ * @ingroup Efl_Ui_Win
+ * @deprecated This is a possibly security issue and is non-portable outside enlightenment and there is no code to detect if it exists and even works, so better not to have this
+ */
+EINA_DEPRECATED EAPI void elm_win_teamwork_uri_open(Efl_Ui_Win *obj, const char *uri);
+
+/**
* @}
*/