|
Krita Source Code Documentation
|
#include <KisMacosSecurityBookmarkManager.h>
Inheritance diagram for KisMacosSecurityBookmarkManager:Classes | |
| class | Private |
Public Types | |
| enum | SecurityBookmarkType { File = 0 , Directory } |
Public Slots | |
| void | addBookmarkAndCheckParentDir (const QUrl &url) |
| void | slotCreateBookmark (const QString &path) |
Public Member Functions | |
| void | createBookmarkFromPath (const QString &path, const QString &refpath, SecurityBookmarkType type=SecurityBookmarkType::File) |
| bool | isSandboxed () |
| KisMacosSecurityBookmarkManager () | |
| void | loadSecurityScopedResources () |
| bool | parentDirHasPermissions (const QString &path) |
| bool | requestAccessToDir (const QString &path) |
| void | startAccessingSecurityScopedResources () |
| void | stopAccessingSecurityScopedResources () |
| ~KisMacosSecurityBookmarkManager () | |
Static Public Member Functions | |
| static KisMacosSecurityBookmarkManager * | instance () |
Private Member Functions | |
| QUrl | decodeBookmarkToURL (QString encodedPath) |
| void | loadKeysFromArray (SecurityBookmarkType) |
| QString | securityBookmarkTypeToString (const SecurityBookmarkType) |
Private Attributes | |
| const QScopedPointer< Private > | m_d |
Definition at line 15 of file KisMacosSecurityBookmarkManager.h.
| Enumerator | |
|---|---|
| File | |
| Directory | |
Definition at line 20 of file KisMacosSecurityBookmarkManager.h.
|
explicit |
Definition at line 62 of file KisMacosSecurityBookmarkManager.mm.
References loadSecurityScopedResources(), and startAccessingSecurityScopedResources().
| KisMacosSecurityBookmarkManager::~KisMacosSecurityBookmarkManager | ( | ) |
Definition at line 69 of file KisMacosSecurityBookmarkManager.mm.
References stopAccessingSecurityScopedResources().
|
slot |
Definition at line 236 of file KisMacosSecurityBookmarkManager.mm.
References createBookmarkFromPath(), parentDirHasPermissions(), and requestAccessToDir().
| void KisMacosSecurityBookmarkManager::createBookmarkFromPath | ( | const QString & | path, |
| const QString & | refpath, | ||
| SecurityBookmarkType | type = SecurityBookmarkType::File ) |
Creates a bookmark security scope for diven path
| path | File path returned from NSOpenPanel |
| refpath | If non empty creates the security key relative to the reference path. This is useful for documents referring to other documents |
Definition at line 86 of file KisMacosSecurityBookmarkManager.mm.
References KisMacosEntitlements::BookmarkScopeApp, m_d, and securityBookmarkTypeToString().
|
private |
Definition at line 157 of file KisMacosSecurityBookmarkManager.mm.
|
static |
Definition at line 57 of file KisMacosSecurityBookmarkManager.mm.
| bool KisMacosSecurityBookmarkManager::isSandboxed | ( | ) |
Definition at line 259 of file KisMacosSecurityBookmarkManager.mm.
References m_d.
|
private |
Definition at line 137 of file KisMacosSecurityBookmarkManager.mm.
References m_d, and securityBookmarkTypeToString().
| void KisMacosSecurityBookmarkManager::loadSecurityScopedResources | ( | ) |
Loads security scoped files to internal dictionary
Definition at line 151 of file KisMacosSecurityBookmarkManager.mm.
References Directory, File, and loadKeysFromArray().
| bool KisMacosSecurityBookmarkManager::parentDirHasPermissions | ( | const QString & | path | ) |
Definition at line 74 of file KisMacosSecurityBookmarkManager.mm.
References m_d.
| bool KisMacosSecurityBookmarkManager::requestAccessToDir | ( | const QString & | path | ) |
Shows NSOpenPanel and saves the selected directory for future access
Definition at line 184 of file KisMacosSecurityBookmarkManager.mm.
References createBookmarkFromPath(), and Directory.
|
private |
Definition at line 231 of file KisMacosSecurityBookmarkManager.mm.
|
slot |
Definition at line 249 of file KisMacosSecurityBookmarkManager.mm.
References createBookmarkFromPath(), and m_d.
| void KisMacosSecurityBookmarkManager::startAccessingSecurityScopedResources | ( | ) |
starts access to all registered security bookmarks
Definition at line 168 of file KisMacosSecurityBookmarkManager.mm.
References decodeBookmarkToURL(), and m_d.
| void KisMacosSecurityBookmarkManager::stopAccessingSecurityScopedResources | ( | ) |
stops access to all started security bookmarks
Definition at line 176 of file KisMacosSecurityBookmarkManager.mm.
References decodeBookmarkToURL(), and m_d.
|
private |
Definition at line 90 of file KisMacosSecurityBookmarkManager.h.