summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-07-31 11:38:29 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-07-31 11:38:29 +0200
commit4eb2b4e1b087234499f2721bc474fa979a47f1e0 (patch)
treeef5be6c1204bdc0fe11cf1009684496f4ab426f4 /lib/public
parentc1562057e813ff1dcb0e28b9616c528975fc3b5d (diff)
parent4a9b0d5465927b0b4cc856cebbc724264ffdd404 (diff)
downloadnextcloud-server-4eb2b4e1b087234499f2721bc474fa979a47f1e0.tar.gz
nextcloud-server-4eb2b4e1b087234499f2721bc474fa979a47f1e0.zip
Merge pull request #10051 from owncloud/preview-empty-text
Use svg mimeicons for empty text files
Diffstat (limited to 'lib/public')
-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);
}