summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-11-10 14:04:59 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2016-11-10 14:28:09 +0100
commit99ada40df48af18396b8a99363832b1bffc58d37 (patch)
treecb517371491f913f1a3dc4969d7aa0d7061e4bb5 /lib/public
parentcfda17d8f3c55cbbd8decb134c82c499e3c2c2f4 (diff)
downloadnextcloud-server-99ada40df48af18396b8a99363832b1bffc58d37.tar.gz
nextcloud-server-99ada40df48af18396b8a99363832b1bffc58d37.zip
Dispatch event on preview request
Fixes: #73 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/IPreview.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/public/IPreview.php b/lib/public/IPreview.php
index c6417b4d182..90f7a56b66c 100644
--- a/lib/public/IPreview.php
+++ b/lib/public/IPreview.php
@@ -43,6 +43,11 @@ use OCP\Files\NotFoundException;
*/
interface IPreview {
+ /**
+ * @since 9.2.0
+ */
+ const EVENT = self::class . ':' . 'PreviewRequested';
+
const MODE_FILL = 'fill';
const MODE_COVER = 'cover';