Krita Source Code Documentation
Loading...
Searching...
No Matches
KisMacosSecurityBookmarkManager.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 KisMacosSecurityScopeBookmarkManager_h
8#define KisMacosSecurityScopeBookmarkManager_h
9
10#include <QObject>
11
12class QString;
13class QUrl;
14
15class KisMacosSecurityBookmarkManager : public QObject
16{
17 Q_OBJECT
18
19public:
25
27
29
36 bool parentDirHasPermissions(const QString &path);
37
44 void createBookmarkFromPath(const QString &path, const QString &refpath,SecurityBookmarkType type = SecurityBookmarkType::File);
45
50
55
64 bool requestAccessToDir(const QString &path);
65
71
72 bool isSandboxed();
73
74
75public Q_SLOTS:
76 void addBookmarkAndCheckParentDir(const QUrl &url);
77
78 void slotCreateBookmark(const QString &path);
79
80private:
82
84
86
87 QUrl decodeBookmarkToURL(QString encodedPath);
88
89 class Private;
90 const QScopedPointer<Private> m_d;
91};
92
93#endif /* KisMacosSecurityScopeBookmarkManager_h */
void createBookmarkFromPath(const QString &path, const QString &refpath, SecurityBookmarkType type=SecurityBookmarkType::File)
static KisMacosSecurityBookmarkManager * instance()
QString securityBookmarkTypeToString(const SecurityBookmarkType)