-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathTTask.h
39 lines (33 loc) · 952 Bytes
/
TTask.h
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
33
34
35
36
37
38
39
//
// TTask.h
// Time Tracker
//
// Created by Ivan Dramaliev on 10/18/05.
// Copyright 2005 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <Foundation/NSPredicate.h>
#import "TWorkPeriod.h"
#import "ITask.h"
@class TProject;
@interface TTask : NSObject <NSCoding, ITask> {
NSString *_name;
int _totalTime;
NSMutableArray *_workPeriods;
TProject* _parent;
int _taskId;
}
- (NSString *) name;
- (void) setName: (NSString *) name;
- (void) setParentProject: (TProject*) project;
- (void) addWorkPeriod: (TWorkPeriod *) workPeriod;
- (NSMutableArray *) workPeriods;
- (NSMutableArray *) matchingWorkPeriods:(NSPredicate*) filter;
- (int) totalTime;
- (int) filteredTime:(NSPredicate*) filter;
- (void) updateTotalTime;
- (NSString*) serializeData:(NSString*) prefix separator:(NSString*) sep;
- (id<ITask>) removeWorkPeriod:(TWorkPeriod*)period;
- (TProject*) parentProject;
- (void) setTaskId:(int) id;
@end