summaryrefslogtreecommitdiffstats
path: root/lib/public/ipreview.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-07-30 16:29:18 +0200
committerRobin Appelman <icewind@owncloud.com>2014-07-30 16:31:37 +0200
commit4a9b0d5465927b0b4cc856cebbc724264ffdd404 (patch)
tree2203c4dd985bebc76fd92b3237f6f72c3d8f7077 /lib/public/ipreview.php
parent2946a63f6bbcf298a30bb89ed72dbb650bc39def (diff)
downloadnextcloud-server-4a9b0d5465927b0b4cc856cebbc724264ffdd404.tar.gz
nextcloud-server-4a9b0d5465927b0b4cc856cebbc724264ffdd404.zip
Use svg mimeicons for empty text files
Diffstat (limited to 'lib/public/ipreview.php')
-rw-r--r--lib/public/ipreview.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/public/ipreview.php b/lib/public/ipreview.php
index f74472ad368..cc756ef80d3 100644
--- a/lib/public/ipreview.php
+++ b/lib/public/ipreview.php
@@ -57,4 +57,11 @@ interface IPreview
*/
function isMimeSupported($mimeType = '*');
+ /**
+ * Check if a preview can be generated for a file
+ *
+ * @param \OCP\Files\FileInfo $file
+ * @return bool
+ */
+ function isAvailable($file);
}