options = $options; } /** * @return string Regex with the mimetypes that are supported by this provider */ abstract public function getMimeType(); /** * Check if a preview can be generated for $path * * @param \OCP\Files\FileInfo $file * @return bool */ public function isAvailable(\OCP\Files\FileInfo $file) { return true; } /** * Generates thumbnail which fits in $maxX and $maxY and keeps the aspect ratio, for file at path $path * * @param string $path Path of file * @param int $maxX The maximum X size of the thumbnail. It can be smaller depending on the shape of the image * @param int $maxY The maximum Y size of the thumbnail. It can be smaller depending on the shape of the image * @param bool $scalingup Disable/Enable upscaling of previews * @param \OC\Files\View $fileview fileview object of user folder * @return bool|\OCP\IImage false if no preview was generated */ abstract public function getThumbnail($path, $maxX, $maxY, $scalingup, $fileview); } eceiver Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Files/Cache/CacheEntryUpdatedEvent.php
blob: 91dcf5340aa661a89272964b58efe1c423ff27e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php

declare(strict_types=1);

/**
 * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
namespace OCP\Files\Cache;

/**
 * Event for when an existing entry in the cache gets updated
 *
 * @since 21.0.0
 */
class CacheEntryUpdatedEvent extends AbstractCacheEvent implements ICacheEvent {
}