Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add copyright
Signed-off-by: Топонен Никита <[email protected]>
  • Loading branch information
natoponen authored and nickvergessen committed Nov 16, 2022
commit 828014adb74ae02b3ceca047bfe6767c572f324e
24 changes: 23 additions & 1 deletion lib/Listener/PostLoginListener.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
<?php

/**
* @copyright Copyright (c) 2022 Nikita Toponen <[email protected]>
*
* @author Nikita Toponen <[email protected]>
*
* @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
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

namespace OCA\Notifications\Listener;

use OCA\Notifications\AppInfo\Application;
Expand Down Expand Up @@ -54,4 +76,4 @@ public function handle(Event $event): void {
$this->settingsMapper->setBatchSettingForUser($userId, $default_batchtime);
}
}
}
}
24 changes: 23 additions & 1 deletion lib/Listener/UserCreatedListener.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
<?php

/**
* @copyright Copyright (c) 2022 Nikita Toponen <[email protected]>
*
* @author Nikita Toponen <[email protected]>
*
* @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
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

namespace OCA\Notifications\Listener;

use OCA\Notifications\AppInfo\Application;
Expand Down Expand Up @@ -50,4 +72,4 @@ public function handle(Event $event): void {
$this->config->setUserValue($userId, Application::APP_ID, 'sound_talk', $default_sound_talk);
$this->settingsMapper->setBatchSettingForUser($userId, $default_batchtime);
}
}
}
24 changes: 23 additions & 1 deletion lib/Settings/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,28 @@

declare(strict_types=1);

/**
* @copyright Copyright (c) 2022 Nikita Toponen <[email protected]>
*
* @author Nikita Toponen <[email protected]>
*
* @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
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

namespace OCA\Notifications\Settings;

use OCA\Notifications\AppInfo\Application;
Expand Down Expand Up @@ -95,4 +117,4 @@ public function getPriority(): int
{
return 20;
}
}
}
24 changes: 23 additions & 1 deletion lib/Settings/AdminSection.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,28 @@

declare(strict_types=1);

/**
* @copyright Copyright (c) 2022 Nikita Toponen <[email protected]>
*
* @author Nikita Toponen <[email protected]>
*
* @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
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

namespace OCA\Notifications\Settings;

use OCP\IL10N;
Expand Down Expand Up @@ -64,4 +86,4 @@ public function getName(): string {
public function getPriority(): int {
return 10;
}
}
}
23 changes: 22 additions & 1 deletion templates/settings/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,27 @@

declare(strict_types=1);

/**
* @copyright Copyright (c) 2022 Nikita Toponen <[email protected]>
*
* @author Nikita Toponen <[email protected]>
*
* @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
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
?>

<div id="notifications-admin-settings"></div>
<div id="notifications-admin-settings"></div>