NAME
App::Toodledo::Task - class encapsulating a Toodledo task
SYNOPSIS
$task = App::Toodledo::Task->new;
$task->title( 'Put the cat out' );
$todo = App::Toodledo->new;
$todo->login_from_rc;
$todo->add_task( $task );
DESCRIPTION
This class provides accessors for the properties of a Toodledo task. The following accessors are defined:
id
parent
children
title
tag
folder
context
goal
added
modified
startdate
duedate
duetime
completed
repeat
rep_advanced
status
star
priority
length
timer
note
Variant behaviors
The return value for the following accessors:
added
modified
startdate
duedate
completed
is not the Toodledo textual date but instead a Unix epoch time (integer seconds) like that returned by time()
. Likewise, when supplying a value to these accessors, supply an epoch time. The object will convert the values coming and going to Toodledo.
CAVEAT
This is a very basic implementation of Toodledo tasks. It only represents the contents of elements and does not capture the attributes of the few elements in Toodledo tasks that can have them. This is likely to have the most ramifications for programs working on repeating tasks.
AUTHOR
Peter J. Scott, <cpan at psdt.com>
SEE ALSO
Toodledo: http://www.toodledo.com/.
Toodledo API documentation: http://www.toodledo.com/info/api_doc.php.
COPYRIGHT & LICENSE
Copyright 2009 Peter J. Scott, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.