2016-11-16 05:39:06 -05:00
|
|
|
<?php
|
|
|
|
|
/**
|
|
|
|
|
* @copyright Copyright (c) 2016 Joas Schilling <coding@schilljs.com>
|
|
|
|
|
*
|
2017-11-06 09:56:42 -05:00
|
|
|
* @author Joas Schilling <coding@schilljs.com>
|
|
|
|
|
*
|
2016-11-16 05:39:06 -05:00
|
|
|
* @license GNU AGPL version 3 or any later version
|
|
|
|
|
*
|
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU Affero General Public License as
|
|
|
|
|
* published by the Free Software Foundation, either version 3 of the
|
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2021-06-04 15:52:51 -04:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2016-11-16 05:39:06 -05:00
|
|
|
* GNU Affero General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
2019-12-03 13:57:53 -05:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2016-11-16 05:39:06 -05:00
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
namespace OCA\Comments\Activity;
|
|
|
|
|
|
|
|
|
|
use OCP\Activity\ISetting;
|
|
|
|
|
use OCP\IL10N;
|
|
|
|
|
|
|
|
|
|
class Setting implements ISetting {
|
2022-11-25 05:19:47 -05:00
|
|
|
protected IL10N $l;
|
2016-11-16 05:39:06 -05:00
|
|
|
|
|
|
|
|
public function __construct(IL10N $l) {
|
|
|
|
|
$this->l = $l;
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-25 05:19:47 -05:00
|
|
|
public function getIdentifier(): string {
|
2016-11-16 05:39:06 -05:00
|
|
|
return 'comments';
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-25 05:19:47 -05:00
|
|
|
public function getName(): string {
|
2016-11-16 05:39:06 -05:00
|
|
|
return $this->l->t('<strong>Comments</strong> for files');
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-25 05:19:47 -05:00
|
|
|
public function getPriority(): int {
|
2016-11-16 05:39:06 -05:00
|
|
|
return 50;
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-25 05:19:47 -05:00
|
|
|
public function canChangeStream(): bool {
|
2016-11-16 05:39:06 -05:00
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-25 05:19:47 -05:00
|
|
|
public function isDefaultEnabledStream(): bool {
|
2016-11-16 05:39:06 -05:00
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-25 05:19:47 -05:00
|
|
|
public function canChangeMail(): bool {
|
2016-11-16 05:39:06 -05:00
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-25 05:19:47 -05:00
|
|
|
public function isDefaultEnabledMail(): bool {
|
2016-11-16 05:39:06 -05:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|