Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
SecurityScopedFileEngine Class Reference
Inheritance diagram for SecurityScopedFileEngine:
Collaboration diagram for SecurityScopedFileEngine:

Public Member Functions

 SecurityScopedFileEngine (const QString &fileName, NSURL *securityScopedUrl)
 ~SecurityScopedFileEngine ()
void setFileName (const QString &fileName) override
 \reimp
void setFileEntry (QFileSystemEntry &&entry) override
 SecurityScopedFileEngine (const QString &fileName, NSURL *securityScopedUrl)
 ~SecurityScopedFileEngine ()
void setFileName (const QString &fileName) override
 \reimp
void setFileEntry (QFileSystemEntry &&entry) override
Public Member Functions inherited from QFSFileEngine
 QFSFileEngine ()
 Constructs a QFSFileEngine.
 QFSFileEngine (const QString &file)
 Constructs a QFSFileEngine for the file name file.
 ~QFSFileEngine ()
 Destructs the QFSFileEngine.
bool open (QIODevice::OpenMode openMode, std::optional< QFile::Permissions > permissions) override
 \reimp
bool close () override
 \reimp
bool flush () override
 \reimp
bool syncToDisk () override
 \reimp
qint64 size () const override
 \reimp
qint64 pos () const override
 \reimp
bool seek (qint64) override
 \reimp
bool isSequential () const override
 \reimp
bool remove () override
 \reimp
bool copy (const QString &newName) override
 For Windows or Apple platforms, copy the file to file copyName.
bool rename (const QString &newName) override
 Requests that the file be renamed to newName in the file system.
bool renameOverwrite (const QString &newName) override
bool link (const QString &newName) override
 Creates a link from the file currently specified by fileName() to newName.
bool mkdir (const QString &dirName, bool createParentDirectories, std::optional< QFile::Permissions > permissions) const override
 \reimp
bool rmdir (const QString &dirName, bool recurseParentDirectories) const override
 \reimp
bool setSize (qint64 size) override
 \reimp
bool caseSensitive () const override
 Returns whether the file system considers the file name to be case sensitive.
bool isRelativePath () const override
 \reimp
FileFlags fileFlags (FileFlags type) const override
 \reimp
bool setPermissions (uint perms) override
 \reimp
QByteArray id () const override
QString fileName (FileName file) const override
 \reimp
uint ownerId (FileOwner) const override
 In Unix, if stat() is successful, the uid is returned if own is the owner.
QString owner (FileOwner) const override
 \reimp
bool setFileTime (const QDateTime &newDate, QFile::FileTime time) override
 \reimp
QDateTime fileTime (QFile::FileTime time) const override
 \reimp
int handle () const override
 \reimp
IteratorUniquePtr beginEntryList (const QString &path, QDirListing::IteratorFlags filters, const QStringList &filterNames) override
qint64 read (char *data, qint64 maxlen) override
 \reimp
qint64 readLine (char *data, qint64 maxlen) override
 \reimp
qint64 write (const char *data, qint64 len) override
 \reimp
TriStateResult cloneTo (QAbstractFileEngine *target) override
 \reimp
virtual bool isUnnamedFile () const
bool extension (Extension extension, const ExtensionOption *option=nullptr, ExtensionReturn *output=nullptr) override
 \reimp
bool supportsExtension (Extension extension) const override
 \reimp
bool open (QIODevice::OpenMode flags, int fd, QFile::FileHandleFlags handleFlags)
 Opens the file descriptor fd in openMode mode.
bool open (QIODevice::OpenMode flags, FILE *fh, QFile::FileHandleFlags handleFlags)
 Opens the file handle fh in openMode mode.
Public Member Functions inherited from QAbstractFileEngine
virtual ~QAbstractFileEngine ()
 Destroys the QAbstractFileEngine.
bool atEnd () const
ucharmap (qint64 offset, qint64 size, QFile::MemoryMapFlags flags)
bool unmap (uchar *ptr)
virtual IteratorUniquePtr endEntryList ()
QFile::FileError error () const
 Returns the QFile::FileError that resulted from the last failed operation.
QString errorString () const
 Returns the human-readable message appropriate to the current error reported by error().

Additional Inherited Members

