23 Nov 2020 20:12:40 UTC
- Distribution: Net-Fritz-Phonebook
- Module version: 0.05
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (96 / 0 / 0)
- KwaliteeBus factor: 1
- % Coverage
- License: perl_5
- Perl: v5.6.0
- Activity24 month
- Download (23.06KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionCORION Max Maischein
- BUG TRACKER
- COPYRIGHT (c)
Net::Fritz::PhonebookEntry - a Fritz!Box phone book entry
A weak reference to the phone book containing this entry
An opaque value assigned by the Fritz!Box to this entry
The index in the phonebook
This is used for entry deletion. I haven't tested whether the FritzBox renumbers items while deleting, so the best approach is likely to delete multiple items starting with the highest-numbered item.
The category of this entry
Numeric value, default 0
Arrayref of the telephone numbers associated with this entry. The elements will be Net::Fritz::PhonebookEntry::Numbers.
Arrayref of the email addresses associated with this entry. The elements will be Net::Fritz::PhonebookEntry::Email objects.
The name displayed in the phone book. This will likely be the name of a person.
The index of the ringtone to use for this entry?
HTTP URL to image for this contact
This must be on the same protocol and host as the Fritz!Box device the phone book resides on!
my $struct = $contact->build_structure; XMLout( $struct );
Returns the contact as a structured hashref that XML::Simple will serialize to the appropriate XML to write a contact.
$contact->add_number('555-12345'); $contact->add_number('555-12346', 'fax_work');
Adds a number to the entry. No check is made whether that number is already associated with that phone book entry. You can alternatively pass in a l<Net::Fritz::PhonebookEntry::Number> object.
Adds an email address to the entry. No check is made whether that address is already associated with that phone book entry. You can alternatively pass in a l<Net::Fritz::PhonebookEntry::Email> object.
$contact->create(); # save to Fritz!Box $contact->create(phonebook => $other_phonebook);
Creates the contact in the phonebook given at creation or in the call. The allowed options are
The id of the phonebook to use
The phonebook object to use
If neither the id nor the object are given, the
The public repository of this module is https://github.com/Corion/Net-Fritz-Phonebook.
The public support forum of this module is https://perlmonks.org/.
Please report bugs in this module via the RT CPAN bug queue at https://rt.cpan.org/Public/Dist/Display.html?Name=Net-Fritz-Phonebook or via mail to net-fritz-phonebook-Bugs@rt.cpan.org.
Copyright 2017 by Max Maischein
This module is released under the same terms as Perl itself.
Module Install Instructions
To install Net::Fritz::Phonebook, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Net::Fritz::Phonebook
For more information on module installation, please visit the detailed CPAN module installation guide.