2016-11-08 21:13:57 +00:00
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2016 Lennart Glauer <mail@lennart-glauer.de>
|
2017-06-09 21:40:36 +00:00
|
|
|
* Copyright (C) 2017 KeePassXC Team <team@keepassxc.org>
|
2016-11-08 21:13:57 +00:00
|
|
|
*
|
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation, either version 2 or (at your option)
|
|
|
|
|
* version 3 of the License.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#import "AppKit.h"
|
|
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
#import <AppKit/NSRunningApplication.h>
|
2021-02-04 21:39:13 +00:00
|
|
|
#import <AppKit/NSWindow.h>
|
2016-11-08 21:13:57 +00:00
|
|
|
|
|
|
|
|
@interface AppKitImpl : NSObject
|
2019-04-28 08:08:20 +00:00
|
|
|
{
|
2019-07-03 18:43:10 +00:00
|
|
|
AppKit* m_appkit;
|
2019-04-28 08:08:20 +00:00
|
|
|
}
|
2019-07-03 18:43:10 +00:00
|
|
|
- (id) initWithObject:(AppKit*)appkit;
|
2016-11-08 21:13:57 +00:00
|
|
|
|
|
|
|
|
@property (strong) NSRunningApplication *lastActiveApplication;
|
|
|
|
|
|
|
|
|
|
- (pid_t) activeProcessId;
|
|
|
|
|
- (pid_t) ownProcessId;
|
|
|
|
|
- (bool) activateProcess:(pid_t) pid;
|
2019-01-16 16:03:54 +00:00
|
|
|
- (bool) hideProcess:(pid_t) pid;
|
|
|
|
|
- (bool) isHidden:(pid_t) pid;
|
2019-04-12 17:57:49 +00:00
|
|
|
- (bool) isDarkMode;
|
2020-12-18 23:20:24 +00:00
|
|
|
- (bool) isStatusBarDark;
|
2019-04-28 08:08:20 +00:00
|
|
|
- (void) userSwitchHandler:(NSNotification*) notification;
|
2019-07-03 18:43:10 +00:00
|
|
|
- (bool) enableAccessibility;
|
2019-11-04 04:00:03 +00:00
|
|
|
- (bool) enableScreenRecording;
|
2020-05-26 19:46:28 +00:00
|
|
|
- (void) toggleForegroundApp:(bool) foreground;
|
2021-02-04 21:39:13 +00:00
|
|
|
- (void) setWindowSecurity:(NSWindow*) window state:(bool) state;
|
2016-11-08 21:13:57 +00:00
|
|
|
|
|
|
|
|
@end
|