init III
This commit is contained in:
76
Perl OTRS/Kernel/cpan-lib/Data/ICal/Entry/Alarm/Audio.pm
Normal file
76
Perl OTRS/Kernel/cpan-lib/Data/ICal/Entry/Alarm/Audio.pm
Normal file
@@ -0,0 +1,76 @@
|
||||
use warnings;
|
||||
use strict;
|
||||
|
||||
package Data::ICal::Entry::Alarm::Audio;
|
||||
|
||||
use base qw/Data::ICal::Entry::Alarm/;
|
||||
|
||||
=head1 NAME
|
||||
|
||||
Data::ICal::Entry::Alarm::Audio - Represents an audio alarm in an iCalendar file
|
||||
|
||||
=head1 SYNOPSIS
|
||||
|
||||
my $valarm = Data::ICal::Entry::Alarm::Audio->new();
|
||||
$valarm->add_properties(
|
||||
attach => [ "ftp://host.com/pub/sounds/bell-01.aud", { fmttype => "audio/basic" } ],
|
||||
# Dat*e*::ICal is not a typo here
|
||||
trigger => [ Date::ICal->new( epoch => ... )->ical, { value => 'DATE-TIME' } ],
|
||||
);
|
||||
|
||||
$vevent->add_entry($valarm);
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
A L<Data::ICal::Entry::Alarm::Audio> object represents an audio alarm
|
||||
attached to a todo item or event in an iCalendar file. (Note that the
|
||||
iCalendar RFC refers to entries as "components".) It is a subclass of
|
||||
L<Data::ICal::Entry::Alarm> and accepts all of its methods.
|
||||
|
||||
=head1 METHODS
|
||||
|
||||
=cut
|
||||
|
||||
=head2 new
|
||||
|
||||
Creates a new L<Data::ICal::Entry::Alarm::Audio> object; sets its
|
||||
C<ACTION> property to C<AUDIO>.
|
||||
|
||||
=cut
|
||||
|
||||
sub new {
|
||||
my $class = shift;
|
||||
my $self = $class->SUPER::new(@_);
|
||||
$self->add_property( action => "AUDIO" );
|
||||
return $self;
|
||||
}
|
||||
|
||||
=head2 optional_unique_properties
|
||||
|
||||
In addition to C<duration> and C<repeat> (see
|
||||
L<Data::ICal::Entry::Alarm/optional_unique_properties>), audio alarms
|
||||
may specify a value for C<attach>.
|
||||
|
||||
=cut
|
||||
|
||||
sub optional_unique_properties {
|
||||
return (
|
||||
shift->SUPER::optional_unique_properties,
|
||||
"attach",
|
||||
);
|
||||
}
|
||||
|
||||
=head1 AUTHOR
|
||||
|
||||
Best Practical Solutions, LLC E<lt>modules@bestpractical.comE<gt>
|
||||
|
||||
=head1 LICENCE AND COPYRIGHT
|
||||
|
||||
Copyright (c) 2005 - 2015, Best Practical Solutions, LLC. All rights reserved.
|
||||
|
||||
This module is free software; you can redistribute it and/or
|
||||
modify it under the same terms as Perl itself. See L<perlartistic>.
|
||||
|
||||
=cut
|
||||
|
||||
1;
|
||||
77
Perl OTRS/Kernel/cpan-lib/Data/ICal/Entry/Alarm/Display.pm
Normal file
77
Perl OTRS/Kernel/cpan-lib/Data/ICal/Entry/Alarm/Display.pm
Normal file
@@ -0,0 +1,77 @@
|
||||
use warnings;
|
||||
use strict;
|
||||
|
||||
package Data::ICal::Entry::Alarm::Display;
|
||||
|
||||
use base qw/Data::ICal::Entry::Alarm/;
|
||||
|
||||
=head1 NAME
|
||||
|
||||
Data::ICal::Entry::Alarm::Display - Represents a displayed alarm in an iCalendar file
|
||||
|
||||
=head1 SYNOPSIS
|
||||
|
||||
my $valarm = Data::ICal::Entry::Alarm::Display->new();
|
||||
$valarm->add_properties(
|
||||
description => "Wake up!",
|
||||
# Dat*e*::ICal is not a typo here
|
||||
trigger => [ Date::ICal->new( epoch => ... )->ical, { value => 'DATE-TIME' } ],
|
||||
);
|
||||
|
||||
$vevent->add_entry($valarm);
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
A L<Data::ICal::Entry::Alarm::Display> object represents a alarm that
|
||||
displays a message which is attached to a todo item or event in an
|
||||
iCalendar file. (Note that the iCalendar RFC refers to entries as
|
||||
"components".) It is a subclass of L<Data::ICal::Entry::Alarm> and
|
||||
accepts all of its methods.
|
||||
|
||||
=head1 METHODS
|
||||
|
||||
=cut
|
||||
|
||||
=head2 new
|
||||
|
||||
Creates a new L<Data::ICal::Entry::Alarm::Display> object; sets its
|
||||
C<ACTION> property to C<DISPLAY>.
|
||||
|
||||
=cut
|
||||
|
||||
sub new {
|
||||
my $class = shift;
|
||||
my $self = $class->SUPER::new(@_);
|
||||
$self->add_property( action => "DISPLAY" );
|
||||
return $self;
|
||||
}
|
||||
|
||||
=head2 mandatory_unique_properties
|
||||
|
||||
In addition to C<action> and C<trigger> (see
|
||||
L<Data::ICal::Entry::Alarm/mandatory_unique_properties>), displayed
|
||||
alarms must also specify a value for C<description>.
|
||||
|
||||
=cut
|
||||
|
||||
sub mandatory_unique_properties {
|
||||
return (
|
||||
shift->SUPER::mandatory_unique_properties,
|
||||
"description",
|
||||
);
|
||||
}
|
||||
|
||||
=head1 AUTHOR
|
||||
|
||||
Best Practical Solutions, LLC E<lt>modules@bestpractical.comE<gt>
|
||||
|
||||
=head1 LICENCE AND COPYRIGHT
|
||||
|
||||
Copyright (c) 2005 - 2015, Best Practical Solutions, LLC. All rights reserved.
|
||||
|
||||
This module is free software; you can redistribute it and/or
|
||||
modify it under the same terms as Perl itself. See L<perlartistic>.
|
||||
|
||||
=cut
|
||||
|
||||
1;
|
||||
106
Perl OTRS/Kernel/cpan-lib/Data/ICal/Entry/Alarm/Email.pm
Normal file
106
Perl OTRS/Kernel/cpan-lib/Data/ICal/Entry/Alarm/Email.pm
Normal file
@@ -0,0 +1,106 @@
|
||||
use warnings;
|
||||
use strict;
|
||||
|
||||
package Data::ICal::Entry::Alarm::Email;
|
||||
|
||||
use base qw/Data::ICal::Entry::Alarm/;
|
||||
|
||||
=head1 NAME
|
||||
|
||||
Data::ICal::Entry::Alarm::Email - Represents an emailed alarm in an iCalendar file
|
||||
|
||||
=head1 SYNOPSIS
|
||||
|
||||
my $valarm = Data::ICal::Entry::Alarm::Audio->new();
|
||||
$valarm->add_properties(
|
||||
attach => [ "basic:ftp://host.com/pub/sounds/bell-01.aud", { fmttype => "audio/basic" } ],
|
||||
# Dat*e*::ICal is not a typo here
|
||||
trigger => [ Date::ICal->new( epoch => ... )->ical, { value => 'DATE-TIME' } ],
|
||||
);
|
||||
|
||||
$vevent->add_entry($valarm);
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
A L<Data::ICal::Entry::Alarm::Email> object represents an emailed
|
||||
alarm attached to a todo item or event in an iCalendar file. (Note
|
||||
that the iCalendar RFC refers to entries as "components".) It is a
|
||||
subclass of L<Data::ICal::Entry::Alarm> and accepts all of its methods.
|
||||
|
||||
The C<attendee> properties are intended as the recipient list of the
|
||||
email; the C<summary> as its subject; the C<description> as its body;
|
||||
and the C<attach> as its attachments.
|
||||
|
||||
=head1 METHODS
|
||||
|
||||
=cut
|
||||
|
||||
=head2 new
|
||||
|
||||
Creates a new L<Data::ICal::Entry::Alarm::Email> object; sets its
|
||||
C<ACTION> property to C<EMAIL>.
|
||||
|
||||
=cut
|
||||
|
||||
sub new {
|
||||
my $class = shift;
|
||||
my $self = $class->SUPER::new(@_);
|
||||
$self->add_property( action => "EMAIL" );
|
||||
return $self;
|
||||
}
|
||||
|
||||
=head2 mandatory_unique_properties
|
||||
|
||||
In addition to C<action> and C<trigger> (see
|
||||
L<Data::ICal::Entry::Alarm/mandatory_unique_properties>), emailed alarms
|
||||
must also specify a value for C<description> and C<summary>.
|
||||
|
||||
=cut
|
||||
|
||||
sub mandatory_unique_properties {
|
||||
return (
|
||||
shift->SUPER::mandatory_unique_properties,
|
||||
"description", "summary",
|
||||
);
|
||||
}
|
||||
|
||||
=head2 mandatory_repeatable_properties
|
||||
|
||||
According to the iCalendar standard, the C<attendee> property must be
|
||||
specified at least once for an emailed alarm.
|
||||
|
||||
=cut
|
||||
|
||||
sub mandatory_repeatable_properties {
|
||||
qw(
|
||||
attendee
|
||||
);
|
||||
}
|
||||
|
||||
=head2 optional_repeatable_properties
|
||||
|
||||
According to the iCalendar standard, the C<attach> property may be
|
||||
specified any number of times for an emailed alarm.
|
||||
|
||||
=cut
|
||||
|
||||
sub optional_repeatable_properties {
|
||||
qw(
|
||||
attach
|
||||
);
|
||||
}
|
||||
|
||||
=head1 AUTHOR
|
||||
|
||||
Best Practical Solutions, LLC E<lt>modules@bestpractical.comE<gt>
|
||||
|
||||
=head1 LICENCE AND COPYRIGHT
|
||||
|
||||
Copyright (c) 2005 - 2015, Best Practical Solutions, LLC. All rights reserved.
|
||||
|
||||
This module is free software; you can redistribute it and/or
|
||||
modify it under the same terms as Perl itself. See L<perlartistic>.
|
||||
|
||||
=cut
|
||||
|
||||
1;
|
||||
63
Perl OTRS/Kernel/cpan-lib/Data/ICal/Entry/Alarm/None.pm
Normal file
63
Perl OTRS/Kernel/cpan-lib/Data/ICal/Entry/Alarm/None.pm
Normal file
@@ -0,0 +1,63 @@
|
||||
use warnings;
|
||||
use strict;
|
||||
|
||||
package Data::ICal::Entry::Alarm::None;
|
||||
|
||||
use base qw/Data::ICal::Entry::Alarm/;
|
||||
|
||||
=head1 NAME
|
||||
|
||||
Data::ICal::Entry::Alarm::None - Represents an default no-op alarm
|
||||
|
||||
=head1 SYNOPSIS
|
||||
|
||||
my $valarm = Data::ICal::Entry::Alarm::None->new();
|
||||
$vevent->add_entry($valarm);
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
A L<Data::ICal::Entry::Alarm::None> object represents a default alarm
|
||||
that does nothing; this is different from a lack of alarm, because
|
||||
clients may be expected to "override" any default alarm present in
|
||||
calendar data with the current value retrieved from the server. This
|
||||
class is a subclass of L<Data::ICal::Entry::Alarm> and accepts all of
|
||||
its methods.
|
||||
|
||||
This element is not included in the official iCal RFC, but is rather an
|
||||
unaccepted draft standard; see
|
||||
L<https://tools.ietf.org/html/draft-daboo-valarm-extensions-04#section-11>
|
||||
B<Its interoperability and support is thus limited.> This is alarm type
|
||||
is primarily used by Apple.
|
||||
|
||||
=head1 METHODS
|
||||
|
||||
=cut
|
||||
|
||||
=head2 new
|
||||
|
||||
Creates a new L<Data::ICal::Entry::Alarm::None> object; sets its
|
||||
C<ACTION> property to C<NONE>.
|
||||
|
||||
=cut
|
||||
|
||||
sub new {
|
||||
my $class = shift;
|
||||
my $self = $class->SUPER::new(@_);
|
||||
$self->add_property( action => "NONE" );
|
||||
return $self;
|
||||
}
|
||||
|
||||
=head1 AUTHOR
|
||||
|
||||
Best Practical Solutions, LLC E<lt>modules@bestpractical.comE<gt>
|
||||
|
||||
=head1 LICENCE AND COPYRIGHT
|
||||
|
||||
Copyright (c) 2005 - 2015, Best Practical Solutions, LLC. All rights reserved.
|
||||
|
||||
This module is free software; you can redistribute it and/or
|
||||
modify it under the same terms as Perl itself. See L<perlartistic>.
|
||||
|
||||
=cut
|
||||
|
||||
1;
|
||||
92
Perl OTRS/Kernel/cpan-lib/Data/ICal/Entry/Alarm/Procedure.pm
Normal file
92
Perl OTRS/Kernel/cpan-lib/Data/ICal/Entry/Alarm/Procedure.pm
Normal file
@@ -0,0 +1,92 @@
|
||||
use warnings;
|
||||
use strict;
|
||||
|
||||
package Data::ICal::Entry::Alarm::Procedure;
|
||||
|
||||
use base qw/Data::ICal::Entry::Alarm/;
|
||||
|
||||
=head1 NAME
|
||||
|
||||
Data::ICal::Entry::Alarm::Procedure - Represents a procedure-call alarm in an iCalendar file
|
||||
|
||||
=head1 SYNOPSIS
|
||||
|
||||
my $valarm = Data::ICal::Entry::Alarm::Procedure->new();
|
||||
$valarm->add_properties(
|
||||
attach => [ "ftp://host.com/novo-procs/felizano.exe", { fmttype => "application/binary" } ],
|
||||
# Dat*e*::ICal is not a typo here
|
||||
trigger => [ Date::ICal->new( epoch => ... )->ical, { value => 'DATE-TIME' } ],
|
||||
);
|
||||
|
||||
$vevent->add_entry($valarm);
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
A L<Data::ICal::Entry::Alarm::Procedure> object represents an alarm
|
||||
that calls a procedure (in some application-defined way), which is
|
||||
attached to a todo item or event in an iCalendar file. (Note that the
|
||||
iCalendar RFC refers to entries as "components".) It is a subclass of
|
||||
L<Data::ICal::Entry::Alarm> and accepts all of its methods.
|
||||
|
||||
=head1 METHODS
|
||||
|
||||
=cut
|
||||
|
||||
=head2 new
|
||||
|
||||
Creates a new L<Data::ICal::Entry::Alarm::Procedure> object; sets its
|
||||
C<ACTION> property to C<PROCEDURE>.
|
||||
|
||||
=cut
|
||||
|
||||
sub new {
|
||||
my $class = shift;
|
||||
my $self = $class->SUPER::new(@_);
|
||||
$self->add_property( action => "PROCEDURE" );
|
||||
return $self;
|
||||
}
|
||||
|
||||
=head2 optional_unique_properties
|
||||
|
||||
In addition to C<duration> and C<repeat> (see
|
||||
L<Data::ICal::Entry::Alarm/optional_unique_properties>), procedure-call
|
||||
alarms may also specify a value for C<description>.
|
||||
|
||||
=cut
|
||||
|
||||
sub optional_unique_properties {
|
||||
return (
|
||||
shift->SUPER::optional_unique_properties,
|
||||
"description",
|
||||
);
|
||||
}
|
||||
|
||||
=head2 mandatory_unique_properties
|
||||
|
||||
In addition to C<action> and C<trigger> (see
|
||||
L<Data::ICal::Entry::Alarm/mandatory_unique_properties>), procedure-call
|
||||
alarms must also specify a value for C<attach>.
|
||||
|
||||
=cut
|
||||
|
||||
sub mandatory_unique_properties {
|
||||
return (
|
||||
shift->SUPER::mandatory_unique_properties,
|
||||
"attach",
|
||||
);
|
||||
}
|
||||
|
||||
=head1 AUTHOR
|
||||
|
||||
Best Practical Solutions, LLC E<lt>modules@bestpractical.comE<gt>
|
||||
|
||||
=head1 LICENCE AND COPYRIGHT
|
||||
|
||||
Copyright (c) 2005 - 2015, Best Practical Solutions, LLC. All rights reserved.
|
||||
|
||||
This module is free software; you can redistribute it and/or
|
||||
modify it under the same terms as Perl itself. See L<perlartistic>.
|
||||
|
||||
=cut
|
||||
|
||||
1;
|
||||
83
Perl OTRS/Kernel/cpan-lib/Data/ICal/Entry/Alarm/URI.pm
Normal file
83
Perl OTRS/Kernel/cpan-lib/Data/ICal/Entry/Alarm/URI.pm
Normal file
@@ -0,0 +1,83 @@
|
||||
use warnings;
|
||||
use strict;
|
||||
|
||||
package Data::ICal::Entry::Alarm::URI;
|
||||
|
||||
use base qw/Data::ICal::Entry::Alarm/;
|
||||
|
||||
=head1 NAME
|
||||
|
||||
Data::ICal::Entry::Alarm::URI - Represents notification via a custom URI
|
||||
|
||||
=head1 SYNOPSIS
|
||||
|
||||
my $valarm = Data::ICal::Entry::Alarm::URI->new();
|
||||
$valarm->add_properties(
|
||||
uri => "sms:+15105550101?body=hello%20there",
|
||||
# Dat*e*::ICal is not a typo here
|
||||
trigger => [ Date::ICal->new( epoch => ... )->ical, { value => 'DATE-TIME' } ],
|
||||
);
|
||||
|
||||
$vevent->add_entry($valarm);
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
A L<Data::ICal::Entry::Alarm::URI> object represents an alarm that
|
||||
notifies via arbitrary URI which is attached to a todo item or event in
|
||||
an iCalendar file. (Note that the iCalendar RFC refers to entries as
|
||||
"components".) It is a subclass of L<Data::ICal::Entry::Alarm> and
|
||||
accepts all of its methods.
|
||||
|
||||
This element is not included in the official iCal RFC, but is rather an
|
||||
unaccepted draft standard; see
|
||||
L<https://tools.ietf.org/html/draft-daboo-valarm-extensions-04#section-6>
|
||||
B<Its interoperability and support is thus limited.> This is alarm type
|
||||
is primarily used by Apple.
|
||||
|
||||
=head1 METHODS
|
||||
|
||||
=cut
|
||||
|
||||
=head2 new
|
||||
|
||||
Creates a new L<Data::ICal::Entry::Alarm::Alarm> object; sets its
|
||||
C<ACTION> property to C<NONE>.
|
||||
|
||||
=cut
|
||||
|
||||
sub new {
|
||||
my $class = shift;
|
||||
my $self = $class->SUPER::new(@_);
|
||||
$self->add_property( action => "URI" );
|
||||
return $self;
|
||||
}
|
||||
|
||||
=head2 mandatory_unique_properties
|
||||
|
||||
In addition to C<action> and C<trigger> (see
|
||||
L<Data::ICal::Entry::Alarm/mandatory_unique_properties>), uri alarms
|
||||
must also specify a value for C<uri>.
|
||||
|
||||
=cut
|
||||
|
||||
sub mandatory_unique_properties {
|
||||
return (
|
||||
shift->SUPER::mandatory_unique_properties,
|
||||
"uri",
|
||||
);
|
||||
}
|
||||
|
||||
=head1 AUTHOR
|
||||
|
||||
Best Practical Solutions, LLC E<lt>modules@bestpractical.comE<gt>
|
||||
|
||||
=head1 LICENCE AND COPYRIGHT
|
||||
|
||||
Copyright (c) 2005 - 2015, Best Practical Solutions, LLC. All rights reserved.
|
||||
|
||||
This module is free software; you can redistribute it and/or
|
||||
modify it under the same terms as Perl itself. See L<perlartistic>.
|
||||
|
||||
=cut
|
||||
|
||||
1;
|
||||
Reference in New Issue
Block a user