Palm::Progect::Record - Individual Records of the Progect Database
for my $rec (@{ $progect->records }) { my $description = $rec->description; my $priority = $rec->priority; my $category = $rec->category_name; print "[$priority] {$category} $description\n"; }
Each Palm::Progect object contains a list of records in its records method.
records
Each record is a Palm::Progect::Record object.
Palm::Progect::Record
The text of the record
The note attached to the record, if any. If the record does not have a note, then this value will be false.
The type of the record
Type will be one of the six types of records:
These symbols are available from the Palm::Progect::Constants module.
Palm::Progect::Constants
For instance:
use Palm::Progect::Constants; if ($rec->type == RECORD_TYPE_ACTION) { print "The record is an action item!\n"; }
Priority of the item, 1 - 5, or 0, for No priority.
The value of this field depends on the type of the record.
For action items, completed is true if the record has been completed, false otherwise.
false
For progress items, completed is the percent complete, a value from 0-100.
For numeric items (e.g. 5/20), completed reflects the percent complete (see completed_actual and completed_limit, below). Note that setting the completed method will not affect completed_actual or completed_limit.
completed_actual
completed_limit
completed
Numeric items indicate their 'completeness' with an arbitrary ratio: Some value out of another value, for instance 5 out of 20, or 5/20, where 5 is the completed_actual and 20 is the completed_limit.
The indent level of the record.
True if the record has another record following it, false otherwise.
True if the record contains another record, false otherwise.
True if the record follows another record, false otherwise.
True if the record is open, revealing the records it contains, false otherwise.
True if the record links to a record in the todo database, false otherwise.
The due date of the record, in unix time format (i.e. seconds since the epoch). If the record does not have a due date then this value will be false.
The name of the record's category, if any. If you set category_name to the name of a category that doesn't yet exist, then that category will be created.
category_name
Michael Graham <mag-perl@occamstoothbrush.com>
Copyright (C) 2002 Michael Graham. All rights reserved. This program is free software. You can use, modify, and distribute it under the same terms as Perl itself.
The latest version of this module can be found on http://www.occamstoothbrush.com/perl/
progconv
Palm::PDB(3)
http://progect.sourceforge.net/
To install Palm::Progect, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Palm::Progect
CPAN shell
perl -MCPAN -e shell install Palm::Progect
For more information on module installation, please visit the detailed CPAN module installation guide.