Kaydet (Commit) 9b629f29 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Add (dummy) touch_ui_dialog_modal() implementations

Change-Id: I12fde9cc7180118ade39b7a037d05e8793bd1c12
üst 354c1a99
......@@ -11,6 +11,8 @@
// that the LO layer calls. As this experimental Android app doesn't
// handle any of that, these do nothing.
#include <android/log.h>
#include <touch/touch.h>
extern "C"
......@@ -41,4 +43,33 @@ touch_ui_selection_none()
{
}
static const char *
dialog_kind_to_string(MLODialogKind kind)
{
switch (kind) {
case MLODialogMessage:
return "MSG";
case MLODialogInformation:
return "INF";
case MLODialogWarning:
return "WRN";
case MLODialogError:
return "ERR";
case MLODialogQuery:
return "QRY";
default:
return "WTF";
}
}
extern "C"
__attribute__ ((visibility("default")))
MLODialogResult
touch_ui_dialog_modal(MLODialogKind kind, const char *message)
{
__android_log_print(ANDROID_LOG_INFO, "===> %s: %s", dialog_kind_to_string(kind), message);
return MLODialogOK;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -11,6 +11,8 @@
// that the LO layer calls. As this experimental Android app doesn't
// handle any of that, these do nothing.
#include <android/log.h>
#include <touch/touch.h>
extern "C"
......@@ -41,4 +43,32 @@ touch_ui_selection_none()
{
}
static const char *
dialog_kind_to_string(MLODialogKind kind)
{
switch (kind) {
case MLODialogMessage:
return "MSG";
case MLODialogInformation:
return "INF";
case MLODialogWarning:
return "WRN";
case MLODialogError:
return "ERR";
case MLODialogQuery:
return "QRY";
default:
return "WTF";
}
}
extern "C"
__attribute__ ((visibility("default")))
MLODialogResult
touch_ui_dialog_modal(MLODialogKind kind, const char *message)
{
__android_log_print(ANDROID_LOG_INFO, "===> %s: %s", dialog_kind_to_string(kind), message);
return MLODialogOK;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment