HexFiend: HFProgressTracker.h Source File

HexFiend

HFProgressTracker.h
Go to the documentation of this file.
1 //
2 // HFProgressTracker.h
3 // HexFiend_2
4 //
5 // Created by peter on 2/12/08.
6 // Copyright 2008 ridiculous_fish. All rights reserved.
7 //
8
9 #import <Cocoa/Cocoa.h>
10
29 @interface HFProgressTracker : NSObject {
30 @public
31 volatile unsigned long long currentProgress;
32 volatile int cancelRequested;
33 @private
34 unsigned long long maxProgress;
35 NSProgressIndicator *progressIndicator;
36 NSTimer *progressTimer;
37 double lastSetValue;
38 id delegate;
39 }
40
44 @property (nonatomic) unsigned long long maxProgress;
45
49 @property (nonatomic, copy) NSDictionary *userInfo;
50
54 @property (nonatomic, strong) NSProgressIndicator *progressIndicator;
55
59 - (void)beginTrackingProgress;
60
64 - (void)endTrackingProgress;
65
69 - (void)noteFinished:(id)sender;
70
74 - (void)requestCancel:(id)sender;
75
79 @property (nonatomic, assign) id delegate;
80
81 @end
82
83
90 @protocol HFProgressTrackerDelegate <NSObject>
91
95 - (void)progressTracker:(HFProgressTracker *)tracker didChangeProgressTo:(double)fraction;
96
100 - (void)progressTrackerDidFinish:(HFProgressTracker *)tracker;
101
102 @end
HFProgressTracker::userInfo
NSDictionary * userInfo
Definition: HFProgressTracker.h:39
-[HFProgressTracker endTrackingProgress]
void endTrackingProgress()
HFProgressTracker::delegate
id delegate
Definition: HFProgressTracker.h:69
HFProgressTracker
A class that helps handle progress indication and cancellation for long running threaded operations...
Definition: HFProgressTracker.h:29
HFProgressTracker::maxProgress
unsigned long long maxProgress
Definition: HFProgressTracker.h:34
HFProgressTrackerDelegate-p
The delegate methods for the HFProgressTracker class.
-[HFProgressTracker beginTrackingProgress]
void beginTrackingProgress()
HFProgressTracker::progressIndicator
NSProgressIndicator * progressIndicator
Definition: HFProgressTracker.h:44