line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTTP::MobileAgent::NonMobile; |
2
|
|
|
|
|
|
|
|
3
|
10
|
|
|
10
|
|
43
|
use strict; |
|
10
|
|
|
|
|
12
|
|
|
10
|
|
|
|
|
331
|
|
4
|
10
|
|
|
10
|
|
43
|
use vars qw($VERSION); |
|
10
|
|
|
|
|
15
|
|
|
10
|
|
|
|
|
507
|
|
5
|
|
|
|
|
|
|
$VERSION = 0.02; |
6
|
10
|
|
|
10
|
|
43
|
use base qw(HTTP::MobileAgent); |
|
10
|
|
|
|
|
17
|
|
|
10
|
|
|
|
|
1969
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
__PACKAGE__->make_accessors( |
9
|
|
|
|
|
|
|
qw(model device_id) |
10
|
|
|
|
|
|
|
); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub parse { |
13
|
168
|
|
|
168
|
0
|
168
|
my $self = shift; |
14
|
168
|
|
|
|
|
321
|
my($name, $version) = split m!/!, $self->user_agent; |
15
|
168
|
|
|
|
|
286
|
$self->{name} = $name; |
16
|
168
|
|
|
|
|
184
|
$self->{version} = $version; |
17
|
168
|
|
|
|
|
174
|
$self->{device_id} = ''; |
18
|
168
|
|
|
|
|
283
|
$self->{model} = ''; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
164
|
|
|
164
|
1
|
339
|
sub is_non_mobile { 1 } |
22
|
|
|
|
|
|
|
|
23
|
164
|
|
|
164
|
1
|
437
|
sub carrier { 'N' } |
24
|
|
|
|
|
|
|
|
25
|
164
|
|
|
164
|
1
|
400
|
sub carrier_longname { 'NonMobile' } |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
__END__ |