This repository was archived by the owner on Sep 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathCBBlueLightClient.h
More file actions
83 lines (68 loc) · 2.03 KB
/
CBBlueLightClient.h
File metadata and controls
83 lines (68 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/**
* @file CBBlueLightClient.h
*
* @copyright 2018-2019 Bill Zissimopoulos
*/
/*
* This file is part of EnergyBar.
*
* You can redistribute it and/or modify it under the terms of the GNU
* General Public License version 3 as published by the Free Software
* Foundation.
*/
#import <Cocoa/Cocoa.h>
typedef void (^CBBlueLightNotificationBlock)(void);
typedef struct
{
float minCCT;
float maxCCT;
float midCCT;
} CBBlueLightTemperature;
typedef struct
{
int hour;
int minute;
} CBBlueLightTime;
typedef struct
{
CBBlueLightTime fromTime;
CBBlueLightTime toTime;
} CBBlueLightSchedule;
typedef struct
{
char active;
char enabled;
char sunSchedulePermitted;
int mode;
CBBlueLightSchedule schedule;
unsigned long long disableFlags;
} CBBlueLightStatus;
@interface CBBlueLightClient : NSObject
+ (BOOL)supportsBlueLightReduction;
- (id)init;
- (id)initWithClientObj:(id)arg1;
- (BOOL)getBlueLightStatus:(CBBlueLightStatus *)arg1;
- (BOOL)parseStatusDictionary:(id)arg1 intoStruct:(CBBlueLightStatus *)arg2;
- (BOOL)setSchedule:(const CBBlueLightSchedule *)arg1;
- (BOOL)setMode:(int)arg1;
- (BOOL)setEnabled:(BOOL)arg1;
- (BOOL)setEnabled:(BOOL)arg1 withOption:(int)arg2;
- (BOOL)setActive:(BOOL)arg1;
- (BOOL)getWarningStrength:(float *)arg1;
- (BOOL)getWarningCCT:(float *)arg1;
- (BOOL)getStrength:(float *)arg1;
- (BOOL)setStrength:(float)arg1 withPeriod:(float)arg2 commit:(BOOL)arg3;
- (BOOL)setStrength:(float)arg1 commit:(BOOL)arg2;
- (BOOL)getCCTRange:(CBBlueLightTemperature *)arg1;
- (BOOL)setCCTRange:(CBBlueLightTemperature *)arg1;
- (BOOL)getDefaultCCTRange:(CBBlueLightTemperature *)arg1;
- (BOOL)getCCT:(float *)arg1;
- (BOOL)setCCT:(float)arg1 commit:(BOOL)arg2;
- (BOOL)setCCT:(float)arg1 withPeriod:(float)arg2 commit:(BOOL)arg3;
- (void)setStatusNotificationBlock:(CBBlueLightNotificationBlock)arg1;
- (void)enableNotifications;
- (void)disableNotifications;
- (void)suspendNotifications:(BOOL)arg1;
- (void)suspendNotifications:(BOOL)arg1 force:(BOOL)arg2;
@property BOOL supported;
@end