| 1 | package Net::Radio::oFono::MessageWaiting; | ||
| 2 | |||
| 3 | use 5.010; | ||
| 4 | use strict; | ||
| 5 | use warnings; | ||
| 6 | |||
| 7 | =head1 NAME | ||
| 8 | |||
| 9 | Net::Radio::oFono::MessageWaiting - provide MessageWaiting interface for Modem objects | ||
| 10 | |||
| 11 | =cut | ||
| 12 | |||
| 13 | our $VERSION = '0.001'; | ||
| 14 | |||
| 15 | use Net::DBus qw(:typing); | ||
| 16 | |||
| 17 | use base qw(Net::Radio::oFono::Modem); | ||
| 18 | |||
| 19 | =head1 SYNOPSIS | ||
| 20 | |||
| 21 | my $oFono = Net::Location::oFono->new(); | ||
| 22 | my @modems = Net::Location::oFono->get_modems(); | ||
| 23 | foreach my $modem_path (@modems) { | ||
| 24 | my $msgwait = Net::Location::oFono->get_modem_interface($modem_path, "MessageWaiting"); | ||
| 25 | say "VoicemailWaiting: ", 0+$msgwait->GetProperty("VoicemailWaiting"), # boolean | ||
| 26 | "VoicemailMessageCount: ", 0+$msgwait->GetProperty("VoicemailMessageCount"), # byte | ||
| 27 | "VoicemailMailboxNumber: ", $msgwait->GetProperty("VoicemailMailboxNumber"); # string | ||
| 28 | } | ||
| 29 | |||
| 30 | =head1 INHERITANCE | ||
| 31 | |||
| 32 | Net::Radio::oFono::MessageWaiting | ||
| 33 | ISA Net::Radio::oFono::Modem | ||
| 34 | ISA Net::Radio::oFono::Helpers::EventMgr | ||
| 35 | DOES Net::Radio::oFono::Roles::RemoteObj | ||
| 36 | DOES Net::Radio::oFono::Roles::Properties | ||
| 37 | |||
| 38 | =head1 METHODS | ||
| 39 | |||
| 40 | No new ones. | ||
| 41 | |||
| 42 | See C<ofono/doc/message-waiting.txt> for valid properties and detailed | ||
| 43 | action description and possible errors. | ||
| 44 | |||
| 45 | =cut | ||
| 46 | |||
| 47 | =head1 BUGS | ||
| 48 | |||
| 49 | Please report any bugs or feature requests to C<bug-net-radio-ofono at rt.cpan.org>, or through | ||
| 50 | the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-Radio-oFono>. I will be notified, and then you'll | ||
| 51 | automatically be notified of progress on your bug as I make changes. | ||
| 52 | |||
| 53 | If you think you've found a bug then please read "How to Report Bugs | ||
| 54 | Effectively" by Simon Tatham: | ||
| 55 | L<http://www.chiark.greenend.org.uk/~sgtatham/bugs.html>. | ||
| 56 | |||
| 57 | =head1 SUPPORT | ||
| 58 | |||
| 59 | You can find documentation for this module with the perldoc command. | ||
| 60 | |||
| 61 | perldoc Net::Radio::oFono | ||
| 62 | |||
| 63 | You can also look for information at: | ||
| 64 | |||
| 65 | =over 4 | ||
| 66 | |||
| 67 | =item * RT: CPAN's request tracker (report bugs here) | ||
| 68 | |||
| 69 | L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Net-Radio-oFono> | ||
| 70 | |||
| 71 | If you think you've found a bug then please read "How to Report Bugs | ||
| 72 | Effectively" by Simon Tatham: | ||
| 73 | L<http://www.chiark.greenend.org.uk/~sgtatham/bugs.html>. | ||
| 74 | |||
| 75 | =item * AnnoCPAN: Annotated CPAN documentation | ||
| 76 | |||
| 77 | L<http://annocpan.org/dist/Net-Radio-oFono> | ||
| 78 | |||
| 79 | =item * CPAN Ratings | ||
| 80 | |||
| 81 | L<http://cpanratings.perl.org/d/Net-Radio-oFono> | ||
| 82 | |||
| 83 | =item * Search CPAN | ||
| 84 | |||
| 85 | L<http://search.cpan.org/dist/Net-Radio-oFono/> | ||
| 86 | |||
| 87 | =back | ||
| 88 | |||
| 89 | =head2 Where can I go for help with a concrete version? | ||
| 90 | |||
| 91 | Bugs and feature requests are accepted against the latest version | ||
| 92 | only. To get patches for earlier versions, you need to get an | ||
| 93 | agreement with a developer of your choice - who may or not report the | ||
| 94 | issue and a suggested fix upstream (depends on the license you have | ||
| 95 | chosen). | ||
| 96 | |||
| 97 | =head2 Business support and maintenance | ||
| 98 | |||
| 99 | For business support you can contact Jens via his CPAN email | ||
| 100 | address rehsackATcpan.org. Please keep in mind that business | ||
| 101 | support is neither available for free nor are you eligible to | ||
| 102 | receive any support based on the license distributed with this | ||
| 103 | package. | ||
| 104 | |||
| 105 | =head1 ACKNOWLEDGEMENTS | ||
| 106 | |||
| 107 | At first the guys from the oFono-Team shall be named: Marcel Holtmann and | ||
| 108 | Denis Kenzior, the maintainers and all the people named in ofono/AUTHORS. | ||
| 109 | Without their effort, there would no need for a Net::Radio::oFono module. | ||
| 110 | |||
| 111 | Further, Peter "ribasushi" Rabbitson helped a lot by providing hints | ||
| 112 | and support how to make this API accessor a valuable CPAN module. | ||
| 113 | |||
| 114 | =head1 AUTHOR | ||
| 115 | |||
| 116 | Jens Rehsack, C<< <rehsack at cpan.org> >> | ||
| 117 | |||
| 118 | =head1 LICENSE AND COPYRIGHT | ||
| 119 | |||
| 120 | Copyright 2012 Jens Rehsack. | ||
| 121 | |||
| 122 | This program is free software; you can redistribute it and/or modify it | ||
| 123 | under the terms of either: the GNU General Public License as published | ||
| 124 | by the Free Software Foundation; or the Artistic License. | ||
| 125 | |||
| 126 | See http://dev.perl.org/licenses/ for more information. | ||
| 127 | |||
| 128 | |||
| 129 | =cut | ||
| 130 | |||
| 131 | 1; |