| 1 | =encoding iso-8859-1 | ||
| 2 | |||
| 3 | =cut | ||
| 4 | |||
| 5 | # | ||
| 6 | # Copyright (C) 2005, Maxime Soulé | ||
| 7 | # You may distribute this file under the terms of the Artistic | ||
| 8 | # License, as specified in the README file. | ||
| 9 | # | ||
| 10 | |||
| 11 | package Palm::MaTirelire; | ||
| 12 | 1 | ▶ | use Palm::Raw(); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | |||
| 14 | 1 | ▶ | use base qw(Palm::Raw); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | |||
| 16 | 1 | our $VERSION = '1.14'; | |
| 17 | |||
| 18 | sub new | ||
| 19 | 0 | ▶ | { |
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 20 | 0 | my $classname = shift; | |
| 21 | 0 | my $self = $classname->SUPER::new(@_); | |
| 22 | # Create a generic PDB. No need to rebless it, | ||
| 23 | # though. | ||
| 24 | |||
| 25 | 0 | $self->{creator} = "MaT2"; | |
| 26 | 0 | $self->{attributes}{resource} = 0; | |
| 27 | # The PDB is not a resource database by | ||
| 28 | # default, but it's worth emphasizing, | ||
| 29 | # since MemoDB is explicitly not a PRC. | ||
| 30 | 0 | $self->{attributes}{Backup} = 1; # Always set the backup bit... | |
| 31 | |||
| 32 | # Have to define type and name in subclasses... | ||
| 33 | |||
| 34 | # Give the PDB a blank AppInfo block | ||
| 35 | 0 | $self->{appinfo} = {}; | |
| 36 | |||
| 37 | # Give the PDB a blank sort block | ||
| 38 | 0 | $self->{sort} = undef; | |
| 39 | |||
| 40 | # Give the PDB an empty list of records | ||
| 41 | 0 | $self->{records} = []; | |
| 42 | |||
| 43 | 0 | return $self; | |
| 44 | } | ||
| 45 | |||
| 46 | 1 | 1; | |
| 47 | __END__ | ||