| 1 | package HTTP::MobileAgent::AirHPhone; | ||||||||||
| 2 | |||||||||||
| 3 | 10 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 10 | ▶ | use vars qw($VERSION); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 10 | $VERSION = 0.21; | |||||||||
| 6 | |||||||||||
| 7 | 10 | ▶ | use base qw(HTTP::MobileAgent); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 10 | __PACKAGE__->make_accessors( | |||||||||
| 10 | qw(vendor model model_version browser_version cache_size) | ||||||||||
| 11 | ); | ||||||||||
| 12 | |||||||||||
| 13 | 5 | ▶ | sub is_airh_phone { 1 } | ||||||||
|
Subroutine
is_airh_phone: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 14 | |||||||||||
| 15 | 0 | ▶ | sub carrier { 'H' } | ||||||||
|
Subroutine
carrier: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 16 | |||||||||||
| 17 | 0 | ▶ | sub carrier_longname { 'AirH' } | ||||||||
|
Subroutine
carrier_longname: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 18 | |||||||||||
| 19 | sub parse { | ||||||||||
| 20 | 5 | ▶ | my $self = shift; | ||||||||
|
Subroutine
parse: called CC=2 SCAR=7.0
Pod
undocumented
| |||||||||||
| 21 | 5 | my $ua = $self->user_agent; | |||||||||
| 22 | 5 | ▶ | $ua =~ m!^Mozilla/3\.0\((WILLCOM|DDIPOCKET);(.*)\)! or $self->no_match; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 23 | 5 | $self->{name} = $1; | |||||||||
| 24 | 5 | @{$self}{qw(vendor model model_version browser_version cache_size)} = split m!/!, $2; | |||||||||
| 25 | 5 | $self->{cache_size} =~ s/^c//i; | |||||||||
| 26 | } | ||||||||||
| 27 | |||||||||||
| 28 | ▶ | sub _make_display { | |||||||||
|
Subroutine
_make_display: not called CC=1 SCAR=0.0
| |||||||||||
| 29 | # XXX | ||||||||||
| 30 | } | ||||||||||
| 31 | |||||||||||
| 32 | |||||||||||
| 33 | 10 | 1; | |||||||||
| 34 | __END__ | ||||||||||