Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-07-03 14:43:46 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-07-13 12:24:26 +0300
commit1bff124f2ec279032e2093d68b62057ab4459087 (patch)
treea619dcad47f97a9cc8832fd2961b63f5d742d24b /lib/Events
parent437d06e6557827cf043d5364192b9ffd757676ab (diff)
Build threads after each IMAP sync
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Events')
-rw-r--r--lib/Events/SynchronizationEvent.php45
1 files changed, 45 insertions, 0 deletions
diff --git a/lib/Events/SynchronizationEvent.php b/lib/Events/SynchronizationEvent.php
new file mode 100644
index 000000000..12e51968a
--- /dev/null
+++ b/lib/Events/SynchronizationEvent.php
@@ -0,0 +1,45 @@
+<?php
+
+declare(strict_types=1);
+
+/**
+ * @copyright 2020 Christoph Wurst <christoph@winzerhof-wurst.at>
+ *
+ * @author 2020 Christoph Wurst <christoph@winzerhof-wurst.at>
+ *
+ * @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\Mail\Events;
+
+use OCA\Mail\Account;
+use OCP\EventDispatcher\Event;
+
+class SynchronizationEvent extends Event {
+
+ /** @var Account */
+ private $account;
+
+ public function __construct(Account $account) {
+ parent::__construct();
+
+ $this->account = $account;
+ }
+
+ public function getAccount(): Account {
+ return $this->account;
+ }
+}