|
56 | 56 |
|
57 | 57 | @property (assign) BOOL addingBlock;
|
58 | 58 |
|
59 |
| -// Returns an autoreleased instance of the path to the helper tool inside |
60 |
| -// SelfControl's bundle |
61 |
| -@property (nonatomic, readonly, copy) NSString *selfControlHelperToolPath; |
62 |
| - |
63 |
| -// Returns as a UTF-8 encoded C-string the path to the helper tool inside |
64 |
| -// SelfControl's bundle |
65 |
| -- (char*)selfControlHelperToolPathUTF8String; |
66 |
| - |
67 | 59 | // Called when the block duration slider is moved. Updates the label that gives
|
68 | 60 | // the block duration in words (hours and minutes).
|
69 | 61 | - (IBAction)updateTimeSliderDisplay:(id)sender;
|
|
110 | 102 |
|
111 | 103 | // Called by timerWindowController_ after its sheet returns, to add a specified
|
112 | 104 | // host to the blocklist (and refresh the block to use the new blocklist). Launches
|
113 |
| -// a new thread with refreshBlock: |
| 105 | +// a new thread with addToBlocklist: |
114 | 106 | - (void)addToBlockList:(NSString*)host lock:(NSLock*)lock;
|
115 | 107 |
|
116 | 108 | // Called by timerWindowController_ after its sheet returns, to add a specified
|
117 |
| -// number of minutes to the black timer. Launches a new thread with refreshBlock. |
| 109 | +// number of minutes to the black timer. |
118 | 110 | - (void)extendBlockTime:(NSInteger)minutes lock:(NSLock*)lock;
|
119 | 111 |
|
120 | 112 | // Converts a failure exit code from a helper tool invocation into an NSError,
|
|
129 | 121 | // Gets authorization for and then immediately refreshes the block by calling
|
130 | 122 | // SelfControl's helper tool with the appropriate arguments. Meant to be called
|
131 | 123 | // as a separate thread.
|
132 |
| -- (void)refreshBlock:(NSLock*)lockToUse; |
| 124 | +- (void)updateActiveBlocklist:(NSLock*)lockToUse; |
133 | 125 |
|
134 | 126 | // open preferences panel
|
135 | 127 | - (IBAction)openPreferences:(id)sender;
|
|
0 commit comments