File: Task.h

package info (click to toggle)
agenda.app 0.47-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,008 kB
  • sloc: objc: 8,103; makefile: 16; sh: 5
file content (32 lines) | stat: -rw-r--r-- 565 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* emacs buffer mode hint -*- objc -*- */

#import "Date.h"
#import "Element.h"

enum taskState
{
  TK_NONE = 0,
  TK_INPROCESS,
  TK_COMPLETED,
  TK_CANCELED,
  TK_NEEDSACTION
};

@interface Task : Element
{
  enum taskState _state;
  Date *_dueDate;
}

+ (NSArray *)stateNamesArray;
- (enum taskState)state;
- (NSString *)stateAsString;
- (void)setState:(enum taskState)state;
- (Date *)dueDate;
- (void)setDueDate:(Date *)cd;
@end

@interface Task(iCalendar)
- (id)initWithICalComponent:(icalcomponent *)ic;
- (BOOL)updateICalComponent:(icalcomponent *)ic;
@end