56 #include "QtCore/qabstractfileengine.h" 71 virtual bool open(QIODevice::OpenMode flags) ;
76 virtual bool atEnd()
const;
81 virtual bool remove();
90 virtual bool mkdir(
const QString &dirName,
bool createParentDirectories)
const;
91 virtual bool rmdir(
const QString &dirName,
bool recurseParentDirectories)
const;
119 #endif // QRESOURCE_P_H virtual bool open(QIODevice::OpenMode flags)
Opens the file in the specified mode.
virtual bool mkdir(const QString &dirName, bool createParentDirectories) const
Requests that the directory dirName be created.
virtual bool flush()
Flushes the open file, returning true if successful; otherwise returns false.
virtual bool seek(qint64)
Sets the file position to the given offset.
virtual bool setPermissions(uint perms)
Requests that the file's permissions be set to perms.
virtual bool caseSensitive() const
Should return true if the underlying file system is case-sensitive; otherwise return false...
#define QT_END_NAMESPACE
This macro expands to.
QResourceFileEngine(const QString &path)
virtual bool rename(const QString &newName)
Requests that the file be renamed to newName in the file system.
virtual QString owner(FileOwner) const
If owner is OwnerUser return the name of the user who owns the file.
FileName
These values are used to request a file name in a particular format.
The QString class provides a Unicode character string.
virtual QStringList entryList(QDir::Filters filters, const QStringList &filterNames) const
Requests that a list of all the files matching the filters list based on the filterNames in the file ...
provides an extended output argument to QAbstractFileEngine's extension support.
virtual QString fileName(QAbstractFileEngine::FileName file) const
Return the file engine's current file name in the format specified by file.
#define QT_BEGIN_NAMESPACE
This macro expands to.
bool supportsExtension(Extension extension) const
This virtual function returns true if the file engine supports extension; otherwise, false is returned.
Extension
This enum describes the types of extensions that the file engine can support.
virtual Iterator * endEntryList()
virtual FileFlags fileFlags(FileFlags type) const
This function should return the set of OR'd flags that are true for the file engine's file...
The QStringList class provides a list of strings.
provides an extended input argument to QAbstractFileEngine's extension support.
The QAbstractFileEngine class provides an abstraction for accessing the filesystem.
virtual bool isRelativePath() const
Return true if the file referred to by this file engine has a relative path; otherwise return false...
static const char * data(const QByteArray &arr)
virtual QDateTime fileTime(FileTime time) const
If time is CreationTime, return when the file was created.
virtual bool copy(const QString &newName)
Copies the contents of this file to a file with the name newName.
FileTime
These are used by the fileTime() function.
virtual bool rmdir(const QString &dirName, bool recurseParentDirectories) const
Requests that the directory dirName is deleted from the file system.
virtual qint64 size() const
Returns the size of the file.
static const char *const filters[3]
The QDateTime class provides date and time functions.
virtual qint64 pos() const
Returns the current file position.
virtual bool setSize(qint64 size)
Requests that the file be set to size size.
virtual bool link(const QString &newName)
Creates a link from the file currently specified by fileName() to newName.
The QAbstractFileEngineIterator class provides an iterator interface for custom file engines...
bool extension(Extension extension, const ExtensionOption *option=0, ExtensionReturn *output=0)
This virtual function can be reimplemented in a QAbstractFileEngine subclass to provide support for e...
virtual qint64 read(char *data, qint64 maxlen)
Reads a number of characters from the file into data.
virtual bool close()
Closes the file, returning true if successful; otherwise returns false.
virtual uint ownerId(FileOwner) const
If owner is OwnerUser return the ID of the user who owns the file.
#define Q_DECLARE_PRIVATE(Class)
virtual qint64 write(const char *data, qint64 len)
Writes len bytes from data to the file.
virtual bool isSequential() const
Returns true if the file is a sequential access device; returns false if the file is a direct access ...
virtual void setFileName(const QString &file)
Sets the file engine's file name to file.
virtual bool atEnd() const
virtual Iterator * beginEntryList(QDir::Filters filters, const QStringList &filterNames)