aboutsummaryrefslogtreecommitdiffstats
path: root/Low Battery Yup/AppDelegate.h
blob: 05041029730f3ee0333e623eb376d685d4a0026d (plain)
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
//
//  AppDelegate.h
//  Low Battery Yup
//
//  Created by TW on 11/16/16.
//  Copyright (c) 2016 TW. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import <MASShortcut/MASShortcut.h>
#import "ShortcutView.h"
#import "LaunchAgentManager.h"
#import "DaemonLauncher.h"

@interface AppDelegate : NSObject <NSApplicationDelegate> {
	IBOutlet NSWindow *window;
	IBOutlet ShortcutView *_shortcut_view;
	IBOutlet NSButton *_start_at_login;
	IBOutlet NSButton *_launch_app;

	LaunchAgentManager *_launchagent;
	DaemonLauncher *_daemon_launcher;
}

- (void)initializeShortcutView;
- (IBAction)performStartAtLogin:(id)sender;
- (IBAction)launchOrQuitDaemon:(id)sender;

@end