summaryrefslogtreecommitdiffstats
path: root/lib/preview/provider.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/preview/provider.php')
-rw-r--r--lib/preview/provider.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/preview/provider.php b/lib/preview/provider.php
new file mode 100644
index 00000000000..e4a730bafc8
--- /dev/null
+++ b/lib/preview/provider.php
@@ -0,0 +1,19 @@
+<?php
+namespace OC\Preview;
+
+abstract class Provider {
+ private $options;
+
+ public function __construct($options) {
+ $this->options=$options;
+ }
+
+ abstract public function getMimeType();
+
+ /**
+ * search for $query
+ * @param string $query
+ * @return
+ */
+ abstract public function getThumbnail($path, $maxX, $maxY, $scalingup, $fileview);
+}