blob: 56fd9c60acded3b97e2f03d5e2694f87349a9471 (
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
30
31
32
33
34
35
36
37
38
39
40
|
// Copyright (C) 2018 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include "touchbar.h"
#import <AppKit/NSApplication.h>
@interface ApplicationDelegateImpl : NSResponder <NSApplicationDelegate>
@property (strong, atomic) NSObject *qtDelegate;
- (id)init;
- (void)installAsDelegateForApplication:(NSApplication *)application;
- (void)setApplicationTouchBar:(Utils::Internal::TouchBarPrivate *)bar;
- (void)pushTouchBar:(Utils::Internal::TouchBarPrivate *)bar;
- (void)popTouchBar;
- (void)applicationWillFinishLaunching:(NSNotification*)notify;
@end
namespace Utils {
namespace Internal {
class ApplicationDelegate
{
public:
static ApplicationDelegate *instance();
ApplicationDelegate();
~ApplicationDelegate();
void setApplicationTouchBar(TouchBarPrivate *touchBar);
void pushTouchBar(TouchBarPrivate *touchBar);
void popTouchBar();
ApplicationDelegateImpl *applicationDelegate;
};
} // Internal
} // Utils
|