line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::Toodledo::TaskRole; |
2
|
|
|
|
|
|
|
|
3
|
10
|
|
|
10
|
|
3810
|
use Moose::Role; |
|
10
|
|
|
|
|
20
|
|
|
10
|
|
|
|
|
94
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '1.01'; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# Minimal attributes when fetching: |
8
|
|
|
|
|
|
|
has id => ( is => 'rw', isa => 'Int' ); |
9
|
|
|
|
|
|
|
has title => ( is => 'rw', isa => 'Str' ); |
10
|
|
|
|
|
|
|
has completed => ( is => 'rw', isa => 'Int' ); |
11
|
|
|
|
|
|
|
has modified => ( is => 'rw', isa => 'Int' ); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
# Optional attributes: |
14
|
|
|
|
|
|
|
has tag => ( is => 'rw', isa => 'Str' ); |
15
|
|
|
|
|
|
|
has folder => ( is => 'rw', isa => 'Int' ); |
16
|
|
|
|
|
|
|
has context => ( is => 'rw', isa => 'Str' ); |
17
|
|
|
|
|
|
|
has goal => ( is => 'rw', isa => 'Int' ); |
18
|
|
|
|
|
|
|
has location => ( is => 'rw', isa => 'Int' ); |
19
|
|
|
|
|
|
|
has parent => ( is => 'rw', isa => 'Int' ); |
20
|
|
|
|
|
|
|
has children => ( is => 'rw', isa => 'Int' ); |
21
|
|
|
|
|
|
|
has order => ( is => 'rw', isa => 'Int' ); |
22
|
|
|
|
|
|
|
has duedate => ( is => 'rw', isa => 'Int' ); |
23
|
|
|
|
|
|
|
has duedatemod => ( is => 'rw', isa => 'Int' ); |
24
|
|
|
|
|
|
|
has startdate => ( is => 'rw', isa => 'Int' ); |
25
|
|
|
|
|
|
|
has duetime => ( is => 'rw', isa => 'Int' ); |
26
|
|
|
|
|
|
|
has repeat => ( is => 'rw', isa => 'Str' ); |
27
|
|
|
|
|
|
|
has repeatfrom => ( is => 'rw', isa => 'Int' ); |
28
|
|
|
|
|
|
|
has status => ( is => 'rw', isa => 'Int' ); |
29
|
|
|
|
|
|
|
has length => ( is => 'rw', isa => 'Int' ); |
30
|
|
|
|
|
|
|
has priority => ( is => 'rw', isa => 'Int' ); |
31
|
|
|
|
|
|
|
has star => ( is => 'rw', isa => 'Int' ); |
32
|
|
|
|
|
|
|
has added => ( is => 'rw', isa => 'Int' ); |
33
|
|
|
|
|
|
|
has timer => ( is => 'rw', isa => 'Int' ); |
34
|
|
|
|
|
|
|
has timeron => ( is => 'rw', isa => 'Int' ); |
35
|
|
|
|
|
|
|
has note => ( is => 'rw', isa => 'Str' ); |
36
|
|
|
|
|
|
|
has meta => ( is => 'rw', isa => 'Str' ); |
37
|
|
|
|
|
|
|
|
38
|
10
|
|
|
10
|
|
46573
|
no Moose; |
|
10
|
|
|
|
|
20
|
|
|
10
|
|
|
|
|
55
|
|
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
__END__ |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 NAME |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
App::Toodledo::TaskRole - internal attributes of a task. |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 SYNOPSIS |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
For internal L<App::Toodledo> use only. |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 DESCRIPTION |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
For internal L<App::Toodledo> use only. |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
The attributes of a task are defined here. They should match |
59
|
|
|
|
|
|
|
what Toodledo publishes in their API. They are: |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head2 id |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head2 title |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head2 completed |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head2 modified |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head2 tag |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head2 folder |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=head2 context |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head2 goal |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head2 location |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=head2 parent |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=head2 children |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=head2 order |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=head2 duedate |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=head2 duedatemod |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=head2 startdate |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=head2 duetime |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=head2 repeat |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=head2 repeatfrom |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
=head2 status |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=head2 length |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=head2 priority |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=head2 star |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
=head2 added |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
=head2 timer |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
=head2 timeron |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
=head2 note |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
=head2 meta |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
=head1 AUTHOR |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
Peter Scott C<cpan at psdt.com> |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
=cut |