summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/org/kde/qt/QtUtils.java
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/org/kde/qt/QtUtils.java')
-rw-r--r--qtjava/javalib/org/kde/qt/QtUtils.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/qtjava/javalib/org/kde/qt/QtUtils.java b/qtjava/javalib/org/kde/qt/QtUtils.java
new file mode 100644
index 00000000..dedc0ad5
--- /dev/null
+++ b/qtjava/javalib/org/kde/qt/QtUtils.java
@@ -0,0 +1,15 @@
+package org.kde.qt;
+
+public class QtUtils {
+
+ public interface Compute {
+ public Object run();
+ }
+
+ public static native Object execSyncOnGUIThread(Compute c);
+ public static native void execSyncOnGUIThread(Runnable r);
+
+ public static native void execAsyncOnGUIThread(Runnable r);
+
+}
+