Public Types inherited from QAbstractFileEngine
enum  FileFlag {
  ReadOwnerPerm = 0x4000 , WriteOwnerPerm = 0x2000 , ExeOwnerPerm = 0x1000 , ReadUserPerm = 0x0400 ,
  WriteUserPerm = 0x0200 , ExeUserPerm = 0x0100 , ReadGroupPerm = 0x0040 , WriteGroupPerm = 0x0020 ,
  ExeGroupPerm = 0x0010 , ReadOtherPerm = 0x0004 , WriteOtherPerm = 0x0002 , ExeOtherPerm = 0x0001 ,
  LinkType = 0x10000 , FileType = 0x20000 , DirectoryType = 0x40000 , BundleType = 0x80000 ,
  HiddenFlag = 0x0100000 , LocalDiskFlag = 0x0200000 , ExistsFlag = 0x0400000 , RootFlag = 0x0800000 ,
  Refresh = 0x1000000 , PermsMask = 0x0000FFFF , TypesMask = 0x000F0000 , FlagsMask = 0x0FF00000 ,
  FileInfoAll = FlagsMask | PermsMask | TypesMask
}
 The permissions and types of a file, suitable for OR'ing together. More...
enum  FileName {
  DefaultName , BaseName , PathName , AbsoluteName ,
  AbsolutePathName , AbsoluteLinkTarget , CanonicalName , CanonicalPathName ,
  BundleName , JunctionName , RawLinkPath , NFileNames
}
 These values are used to request a file name in a particular format. More...
enum  FileOwner { OwnerUser , OwnerGroup }
 \value OwnerUser The user who owns the file. More...
enum class  TriStateResult : qint8 { NotSupported = -1 , Failed = 0 , Success = 1 }
enum  Extension { AtEndExtension , FastReadLineExtension , MapExtension , UnMapExtension }
typedef QAbstractFileEngineIterator Iterator
using IteratorUniquePtr = std::unique_ptr<Iterator>
Static Public Member Functions inherited from QFSFileEngine
static bool setCurrentPath (const QString &path)
 Sets the current path (e.g., for QDir), to path.
static QString currentPath (const QString &path=QString())
 For Unix, returns the current working directory for the file engine.
static QFileInfoList drives ()
 For Windows, returns the list of drives in the file system as a list of QFileInfo objects.
Static Public Member Functions inherited from QAbstractFileEngine
static std::unique_ptr< QAbstractFileEnginecreate (const QString &fileName)
 Creates and returns a QAbstractFileEngine suitable for processing fileName.
Protected Member Functions inherited from QFSFileEngine
 QFSFileEngine (QFSFileEnginePrivate &dd)
Protected Member Functions inherited from QAbstractFileEngine
void setError (QFile::FileError error, const QString &str)
 Sets the error type to error, and the error string to errorString.
 QAbstractFileEngine ()
 Constructs a new QAbstractFileEngine that does not refer to any file or directory.
 QAbstractFileEngine (QAbstractFileEnginePrivate &)
Protected Attributes inherited from QAbstractFileEngine
QScopedPointer< QAbstractFileEnginePrivated_ptr

Detailed Description

Definition at line 177 of file qdarwinsecurityscopedfileengine.mm.

Constructor & Destructor Documentation

◆ SecurityScopedFileEngine() [1/2]

SecurityScopedFileEngine::SecurityScopedFileEngine ( const QString & fileName,
NSURL * securityScopedUrl )
inline

Definition at line 181 of file qdarwinsecurityscopedfileengine.mm.

◆ ~SecurityScopedFileEngine() [1/2]

SecurityScopedFileEngine::~SecurityScopedFileEngine ( )
inline

Definition at line 188 of file qdarwinsecurityscopedfileengine.mm.

◆ SecurityScopedFileEngine() [2/2]

SecurityScopedFileEngine::SecurityScopedFileEngine ( const QString & fileName,
NSURL * securityScopedUrl )
inline

Definition at line 181 of file qdarwinsecurityscopedfileengine.mm.

◆ ~SecurityScopedFileEngine() [2/2]

SecurityScopedFileEngine::~SecurityScopedFileEngine ( )
inline

Definition at line 188 of file qdarwinsecurityscopedfileengine.mm.

Member Function Documentation

◆ setFileEntry() [1/2]

void SecurityScopedFileEngine::setFileEntry ( QFileSystemEntry && entry)
inlineoverridevirtual

Reimplemented from QFSFileEngine.

Definition at line 200 of file qdarwinsecurityscopedfileengine.mm.

◆ setFileEntry() [2/2]

void SecurityScopedFileEngine::setFileEntry ( QFileSystemEntry && entry)
inlineoverridevirtual

Reimplemented from QFSFileEngine.

Definition at line 200 of file qdarwinsecurityscopedfileengine.mm.

◆ setFileName() [1/2]

void SecurityScopedFileEngine::setFileName ( const QString & file)
inlineoverridevirtual

\reimp

Reimplemented from QFSFileEngine.

Definition at line 194 of file qdarwinsecurityscopedfileengine.mm.

◆ setFileName() [2/2]

void SecurityScopedFileEngine::setFileName ( const QString & file)
inlineoverridevirtual

\reimp

Reimplemented from QFSFileEngine.

Definition at line 194 of file qdarwinsecurityscopedfileengine.mm.


The documentation for this class was generated from the following file: