aboutsummaryrefslogtreecommitdiffstats
path: root/DomeKey/AppDelegate.h
diff options
context:
space:
mode:
authorTeddy Wing2018-10-20 21:07:37 +0200
committerTeddy Wing2018-10-20 21:07:37 +0200
commit1a7c0f0e45633424bef4872a0cc2a19877ba25f9 (patch)
treeb99f242a6a8d3d6ffc01ee2d423e261a0dcde989 /DomeKey/AppDelegate.h
parentdb8ad5e7c4c4dc027b242f00278daf661ad3ef22 (diff)
downloadDomeKey-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.h3
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