2016-10-25 12:00:25 -04:00
|
|
|
<?php
|
|
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2016-10-25 12:00:25 -04:00
|
|
|
*/
|
|
|
|
|
namespace OCP\Activity;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Interface ISetting
|
|
|
|
|
*
|
2016-11-16 03:29:27 -05:00
|
|
|
* @since 11.0.0
|
2016-10-25 12:00:25 -04:00
|
|
|
*/
|
|
|
|
|
interface ISetting {
|
|
|
|
|
/**
|
|
|
|
|
* @return string Lowercase a-z and underscore only identifier
|
2016-11-16 03:29:27 -05:00
|
|
|
* @since 11.0.0
|
2016-10-25 12:00:25 -04:00
|
|
|
*/
|
|
|
|
|
public function getIdentifier();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return string A translated string
|
2016-11-16 03:29:27 -05:00
|
|
|
* @since 11.0.0
|
2016-10-25 12:00:25 -04:00
|
|
|
*/
|
|
|
|
|
public function getName();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return int whether the filter should be rather on the top or bottom of
|
|
|
|
|
* the admin section. The filters are arranged in ascending order of the
|
|
|
|
|
* priority values. It is required to return a value between 0 and 100.
|
2016-11-16 03:29:27 -05:00
|
|
|
* @since 11.0.0
|
2016-10-25 12:00:25 -04:00
|
|
|
*/
|
|
|
|
|
public function getPriority();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return bool True when the option can be changed for the stream
|
2016-11-16 03:29:27 -05:00
|
|
|
* @since 11.0.0
|
2016-10-25 12:00:25 -04:00
|
|
|
*/
|
|
|
|
|
public function canChangeStream();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return bool True when the option can be changed for the stream
|
2016-11-16 03:29:27 -05:00
|
|
|
* @since 11.0.0
|
2016-10-25 12:00:25 -04:00
|
|
|
*/
|
|
|
|
|
public function isDefaultEnabledStream();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return bool True when the option can be changed for the mail
|
2016-11-16 03:29:27 -05:00
|
|
|
* @since 11.0.0
|
2016-10-25 12:00:25 -04:00
|
|
|
*/
|
|
|
|
|
public function canChangeMail();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return bool True when the option can be changed for the stream
|
2016-11-16 03:29:27 -05:00
|
|
|
* @since 11.0.0
|
2016-10-25 12:00:25 -04:00
|
|
|
*/
|
|
|
|
|
public function isDefaultEnabledMail();
|
|
|
|
|
}
|