mirror of
https://github.com/nextcloud/server.git
synced 2024-12-29 16:38:28 +00:00
afa48a4e0e
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
41 lines
818 B
PHP
41 lines
818 B
PHP
<?php
|
|
/**
|
|
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
namespace OCA\Files_Trashbin\Trash;
|
|
|
|
use OCP\IUser;
|
|
|
|
interface ITrashManager extends ITrashBackend {
|
|
/**
|
|
* Add a backend for the trashbin
|
|
*
|
|
* @param string $storageType
|
|
* @param ITrashBackend $backend
|
|
* @since 15.0.0
|
|
*/
|
|
public function registerBackend(string $storageType, ITrashBackend $backend);
|
|
|
|
/**
|
|
* List all trash items in the root of the trashbin
|
|
*
|
|
* @param IUser $user
|
|
* @return ITrashItem[]
|
|
* @since 15.0.0
|
|
*/
|
|
public function listTrashRoot(IUser $user): array;
|
|
|
|
/**
|
|
* Temporally prevent files from being moved to the trash
|
|
*
|
|
* @since 15.0.0
|
|
*/
|
|
public function pauseTrash();
|
|
|
|
/**
|
|
* @since 15.0.0
|
|
*/
|
|
public function resumeTrash();
|
|
}
|