line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTTP::MobileAgent::AirHPhone; |
2
|
|
|
|
|
|
|
|
3
|
10
|
|
|
10
|
|
49
|
use strict; |
|
10
|
|
|
|
|
14
|
|
|
10
|
|
|
|
|
360
|
|
4
|
10
|
|
|
10
|
|
63
|
use vars qw($VERSION); |
|
10
|
|
|
|
|
14
|
|
|
10
|
|
|
|
|
557
|
|
5
|
|
|
|
|
|
|
$VERSION = 0.21; |
6
|
|
|
|
|
|
|
|
7
|
10
|
|
|
10
|
|
54
|
use base qw(HTTP::MobileAgent); |
|
10
|
|
|
|
|
15
|
|
|
10
|
|
|
|
|
3043
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
__PACKAGE__->make_accessors( |
10
|
|
|
|
|
|
|
qw(vendor model model_version browser_version cache_size) |
11
|
|
|
|
|
|
|
); |
12
|
|
|
|
|
|
|
|
13
|
5
|
|
|
5
|
0
|
1234
|
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
|
5
|
|
|
5
|
0
|
4
|
my $self = shift; |
21
|
5
|
|
|
|
|
15
|
my $ua = $self->user_agent; |
22
|
5
|
50
|
|
|
|
22
|
$ua =~ m!^Mozilla/3\.0\((WILLCOM|DDIPOCKET);(.*)\)! or $self->no_match; |
23
|
5
|
|
|
|
|
10
|
$self->{name} = $1; |
24
|
5
|
|
|
|
|
15
|
@{$self}{qw(vendor model model_version browser_version cache_size)} = split m!/!, $2; |
|
5
|
|
|
|
|
13
|
|
25
|
5
|
|
|
|
|
16
|
$self->{cache_size} =~ s/^c//i; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
0
|
|
|
sub _make_display { |
29
|
|
|
|
|
|
|
# XXX |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
__END__ |