-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathIFMaintenanceTask.h
31 lines (23 loc) · 954 Bytes
/
IFMaintenanceTask.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
//
// IFMaintenanceTask.h
// Inform-xc2
//
// Created by Andrew Hunter on 25/04/2006.
// Copyright 2006 Andrew Hunter. All rights reserved.
//
#import <Cocoa/Cocoa.h>
extern NSString* IFMaintenanceTasksStarted;
extern NSString* IFMaintenanceTasksFinished;
///
/// Class that deals with background maintenance tasks (particularly ni -census)
///
@interface IFMaintenanceTask : NSObject {
NSTask* activeTask; // The task that's currently running
NSMutableArray* pendingTasks; // The tasks that are going to be run
BOOL haveFinished; // YES if we've notified of a finish event
}
+ (IFMaintenanceTask*) sharedMaintenanceTask; // Retrieves the common maintenance task object
- (void) queueTask: (NSString*) command; // Queues a task to run the given command
- (void) queueTask: (NSString*) command // Queues a task to run the given command (with arguments)
withArguments: (NSArray*) arguments;
@end