From 44724236a014072a5a5012a9e77fb9d2a903fe1d Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 6 May 2015 16:00:35 +0300 Subject: Add support for progress bar callbacks to LibreOfficeKit clients The comphelper::LibreOfficeKit bits. Also will need additions to the libsofficeapp bits in desktop and then to the StatusIndicator implementation in framework. Change-Id: I15c2505bbf6439c07d1956685d0a6d2a22aefc58 --- include/comphelper/lok.hxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/comphelper/lok.hxx') diff --git a/include/comphelper/lok.hxx b/include/comphelper/lok.hxx index 8ddfb5a84fde..ba4745c8e61b 100644 --- a/include/comphelper/lok.hxx +++ b/include/comphelper/lok.hxx @@ -22,6 +22,16 @@ COMPHELPER_DLLPUBLIC void setActive(); COMPHELPER_DLLPUBLIC bool isActive(); +enum class statusIndicatorCallbackType { Start, SetValue, Finish }; + +COMPHELPER_DLLPUBLIC void setStatusIndicatorCallback(void (*callback)(void *data, statusIndicatorCallbackType type, int percent), void *data); + +COMPHELPER_DLLPUBLIC void statusIndicatorStart(); + +COMPHELPER_DLLPUBLIC void statusIndicatorSetValue(int percent); + +COMPHELPER_DLLPUBLIC void statusIndicatorFinish(); + } } -- cgit