line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTTP::MobileAgent::NonMobile; |
2
|
|
|
|
|
|
|
|
3
|
14
|
|
|
14
|
|
76
|
use strict; |
|
14
|
|
|
|
|
28
|
|
|
14
|
|
|
|
|
526
|
|
4
|
14
|
|
|
14
|
|
77
|
use vars qw($VERSION); |
|
14
|
|
|
|
|
33
|
|
|
14
|
|
|
|
|
708
|
|
5
|
|
|
|
|
|
|
$VERSION = 0.03; |
6
|
14
|
|
|
14
|
|
77
|
use base qw(HTTP::MobileAgent); |
|
14
|
|
|
|
|
30
|
|
|
14
|
|
|
|
|
3207
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
__PACKAGE__->make_accessors( |
9
|
|
|
|
|
|
|
qw(model device_id) |
10
|
|
|
|
|
|
|
); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub parse { |
13
|
169
|
|
|
169
|
0
|
314
|
my $self = shift; |
14
|
169
|
|
|
|
|
697
|
my($name, $version) = split m!/!, $self->user_agent; |
15
|
169
|
|
|
|
|
439
|
$self->{name} = $name; |
16
|
169
|
|
|
|
|
294
|
$self->{version} = $version; |
17
|
169
|
|
|
|
|
343
|
$self->{device_id} = ''; |
18
|
169
|
|
|
|
|
456
|
$self->{model} = ''; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
164
|
|
|
164
|
1
|
411
|
sub is_non_mobile { 1 } |
22
|
|
|
|
|
|
|
|
23
|
164
|
|
|
164
|
1
|
608
|
sub carrier { 'N' } |
24
|
|
|
|
|
|
|
|
25
|
164
|
|
|
164
|
1
|
465
|
sub carrier_longname { 'NonMobile' } |
26
|
|
|
|
|
|
|
|
27
|
164
|
|
|
164
|
0
|
484
|
sub xhtml_compliant { 1 } |
28
|
|
|
|
|
|
|
|
29
|
164
|
|
|
164
|
|
453
|
sub _make_display { |
30
|
|
|
|
|
|
|
# XXX |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
164
|
|
|
164
|
1
|
466
|
sub user_id { |
34
|
|
|
|
|
|
|
# XXX |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
164
|
|
|
164
|
1
|
460
|
sub gps_compliant { |
38
|
|
|
|
|
|
|
# XXX |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
1; |
42
|
|
|
|
|
|
|
__END__ |