line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTTP::MobileAgent::AirHPhone; |
2
|
|
|
|
|
|
|
|
3
|
14
|
|
|
14
|
|
84
|
use strict; |
|
14
|
|
|
|
|
33
|
|
|
14
|
|
|
|
|
622
|
|
4
|
14
|
|
|
14
|
|
84
|
use vars qw($VERSION); |
|
14
|
|
|
|
|
32
|
|
|
14
|
|
|
|
|
756
|
|
5
|
|
|
|
|
|
|
$VERSION = 0.22; |
6
|
|
|
|
|
|
|
|
7
|
14
|
|
|
14
|
|
72
|
use base qw(HTTP::MobileAgent); |
|
14
|
|
|
|
|
28
|
|
|
14
|
|
|
|
|
3898
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
__PACKAGE__->make_accessors( |
10
|
|
|
|
|
|
|
qw(vendor model model_version browser_version cache_size) |
11
|
|
|
|
|
|
|
); |
12
|
|
|
|
|
|
|
|
13
|
11
|
|
|
11
|
0
|
61
|
sub is_airh_phone { 1 } |
14
|
|
|
|
|
|
|
|
15
|
0
|
|
|
0
|
1
|
0
|
sub carrier { 'H' } |
16
|
|
|
|
|
|
|
|
17
|
0
|
|
|
0
|
1
|
0
|
sub carrier_longname { 'AirH' } |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub parse { |
20
|
11
|
|
|
11
|
0
|
13
|
my $self = shift; |
21
|
11
|
|
|
|
|
31
|
my $ua = $self->user_agent; |
22
|
11
|
50
|
|
|
|
58
|
$ua =~ m!^Mozilla/3\.0\((WILLCOM|DDIPOCKET);(.*)\)! or return $self->no_match; |
23
|
11
|
|
|
|
|
27
|
$self->{name} = $1; |
24
|
11
|
|
|
|
|
39
|
@{$self}{qw(vendor model model_version browser_version cache_size)} = split m!/!, $2; |
|
11
|
|
|
|
|
41
|
|
25
|
11
|
|
|
|
|
53
|
$self->{cache_size} =~ s/^c//i; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
0
|
|
|
0
|
|
|
sub _make_display { |
29
|
|
|
|
|
|
|
# XXX |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
0
|
|
|
0
|
1
|
|
sub user_id { |
33
|
|
|
|
|
|
|
# XXX |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
0
|
|
|
0
|
1
|
|
sub gps_compliant { |
37
|
|
|
|
|
|
|
# XXX |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; |
41
|
|
|
|
|
|
|
__END__ |