Valerio VALDEZ Paolini > Mobile-WURFL > Mobile::WURFL

Download:
Mobile-WURFL-0.02.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Module Version: 0.02   Source  

NAME ^

Mobile::WURFL - List capabilities of mobile handsets using WURFL data

SYNOPSIS ^

  #!/usr/bin/perl
  
  use Mobile::WURFL;
  
  my $wurfl = Mobile::WURFL->new({ bdb => $bdb_dir });
  my $handset = $wurfl->search('Nokia6610');
  printf "can handle gif? %s\n", $handset->gif ? 'yes':'no', "\n";

DESCRIPTION ^

Beware: this is ALPHA software, not production ready!!!

The WURFL is an XML configuration file which contains information about capabilities and features of several wireless devices. WURFL means Wireless Universal Resource File and was created by Luca Passani and others. The official project site is:

  http://wurfl.sourceforge.net/

Mobile::WURFL provides a way to extract desired information from a WURFL configuration file. Refer to Mobile::WURFL::Resource for methods to retrieve, parse and store a WURFL file.

A Mobile::WURFL object can be used to retrive capabilities of mobile handsets; Mobile::WURFL provides the following methods:

new

Accepts option in a hash reference; available options are:

wurfl_bdb

sets the directory containing BerkeleyDB databases of handsets capabilities.

search

Accepts a user agent string as argument and returns a Mobile::WURFL::Device.

SEE ALSO ^

Mobile::WURFL::Resource, Mobile::WURFL::Device

AUTHOR ^

Valerio VALDEZ Paolini, <valdez@cpan.org>

COPYRIGHT AND LICENSE ^

Copyright (C) 2005 by Valerio VALDEZ Paolini

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.4 or, at your option, any later version of Perl 5 you may have available.

syntax highlighting: