Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qresource_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QRESOURCE_P_H
5#define QRESOURCE_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
19
21
24{
25private:
26 Q_DECLARE_PRIVATE(QResourceFileEngine)
27public:
28 explicit QResourceFileEngine(const QString &path);
30
31 void setFileName(const QString &file) override;
32
33 bool open(QIODevice::OpenMode flags, std::optional<QFile::Permissions> permissions) override;
34 bool close() override;
35 bool flush() override;
36 qint64 size() const override;
37 qint64 pos() const override;
38 virtual bool atEnd() const;
39 bool seek(qint64) override;
40 qint64 read(char *data, qint64 maxlen) override;
41
42 bool caseSensitive() const override;
43
44 FileFlags fileFlags(FileFlags type) const override;
45
47
48 uint ownerId(FileOwner) const override;
49
50 QDateTime fileTime(QFile::FileTime time) const override;
51
53 const QStringList &filterNames) override;
54
55 bool extension(Extension extension, const ExtensionOption *option = nullptr, ExtensionReturn *output = nullptr) override;
56 bool supportsExtension(Extension extension) const override;
57};
58
60
61#endif // QRESOURCE_P_H
\inmodule QtCore \reentrant
FileOwner
\value OwnerUser The user who owns the file.
std::unique_ptr< Iterator > IteratorUniquePtr
FileName
These values are used to request a file name in a particular format.
\inmodule QtCore\reentrant
Definition qdatetime.h:283
bool caseSensitive() const override
Should return true if the underlying file system is case-sensitive; otherwise return false.
bool flush() override
Flushes the open file, returning true if successful; otherwise returns false.
qint64 read(char *data, qint64 maxlen) override
Reads a number of characters from the file into data.
bool close() override
Closes the file, returning true if successful; otherwise returns false.
bool open(QIODevice::OpenMode flags, std::optional< QFile::Permissions > permissions) override
Opens the file in the specified mode.
void setFileName(const QString &file) override
Sets the file engine's file name to file.
IteratorUniquePtr beginEntryList(const QString &path, QDir::Filters filters, const QStringList &filterNames) override
bool seek(qint64) override
Sets the file position to the given offset.
qint64 pos() const override
Returns the current file position.
QResourceFileEngine(const QString &path)
qint64 size() const override
Returns the size of the file.
FileFlags fileFlags(FileFlags type) const override
This function should return the set of OR'd flags that are true for the file engine's file,...
QDateTime fileTime(QFile::FileTime time) const override
If time is BirthTime, return when the file was born (created).
virtual bool atEnd() const
uint ownerId(FileOwner) const override
If owner is OwnerUser return the ID of the user who owns the file.
bool supportsExtension(Extension extension) const override
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
void extension()
[6]
Definition dialogs.cpp:230
Combined button and popup list for selecting options.
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLenum type
GLbitfield flags
GLsizei const GLchar *const * path
GLuint GLenum option
unsigned int uint
Definition qtypes.h:34
long long qint64
Definition qtypes.h:60
QT_BEGIN_NAMESPACE typedef uchar * output
QFile file
[0]
const QStringList filters({"Image files (*.png *.xpm *.jpg)", "Text files (*.txt)", "Any files (*)" })
[6]