File Coverage

blib/lib/Palm/MaTirelire.pm
Criterion Covered Total %
statement 6 15 40.0
branch n/a
condition n/a
subroutine 2 3 66.6
pod 1 1 100.0
total 9 19 47.3


line stmt bran cond sub pod time code
1             #
2             # Author : Maxime Soulé
3             # Created On : Sun Aug 29 21:56:26 2004
4             # Last Modified By: Maxime Soule
5             # Last Modified On: Mon May 3 15:01:11 2010
6             # Update Count : 5
7             #
8             # Copyright (C) 2005, Maxime Soulé
9             # You may distribute this file under the terms of the Artistic
10             # License, as specified in the README file.
11             #
12              
13             package Palm::MaTirelire;
14 1     1   27111 use Palm::Raw();
  1         8868  
  1         32  
15              
16 1     1   14 use base qw(Palm::Raw);
  1         2  
  1         279  
17              
18             our $VERSION = '1.6';
19              
20             sub new
21             {
22 0     0 1   my $classname = shift;
23 0           my $self = $classname->SUPER::new(@_);
24             # Create a generic PDB. No need to rebless it,
25             # though.
26            
27 0           $self->{creator} = "MaT2";
28 0           $self->{attributes}{resource} = 0;
29             # The PDB is not a resource database by
30             # default, but it's worth emphasizing,
31             # since MemoDB is explicitly not a PRC.
32 0           $self->{attributes}{Backup} = 1; # Always set the backup bit...
33              
34             # Have to define type and name in subclasses...
35            
36             # Give the PDB a blank AppInfo block
37 0           $self->{appinfo} = {};
38            
39             # Give the PDB a blank sort block
40 0           $self->{sort} = undef;
41            
42             # Give the PDB an empty list of records
43 0           $self->{records} = [];
44            
45 0           return $self;
46             }
47              
48             1;
49             __END__