summaryrefslogtreecommitdiff
path: root/include/touch/touch.h
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2013-10-31 21:26:02 +0200
committerTor Lillqvist <tml@collabora.com>2013-11-01 00:21:38 +0200
commit139bd9b4402eb19a8de71cceb2ce3807cbb5dbf0 (patch)
tree843826e663a8221f5f695c992b9b743ee980fa44 /include/touch/touch.h
parentac535415fe0a466acc23cdc32aabb6b7d03a31e3 (diff)
Add first attempt at an error message etc API
Add a touch_ui_dialog_modal() function which in some way displays an error or other message to the user, and possibly offers the possibility to choose some "OK", "Cancel", "Retry", "Ignore" type of response. Note that the "modality" is from the point of view of the LO thread. Change-Id: I1b2ad15854f8d76e2c30f93fb5356fad7e5d02ca
Diffstat (limited to 'include/touch/touch.h')
-rw-r--r--include/touch/touch.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/touch/touch.h b/include/touch/touch.h
index 7dddaf36eb8c..56e0eec63591 100644
--- a/include/touch/touch.h
+++ b/include/touch/touch.h
@@ -57,6 +57,27 @@ void touch_ui_show_keyboard();
void touch_ui_hide_keyboard();
bool touch_ui_keyboard_visible();
+// Dialogs, work in progress, no clear plan yet what to do
+
+typedef enum {
+ MLODialogMessage,
+ MLODialogInformation,
+ MLODialogWarning,
+ MLODialogError,
+ MLODialogQuery
+} MLODialogKind;
+
+typedef enum {
+ MLODialogOK,
+ MLODialogCancel,
+ MLODialogNo,
+ MLODialogYes,
+ MLODialogRetry,
+ MLODialogIgnore,
+} MLODialogResult;
+
+MLODialogResult touch_ui_dialog_modal(MLODialogKind kind, const char *message);
+
typedef enum {
MLOSelectionNone,
MLOSelectionText,