Clementine-audio-player-Mac.../src/core/mac_delegate.h

44 lines
1.2 KiB
C
Raw Normal View History

2011-02-04 16:25:05 +01:00
#import <AppKit/NSApplication.h>
#include "config.h"
#include "macglobalshortcutbackend.h"
#ifdef HAVE_BREAKPAD
#import <Breakpad/Breakpad.h>
#endif
2011-02-04 16:25:05 +01:00
class PlatformInterface;
2011-11-10 20:56:49 +01:00
@class SPMediaKeyTap;
2011-02-04 16:25:05 +01:00
@interface AppDelegate : NSObject<NSApplicationDelegate> {
2011-02-04 16:25:05 +01:00
PlatformInterface* application_handler_;
NSMenu* dock_menu_;
MacGlobalShortcutBackend* shortcut_handler_;
SPMediaKeyTap* key_tap_;
#ifdef HAVE_BREAKPAD
BreakpadRef breakpad_;
#endif
2011-02-04 16:25:05 +01:00
}
- (id)initWithHandler:(PlatformInterface*)handler;
2011-02-04 16:25:05 +01:00
// NSApplicationDelegate
- (BOOL)applicationShouldHandleReopen:(NSApplication*)app
hasVisibleWindows:(BOOL)flag;
- (NSMenu*)applicationDockMenu:(NSApplication*)sender;
- (void)applicationDidFinishLaunching:(NSNotification*)aNotification;
- (NSApplicationTerminateReply)applicationShouldTerminate:
(NSApplication*)sender;
// NSUserNotificationCenterDelegate
- (BOOL)userNotificationCenter:(id)center
shouldPresentNotification:(id)notification;
- (void)setDockMenu:(NSMenu*)menu;
- (MacGlobalShortcutBackend*)shortcut_handler;
- (void)setShortcutHandler:(MacGlobalShortcutBackend*)backend;
- (void)mediaKeyTap:(SPMediaKeyTap*)keyTap
receivedMediaKeyEvent:(NSEvent*)event;
2011-02-04 16:25:05 +01:00
@end