-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! feat: OCC and OCS Calendar Import/Export
Signed-off-by: SebastianKrupinski <[email protected]>
- Loading branch information
1 parent
9454b66
commit 5198d6b
Showing
5 changed files
with
76 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors | ||
* SPDX-License-Identifier: AGPL-3.0-or-later | ||
*/ | ||
namespace OCP\Calendar; | ||
|
||
/** | ||
* Calendar Export Limit Range | ||
* | ||
* @since 31.0.0 | ||
*/ | ||
class CalendarImportSettings { | ||
|
||
public string $format = 'ical'; | ||
public bool $supersede = false; | ||
public bool $emitEvent = false; | ||
public bool $emitITip = false; | ||
public int $bulk = 32; | ||
public int $validate = 1; // 0 - no validation, 1 - validate and repair, 2 - validate and skip | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors | ||
* SPDX-License-Identifier: AGPL-3.0-or-later | ||
*/ | ||
namespace OCP\Calendar; | ||
|
||
use OCP\Calendar\CalendarImportSettings; | ||
use Sabre\VObject\Component\VCalendar; | ||
|
||
/** | ||
* ICalendar Interface Extension to import data | ||
* | ||
* @since 31.0.0 | ||
*/ | ||
interface ICalendarImport { | ||
|
||
/** | ||
* Import objects | ||
* | ||
* @since 31.0.0 | ||
* | ||
* @param VCalendar $vObjects | ||
*/ | ||
public function import(CalendarImportSettings $settings, VCalendar ...$vObjects): void; | ||
|
||
} |