-
Notifications
You must be signed in to change notification settings - Fork 2
/
TaskObject.h
85 lines (50 loc) · 1.5 KB
/
TaskObject.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
//
// TaskObject.h
// CronniX
//
// Created by Sven A. Schmidt on Mon Dec 31 2001.
// Copyright (c) 2001 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "CrontabLine.h"
static NSString *DisableTag __attribute__ ((unused)) = @"#CronniX";
@interface TaskObject : NSObject <CrontabLine> {
NSMutableDictionary *task;
BOOL isSystemCrontabTask;
}
- (id)init;
- (id)initWithString:(NSString *)string forSystem: (BOOL)isSystemCrontab;
- (id)initWithString:(NSString *)string;
- (id)initWithTask:(id)aTask;
+ (id)taskWithString:(NSString *)string;
+ (id)taskWithTask:(id)task;
+ (BOOL)isContainedInString: (NSString *)line;
- (void)parseString: (NSString *)string;
- (void)setObject:(id)anObject forKey:(id)aKey;
- (id)objectForKey:(id)aKey;
- (void)setActive: (BOOL)value;
- (BOOL)isActive;
- (void)setInfo: (NSString *)value;
- (NSString *)info;
- (void)setMinute: (NSString *)value;
- (NSString *)minute;
- (void)setHour: (NSString *)value;
- (NSString *)hour;
- (void)setMday: (NSString *)value;
- (NSString *)mday;
- (void)setMonth: (NSString *)value;
- (NSString *)month;
- (void)setWday: (NSString *)value;
- (NSString *)wday;
- (void)setCommand: (NSString *)value;
- (NSString *)command;
- (void)setUser: (NSString *)value;
- (NSString *)user;
- (NSData *)data;
// accessors
//- (NSMutableDictionary *)task;
//- (void)setTask:(id)value;
- (void)setDictionary:(NSDictionary *)value;
- (BOOL)isSystemCrontabTask;
- (void)setIsSystemCrontabTask: (BOOL)aVal;
@end