quickpanel: added support for getting ec list of qp services 82/195682/2 accepted/tizen/unified/20181217.142022 submit/tizen/20181212.030325
authorGwanglim Lee <gl77.lee@samsung.com>
Mon, 17 Dec 2018 08:11:40 +0000 (17:11 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Mon, 17 Dec 2018 08:15:25 +0000 (08:15 +0000)
Change-Id: I739aae196a25b790cd5bbf859da6aa18bf76c9d3

src/bin/services/e_service_quickpanel.c
src/bin/services/e_service_quickpanel.h

index 708ffcced9a25cbcffc02e33326e83510cb47380..91c1b63001d2cae395cd2c9bea44a96b4c0ed7ab 100644 (file)
@@ -2290,3 +2290,17 @@ e_service_quickpanel_module_func_unset(void)
 
    return EINA_TRUE;
 }
+
+E_API Eina_List *
+e_service_quickpanels_get(void)
+{
+   Eina_List *l, *list = NULL;
+   E_Policy_Quickpanel *qp;
+
+   EINA_LIST_FOREACH(qp_services, l, qp)
+     {
+        list = eina_list_append(list, qp->ec);
+     }
+
+   return list;
+}
index ac82ab5b8178a589186538c5a25dba7e61c06a96..4fa9d3b5be50c48269a8b93e370dae079167a50c 100644 (file)
@@ -51,6 +51,7 @@ struct _E_QP_Mgr_Funcs
 
 E_API Eina_Bool   e_service_quickpanel_module_func_set(E_QP_Mgr_Funcs *fp);
 E_API Eina_Bool   e_service_quickpanel_module_func_unset(void);
+E_API Eina_List  *e_service_quickpanels_get(void);
 
 EINTERN void      e_service_quickpanel_client_add(E_Client *ec, E_Service_Quickpanel_Type type);
 EINTERN void      e_service_quickpanel_client_del(E_Client *ec);