Skip to content

Commit 93d9f56

Browse files
committed
HUGE update to move to a daemon (selfcontrold), + make SCSettings system-wide instead of per-user
1 parent 3236562 commit 93d9f56

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+2537
-827
lines changed

AppController.h

+3-11
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,6 @@
5656

5757
@property (assign) BOOL addingBlock;
5858

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-
6759
// Called when the block duration slider is moved. Updates the label that gives
6860
// the block duration in words (hours and minutes).
6961
- (IBAction)updateTimeSliderDisplay:(id)sender;
@@ -110,11 +102,11 @@
110102

111103
// Called by timerWindowController_ after its sheet returns, to add a specified
112104
// 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:
114106
- (void)addToBlockList:(NSString*)host lock:(NSLock*)lock;
115107

116108
// 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.
118110
- (void)extendBlockTime:(NSInteger)minutes lock:(NSLock*)lock;
119111

120112
// Converts a failure exit code from a helper tool invocation into an NSError,
@@ -129,7 +121,7 @@
129121
// Gets authorization for and then immediately refreshes the block by calling
130122
// SelfControl's helper tool with the appropriate arguments. Meant to be called
131123
// as a separate thread.
132-
- (void)refreshBlock:(NSLock*)lockToUse;
124+
- (void)updateActiveBlocklist:(NSLock*)lockToUse;
133125

134126
// open preferences panel
135127
- (IBAction)openPreferences:(id)sender;

0 commit comments

Comments
 (0)