line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTTP::MobileAgent::NonMobile; |
2
|
|
|
|
|
|
|
|
3
|
9
|
|
|
9
|
|
38
|
use strict; |
|
9
|
|
|
|
|
11
|
|
|
9
|
|
|
|
|
314
|
|
4
|
9
|
|
|
9
|
|
41
|
use vars qw($VERSION); |
|
9
|
|
|
|
|
11
|
|
|
9
|
|
|
|
|
398
|
|
5
|
|
|
|
|
|
|
$VERSION = 0.02; |
6
|
9
|
|
|
9
|
|
39
|
use base qw(HTTP::MobileAgent); |
|
9
|
|
|
|
|
10
|
|
|
9
|
|
|
|
|
1703
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
__PACKAGE__->make_accessors( |
9
|
|
|
|
|
|
|
qw(model device_id) |
10
|
|
|
|
|
|
|
); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub parse { |
13
|
168
|
|
|
168
|
0
|
157
|
my $self = shift; |
14
|
168
|
|
|
|
|
337
|
my($name, $version) = split m!/!, $self->user_agent; |
15
|
168
|
|
|
|
|
322
|
$self->{name} = $name; |
16
|
168
|
|
|
|
|
210
|
$self->{version} = $version; |
17
|
168
|
|
|
|
|
232
|
$self->{device_id} = ''; |
18
|
168
|
|
|
|
|
311
|
$self->{model} = ''; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
164
|
|
|
164
|
1
|
378
|
sub is_non_mobile { 1 } |
22
|
|
|
|
|
|
|
|
23
|
164
|
|
|
164
|
1
|
545
|
sub carrier { 'N' } |
24
|
|
|
|
|
|
|
|
25
|
164
|
|
|
164
|
1
|
436
|
sub carrier_longname { 'NonMobile' } |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
__END__ |