Krita Source Code Documentation
Loading...
Searching...
No Matches
KisMacosEntitlements.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2023 Ivan Santa MarĂ­a <ghevan@gmail.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7#ifndef KisMacosEntitlements_h
8#define KisMacosEntitlements_h
9
10#include <QObject>
11
12class KisMacosEntitlements : public QObject
13{
14 Q_OBJECT
15
16public:
17
19 Sandbox = 0, // com.apple.security.app-sandbox
20 BookmarkScopeApp, // com.apple.security.files.bookmarks.app-scope
21 BookmarkScopeDocument, // com.apple.security.files.bookmarks.document-scope
22 Other = 99
23 };
24
25// static KisMacosEntitlements *instance();
26
28
30
31
33
35
36 bool sandbox();
37
38
39private:
40// Q_DISABLE_COPY(KisMacosEntitlements)
41
42 class Private;
43 const QScopedPointer<Private> m_d;
44};
45
46
47#endif /* KisMacosEntitlements_h */
bool hasEntitlement(Entitlements)
const QScopedPointer< Private > m_d