summaryrefslogtreecommitdiffstats
path: root/lib/public/command/ibus.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/command/ibus.php')
-rw-r--r--lib/public/command/ibus.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/public/command/ibus.php b/lib/public/command/ibus.php
new file mode 100644
index 00000000000..bbb89ee04e6
--- /dev/null
+++ b/lib/public/command/ibus.php
@@ -0,0 +1,25 @@
+<?php
+/**
+ * Copyright (c) 2015 Robin Appelman <icewind@owncloud.com>
+ * This file is licensed under the Affero General Public License version 3 or
+ * later.
+ * See the COPYING-README file.
+ */
+
+namespace OCP\Command;
+
+interface IBus {
+ /**
+ * Schedule a command to be fired
+ *
+ * @param \OCP\Command\ICommand | callable $command
+ */
+ public function push($command);
+
+ /**
+ * Require all commands using a trait to be run synchronous
+ *
+ * @param string $trait
+ */
+ public function requireSync($trait);
+}