| 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::Descriptions; | ||
| 12 | |||
| 13 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | |||
| 15 | 1 | ▶ | use Palm::BlockPack; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | |||
| 17 | 1 | ▶ | use Palm::MaTirelire::DBItem; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | |||
| 19 | 1 | ▶ | use base qw(Palm::MaTirelire::DBItem); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 20 | |||
| 21 | 1 | our $VERSION = '1.0'; | |
| 22 | |||
| 23 | |||
| 24 | # Each record | ||
| 25 | 1 | my $RECORD_BLOCK = Palm::BlockPack->new | |
| 26 | (UInt32 => [ | ||
| 27 | [ 'sign:2' => 0 ], | ||
| 28 | [ 'is_mode:1' => 0 ], | ||
| 29 | [ 'mode:5' => 0 ], | ||
| 30 | [ 'is_type:1' => 0 ], | ||
| 31 | [ 'type:8' => 0 ], | ||
| 32 | [ 'shortcut:8' => 0 ], | ||
| 33 | [ 'cheque_num:1' => 0 ], | ||
| 34 | [ 'auto_valid:1' => 0 ], | ||
| 35 | [ 'reserved:*' => 0 ], | ||
| 36 | ], | ||
| 37 | 'Z12' => [ 'amount' => '' ], | ||
| 38 | 'Z16' => [ 'account' => '' ], | ||
| 39 | 'Z16' => [ 'xfer' => '' ], | ||
| 40 | 'Z24' => [ 'only_in_account' => '' ], | ||
| 41 | 'Z*' => [ 'name' => '' ], | ||
| 42 | ); | ||
| 43 | |||
| 44 | |||
| 45 | sub import | ||
| 46 | 1 | ▶ | { |
|
Subroutine
import: called CC=1 SCAR=0.0
| |||
| 47 | 1 | &Palm::PDB::RegisterPDBHandlers(__PACKAGE__, [ "MaT2", 'Desc' ]); | |
| 48 | } | ||
| 49 | |||
| 50 | |||
| 51 | sub meta_infos ($) | ||
| 52 | 0 | ▶ | { |
|
Subroutine
meta_infos: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 53 | 0 | return { name => "MaTi-Descriptions", | |
| 54 | type => "Desc", | ||
| 55 | record_block => $RECORD_BLOCK, | ||
| 56 | }; | ||
| 57 | } | ||
| 58 | |||
| 59 | 1 | 1; | |
| 60 | __END__ | ||