summaryrefslogtreecommitdiff
path: root/src/lib/efl/Efl_Model_Common.h
diff options
context:
space:
mode:
authorLarry Jr <larry.olj@gmail.com>2016-04-20 17:07:53 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-04-29 13:21:24 -0300
commit0c76f82a31b1ad06a4da4c12f1a02139e0d0c6fa (patch)
tree254f0542b8fc5ea1af14936da8e6806262f3f8a6 /src/lib/efl/Efl_Model_Common.h
parent42346e22f4c06634e180c44cf63924dbc50a5184 (diff)
Efl, Eio, Eldbus, Elementary: new model API use eina_promise
Efl - efl_model_base changed to use eina_promise Eio - eio_model use efl_model_base with promise Eldbus - elddbus models use promise now Elementary - elm_view_list and elm_view_form use new models with promise updated all related examples and tests
Diffstat (limited to 'src/lib/efl/Efl_Model_Common.h')
-rw-r--r--src/lib/efl/Efl_Model_Common.h31
1 files changed, 13 insertions, 18 deletions
diff --git a/src/lib/efl/Efl_Model_Common.h b/src/lib/efl/Efl_Model_Common.h
index 1440e815a5..0ccccc15ba 100644
--- a/src/lib/efl/Efl_Model_Common.h
+++ b/src/lib/efl/Efl_Model_Common.h
@@ -1,6 +1,18 @@
1#ifndef EFL_MODEL_COMMON_H__ 1#ifndef EFL_MODEL_COMMON_H__
2# define EFL_MODEL_COMMON_H__ 2# define EFL_MODEL_COMMON_H__
3 3
4#include <Eina.h>
5
6EAPI extern Eina_Error EFL_MODEL_ERROR_UNKNOWN;
7EAPI extern Eina_Error EFL_MODEL_ERROR_NOT_SUPPORTED;
8EAPI extern Eina_Error EFL_MODEL_ERROR_NOT_FOUND;
9EAPI extern Eina_Error EFL_MODEL_ERROR_READ_ONLY;
10EAPI extern Eina_Error EFL_MODEL_ERROR_INIT_FAILED;
11EAPI extern Eina_Error EFL_MODEL_ERROR_INCORRECT_VALUE;
12EAPI extern Eina_Error EFL_MODEL_ERROR_PERMISSION_DENIED;
13
14typedef struct _Eina_Promise Eina_Promise;
15
4/** 16/**
5 * @struct _Efl_Model_Children_Event 17 * @struct _Efl_Model_Children_Event
6 * Every time a child id added the event 18 * Every time a child id added the event
@@ -29,16 +41,7 @@ typedef struct _Efl_Model_Children_Event Efl_Model_Children_Event;
29 41
30#include "interfaces/efl_model_base.eo.h" 42#include "interfaces/efl_model_base.eo.h"
31 43
32 /** 44EAPI int efl_model_init(void);
33 * @brief Sets the new load status signaling an event if changed
34 *
35 * @param model The model to call the event @c EFL_MODEL_EVENT_LOAD_STATUS
36 * @param load The load status to be changed
37 * @param status The new status
38 *
39 * @since 1.17
40 */
41EAPI void efl_model_load_set(Efl_Model_Base *model, Efl_Model_Load *load, Efl_Model_Load_Status status) EINA_ARG_NONNULL(1, 2);
42 45
43/** 46/**
44 * @brief Slices a list 47 * @brief Slices a list
@@ -54,14 +57,6 @@ EAPI void efl_model_load_set(Efl_Model_Base *model, Efl_Model_Load *load, Efl_Mo
54 */ 57 */
55EAPI Eina_Accessor *efl_model_list_slice(Eina_List *list, unsigned start, unsigned count) EINA_ARG_NONNULL(1); 58EAPI Eina_Accessor *efl_model_list_slice(Eina_List *list, unsigned start, unsigned count) EINA_ARG_NONNULL(1);
56 59
57/**
58 * @brief Notifies an error with an @c EFL_MODEL_EVENT_LOAD_STATUS
59 *
60 * @param model The model to be notified
61 *
62 * @since 1.17
63 */
64EAPI void efl_model_error_notify(Efl_Model_Base *model) EINA_ARG_NONNULL(1);
65 60
66/** 61/**
67 * @brief Notifies a property changed event with an @c EFL_MODEL_EVENT_PROPERTIES_CHANGED 62 * @brief Notifies a property changed event with an @c EFL_MODEL_EVENT_PROPERTIES_CHANGED