summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-03-12 10:48:52 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2015-03-16 12:44:11 +0100
commit0b37d5aea3c1bf4a30dece3ab7dfe838f50d36f2 (patch)
tree142c567ee178c27397e1d6750b908a872eb0198b /lib/public
parentcae8529359ee4b0733cfbc958ab1405b45f0f2d2 (diff)
downloadnextcloud-server-0b37d5aea3c1bf4a30dece3ab7dfe838f50d36f2.tar.gz
nextcloud-server-0b37d5aea3c1bf4a30dece3ab7dfe838f50d36f2.zip
Move default provider registration to preview manager
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/ipreview.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/public/ipreview.php b/lib/public/ipreview.php
index 9ebe2e2d1cf..4a45fa29085 100644
--- a/lib/public/ipreview.php
+++ b/lib/public/ipreview.php
@@ -50,6 +50,18 @@ interface IPreview {
public function registerProvider($mimeTypeRegex, \Closure $callable);
/**
+ * Get all providers
+ * @return array
+ */
+ public function getProviders();
+
+ /**
+ * Does the manager have any providers
+ * @return bool
+ */
+ public function hasProviders();
+
+ /**
* Return a preview of a file
* @param string $file The path to the file where you want a thumbnail from
* @param int $maxX The maximum X size of the thumbnail. It can be smaller depending on the shape of the image