Add a progressbar feature and the corresponding APIs accepted/tizen/common/20141121.180746 accepted/tizen/mobile/20141128.095002 submit/tizen/20141121.153826
authorManuel Bachmann <manuel.bachmann@open.eurogiciel.org>
Fri, 21 Nov 2014 13:58:35 +0000 (14:58 +0100)
committerManuel Bachmann <manuel.bachmann@open.eurogiciel.org>
Fri, 21 Nov 2014 15:26:14 +0000 (16:26 +0100)
commit6a6d906606e36ee7be1f63038953d303dd662f38
treef4b457299d3b32ed0a0198721d336dc20f877896
parentddb50a66359e9d5696ec92c5460f111a046a1769
Add a progressbar feature and the corresponding APIs

We now support a new set of APIs :
- set_progress () will create a progressbar, which status
will be determined by a float value (0.0=0%, 1.0=100%) ;
- get_progress () will retrieve the current float value ;
- set_progress_callback () takes a callback function and
a non-mandatory user-supplied pointer as arguments. This
function will be called as often as possible, and is
supposed to modify the progressbar state after blocking
wlmessage_show() has been issued, and call
wlmessage_destroy () when it is finished.

If a callback is given, the textfield and buttons will not
be shown, as the window is then supposed non-interactive.

X11 does not support these APIs for now ; they will have no
effect. Next commit will fix that.

Change-Id: I2ac4cab9b4bb0ed63fdd15baa50ec04b1c8ca769
Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
libwlmessage-wl.c
libwlmessage-x11.c
libwlmessage.h