1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2024-11-05 07:49:02 +00:00
dupeguru/cocoalib/Worker.h

14 lines
567 B
C
Raw Normal View History

2013-06-23 01:32:48 +00:00
#import <Cocoa/Cocoa.h>
//The worker should work in a separate thread or have it's own mechanism to keep the GUI updated as ProgressController
//provides none.
@protocol Worker
// -1: Indeterminate. nil: Not working. 0-100: Progressing
- (NSNumber *)getJobProgress;
- (NSString *)getJobDesc;
- (void)cancelJob;
/* This might seem a little stupid, but it's the simplest way to get a **sync** call to the python
side after a job. Because the python-side app is not an NSObject subclass, it can't listen to
notifications. */
- (void)jobCompleted:(NSString *)jobid;
@end