Changeset 8709
- Timestamp:
- 04/03/08 09:19:44 (5 years ago)
- Location:
- lang/perl/HTTP-MobileAttribute/trunk/lib/HTTP
- Files:
-
- 1 added
- 1 removed
- 6 modified
-
MobileAttribute.pm (modified) (1 diff)
-
MobileAttribute/Attribute/CarrierMethod.pm (added)
-
MobileAttribute/Attribute/MobileMethod.pm (deleted)
-
MobileAttribute/Plugin/Default/DoCoMo.pm (modified) (3 diffs)
-
MobileAttribute/Plugin/Default/EZweb.pm (modified) (2 diffs)
-
MobileAttribute/Plugin/Default/NonMobile.pm (modified) (1 diff)
-
MobileAttribute/Plugin/Default/ThirdForce.pm (modified) (1 diff)
-
MobileAttribute/Plugin/GPS.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/HTTP-MobileAttribute/trunk/lib/HTTP/MobileAttribute.pm
r8662 r8709 87 87 =head1 気になってること 88 88 89 =head2 MobileMethod('html_version,DoCoMo') みたいなのがいっぱいあってまんどい。89 =head2 CarrierMethod('html_version,DoCoMo') みたいなのがいっぱいあってまんどい。 90 90 91 91 __PACKAGE__->plugin_carrier('DoCoMo') ってやると一括で、この Plugin は DoCoMo 用ってことにするとか、そういうのがほしいのかも。 -
lang/perl/HTTP-MobileAttribute/trunk/lib/HTTP/MobileAttribute/Plugin/Default/DoCoMo.pm
r8672 r8709 15 15 16 16 17 sub name : MobileMethod('DoCoMo') { shift->{name} }17 sub name : CarrierMethod('DoCoMo') { shift->{name} } 18 18 19 sub cache_size : MobileMethod('DoCoMo') {19 sub cache_size :CarrierMethod('DoCoMo') { 20 20 my $self = shift; 21 21 return $self->{cache_size} || $DefaultCacheSize; 22 22 } 23 23 24 sub series : MobileMethod('DoCoMo') {24 sub series :CarrierMethod('DoCoMo') { 25 25 my $self = shift; 26 26 my $model = $self->model; … … 34 34 } 35 35 36 sub vendor : MobileMethod('DoCoMo') {36 sub vendor :CarrierMethod('DoCoMo') { 37 37 my $self = shift; 38 38 my $model = $self->model; … … 53 53 ]; 54 54 55 sub html_version: MobileMethod('DoCoMo') {55 sub html_version: CarrierMethod('DoCoMo') { 56 56 my ($self, $c) = @_; 57 57 -
lang/perl/HTTP-MobileAttribute/trunk/lib/HTTP/MobileAttribute/Plugin/Default/EZweb.pm
r8708 r8709 12 12 } 13 13 14 sub is_tuka : MobileMethod('EZweb') {14 sub is_tuka : CarrierMethod('EZweb') { 15 15 my $self = shift; 16 16 my $tuka = substr( $self->device_id, 2, 1 ); … … 24 24 } 25 25 26 sub is_win : MobileMethod('EZweb') {26 sub is_win : CarrierMethod('EZweb') { 27 27 my $self = shift; 28 28 my $win = substr( $self->device_id, 2, 1 ); -
lang/perl/HTTP-MobileAttribute/trunk/lib/HTTP/MobileAttribute/Plugin/Default/NonMobile.pm
r8668 r8709 4 4 use base qw/HTTP::MobileAttribute::Plugin/; 5 5 6 sub model : MobileMethod('NonMobile') { '' }7 sub device_id : MobileMethod('NonMobile') { '' }8 sub xhtml_compliant : MobileMethod('NonMobile') { 1 }6 sub model :CarrierMethod('NonMobile') { '' } 7 sub device_id :CarrierMethod('NonMobile') { '' } 8 sub xhtml_compliant :CarrierMethod('NonMobile') { 1 } 9 9 10 10 1; -
lang/perl/HTTP-MobileAttribute/trunk/lib/HTTP/MobileAttribute/Plugin/Default/ThirdForce.pm
r8708 r8709 12 12 } 13 13 14 sub is_type_c : MobileMethod('ThirdForce') { shift->{type} =~ /^C/ }15 sub is_type_p : MobileMethod('ThirdForce') { shift->{type} =~ /^P/ }16 sub is_type_w : MobileMethod('ThirdForce') { shift->{type} =~ /^W/ }17 sub is_type_3gc : MobileMethod('ThirdForce') { shift->{type} eq '3GC' }14 sub is_type_c :CarrierMethod('ThirdForce') { shift->{type} =~ /^C/ } 15 sub is_type_p :CarrierMethod('ThirdForce') { shift->{type} =~ /^P/ } 16 sub is_type_w :CarrierMethod('ThirdForce') { shift->{type} =~ /^W/ } 17 sub is_type_3gc :CarrierMethod('ThirdForce') { shift->{type} eq '3GC' } 18 18 19 sub xhtml_compliant : MobileMethod('ThirdForce') {19 sub xhtml_compliant :CarrierMethod('ThirdForce') { 20 20 my $self = shift; 21 21 return ( $self->is_type_w || $self->is_type_3gc ) ? 1 : 0; -
lang/perl/HTTP-MobileAttribute/trunk/lib/HTTP/MobileAttribute/Plugin/GPS.pm
r8668 r8709 6 6 our $DoCoMoGPSModels = { map { $_ => 1 } qw(F661i F505iGPS) }; 7 7 8 sub is_gps : MobileMethod('DoCoMo') {8 sub is_gps : CarrierMethod('DoCoMo') { 9 9 my ($self, $c) = @_; 10 10 return exists $DoCoMoGPSModels->{ $c->model };
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)