summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib/Trash/ITrashBackend.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2018-09-19 19:00:58 +0200
committerRobin Appelman <robin@icewind.nl>2018-10-17 14:56:48 +0200
commitd38163e89574e9d2a12be0cdf8f72e1e9bb4b75f (patch)
treebc07f70d769ed6a1e654b236b51c8499a1bc787c /apps/files_trashbin/lib/Trash/ITrashBackend.php
parent4adac445dc57d1ccc7f26e21018e1e731e5b1654 (diff)
downloadnextcloud-server-d38163e89574e9d2a12be0cdf8f72e1e9bb4b75f.tar.gz
nextcloud-server-d38163e89574e9d2a12be0cdf8f72e1e9bb4b75f.zip
fix trashbin previews for modular api
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_trashbin/lib/Trash/ITrashBackend.php')
-rw-r--r--apps/files_trashbin/lib/Trash/ITrashBackend.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/apps/files_trashbin/lib/Trash/ITrashBackend.php b/apps/files_trashbin/lib/Trash/ITrashBackend.php
index 35b16a00c22..90d3a29613d 100644
--- a/apps/files_trashbin/lib/Trash/ITrashBackend.php
+++ b/apps/files_trashbin/lib/Trash/ITrashBackend.php
@@ -22,6 +22,8 @@
namespace OCA\Files_Trashbin\Trash;
use OCP\Files\FileInfo;
+use OCP\Files\Node;
+use OCP\Files\SimpleFS\ISimpleFile;
use OCP\Files\Storage\IStorage;
use OCP\IUser;
@@ -61,7 +63,6 @@ interface ITrashBackend {
*
* @param IUser $user
* @param ITrashItem $item
- * @return
* @since 15.0.0
*/
public function removeItem(IUser $user, ITrashItem $item);
@@ -74,5 +75,12 @@ interface ITrashBackend {
* @return boolean whether or not the file was moved to trash, if false then the file should be deleted normally
* @since 15.0.0
*/
- public function moveToTrash(IStorage $storage, string $internalPath);
+ public function moveToTrash(IStorage $storage, string $internalPath): bool;
+
+ /**
+ * @param IUser $user
+ * @param int $fileId
+ * @return Node|null
+ */
+ public function getTrashNodeById(IUser $user, int $fileId);
}