Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QMediaStorageLocation Namespace Reference

Functions

Q_MULTIMEDIA_EXPORT QDir defaultDirectory (QStandardPaths::StandardLocation type)
 
Q_MULTIMEDIA_EXPORT QString generateFileName (const QString &requestedName, QStandardPaths::StandardLocation type, const QString &extension)
 

Function Documentation

◆ defaultDirectory()

QT_BEGIN_NAMESPACE QDir QMediaStorageLocation::defaultDirectory ( QStandardPaths::StandardLocation  type)

Definition at line 10 of file qmediastoragelocation.cpp.

References QDir::currentPath(), dir, QStandardPaths::DocumentsLocation, QDir::homePath(), QDir::tempPath(), and QStandardPaths::writableLocation().

Referenced by generateFileName().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ generateFileName()

QString QMediaStorageLocation::generateFileName ( const QString requestedName,
QStandardPaths::StandardLocation  type,
const QString extension 
)

Definition at line 51 of file qmediastoragelocation.cpp.

References QDir::absoluteFilePath(), arg, defaultDirectory(), extension(), generateFileName(), QString::isEmpty(), isRelative(), QStandardPaths::MoviesLocation, QStandardPaths::MusicLocation, and QStandardPaths::PicturesLocation.

Referenced by AVFImageCapture::capture(), QFFmpegImageCapture::capture(), QGstreamerImageCapture::capture(), QWindowsImageCapture::capture(), AVFMediaEncoder::record(), QFFmpegMediaRecorder::record(), QGstreamerMediaEncoder::record(), QWindowsMediaEncoder::record(), resolveFileName(), QAndroidCaptureSession::start(), and QQnxPlatformCamera::startVideoRecording().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: