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
QTemporaryFileName Struct Reference

#include <qtemporaryfile_p.h>

+ Collaboration diagram for QTemporaryFileName:

Public Member Functions

 QTemporaryFileName (const QString &templateName)
 
QFileSystemEntry::NativePath generateNext ()
 

Public Attributes

QFileSystemEntry::NativePath path
 
qsizetype pos
 
qsizetype length
 

Detailed Description

Definition at line 38 of file qtemporaryfile_p.h.

Constructor & Destructor Documentation

◆ QTemporaryFileName()

QTemporaryFileName::QTemporaryFileName ( const QString & templateName)

Definition at line 44 of file qtemporaryfile.cpp.

References QDir::cleanPath(), QDir::fromNativeSeparators(), QFileSystemEntry::nativeFilePath(), pos, Q_ASSERT, and QByteArray::size().

+ Here is the call graph for this function:

Member Function Documentation

◆ generateNext()

QFileSystemEntry::NativePath QTemporaryFileName::generateNext ( )

Generates a unique file path from the template templ and returns it. The path in templ.path is modified.

Definition at line 108 of file qtemporaryfile.cpp.

References ch, QRandomGenerator::global(), length, path, pos, and Q_ASSERT.

+ Here is the call graph for this function:

Member Data Documentation

◆ length

qsizetype QTemporaryFileName::length

Definition at line 42 of file qtemporaryfile_p.h.

Referenced by generateNext().

◆ path

QFileSystemEntry::NativePath QTemporaryFileName::path

Definition at line 40 of file qtemporaryfile_p.h.

Referenced by generateNext().

◆ pos

qsizetype QTemporaryFileName::pos

Definition at line 41 of file qtemporaryfile_p.h.

Referenced by QTemporaryFileName(), and generateNext().


The documentation for this struct was generated from the following files: