diff options
author | Teddy Wing | 2018-10-20 21:07:37 +0200 |
---|---|---|
committer | Teddy Wing | 2018-10-20 21:07:37 +0200 |
commit | 1a7c0f0e45633424bef4872a0cc2a19877ba25f9 (patch) | |
tree | b99f242a6a8d3d6ffc01ee2d423e261a0dcde989 /DomeKey/AppDelegate.h | |
parent | db8ad5e7c4c4dc027b242f00278daf661ad3ef22 (diff) | |
download | DomeKey-1a7c0f0e45633424bef4872a0cc2a19877ba25f9.tar.bz2 |
Get timeout from config
Pass the config through the app, and pass the timeout it contains to
`HeadphoneKey`.
This enables us to have a user-configurable timeout through a config
file.
Diffstat (limited to 'DomeKey/AppDelegate.h')
-rw-r--r-- | DomeKey/AppDelegate.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/DomeKey/AppDelegate.h b/DomeKey/AppDelegate.h index b343d6c..a8f2d01 100644 --- a/DomeKey/AppDelegate.h +++ b/DomeKey/AppDelegate.h @@ -8,12 +8,15 @@ #import <Cocoa/Cocoa.h> #import "HeadphoneKey.h" +#import "dome_key_map.h" @interface AppDelegate : NSObject <NSApplicationDelegate> { HeadphoneKey *_headphone_key; MPRemoteCommandCenter *_blargh; + Config *_config; } +- (instancetype)initWithConfig:(Config *)config; - (void)mpmediaplayerBS; @end |