summaryrefslogtreecommitdiffstats
path: root/macosx/HBCore.h
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2017-01-05 10:12:30 +0100
committerDamiano Galassi <[email protected]>2017-01-05 10:12:30 +0100
commit2bf8ccc610d4df61660cd3efafd6b81fa5936c43 (patch)
tree422d5981606ab15ceb769c8587167e57de9a0958 /macosx/HBCore.h
parent17ab380b65a4843e260300924fe95f7eff98e6ff (diff)
MacGui: add an option to disable HBCore automatic sleep prevention behaviour.
Diffstat (limited to 'macosx/HBCore.h')
-rw-r--r--macosx/HBCore.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/macosx/HBCore.h b/macosx/HBCore.h
index e94b5ac12..26b74073c 100644
--- a/macosx/HBCore.h
+++ b/macosx/HBCore.h
@@ -101,6 +101,22 @@ typedef void (^HBCoreCompletionHandler)(HBCoreResult result);
@property (nonatomic, readwrite) int logLevel;
/**
+ * Set whether system sleep will be disable or not during a scan/encode
+ * Enabled by default.
+ */
+@property (nonatomic, readwrite) BOOL automaticallyPreventSleep;
+
+/**
+ * Manually prevent system sleep if automaticallyPreventSleep is set to NO.
+ */
+- (void)preventSleep;
+
+/**
+ * Manually allow system sleep if automaticallyPreventSleep is set to NO.
+ */
+- (void)allowSleep;
+
+/**
* State formatter.
*/
@property (nonatomic, readwrite, strong) HBStateFormatter *stateFormatter;