summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2013-11-01 08:59:03 +0200
committerTor Lillqvist <tml@collabora.com>2013-11-01 08:59:09 +0200
commit9b629f296732e8da630efe95321d9b1769b17a2f (patch)
tree7ebfe12845e0b0500c9df15ac91b4bd13b6d16a9 /android
parent354c1a99ea29e41dd948600071ccc6215d77c29a (diff)
Add (dummy) touch_ui_dialog_modal() implementations
Change-Id: I12fde9cc7180118ade39b7a037d05e8793bd1c12
Diffstat (limited to 'android')
-rw-r--r--android/experimental/LibreOffice4Android/dummies.cxx31
-rw-r--r--android/experimental/desktop/dummies.cxx30
2 files changed, 61 insertions, 0 deletions
diff --git a/android/experimental/LibreOffice4Android/dummies.cxx b/android/experimental/LibreOffice4Android/dummies.cxx
index 89766e837c57..5607ecfd72d6 100644
--- a/android/experimental/LibreOffice4Android/dummies.cxx
+++ b/android/experimental/LibreOffice4Android/dummies.cxx
@@ -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: */
diff --git a/android/experimental/desktop/dummies.cxx b/android/experimental/desktop/dummies.cxx
index 89766e837c57..f89009a317be 100644
--- a/android/experimental/desktop/dummies.cxx
+++ b/android/experimental/desktop/dummies.cxx
@@ -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: */