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
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 11 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 52 of file qmediastoragelocation.cpp.

References arg, defaultDirectory(), extension(), generateFileName(), isRelative(), QStandardPaths::MoviesLocation, QStandardPaths::MusicLocation, QStandardPaths::PicturesLocation, and QStringLiteral.

Referenced by AVFImageCapture::capture(), QFFmpegImageCapture::capture(), QGstreamerImageCapture::capture(), QWindowsImageCapture::capture(), QPlatformMediaRecorder::findActualLocation(), AVFMediaEncoder::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: