RecordDirectory Class Reference

Report the intended target location for recorded audio files. More...

#include <RecordDirectory.h>

Static Public Member Functions

static QString getRecordDirectory ()
 Return the directory in which a recorded file should be saved. More...
 
static QString getRecordContainerDirectory ()
 Return the root "recorded files" directory. More...
 
static QString getConvertedAudioDirectory ()
 Return the directory in which an audio file converted from a data file should be saved. More...
 

Detailed Description

Report the intended target location for recorded audio files.

Definition at line 23 of file RecordDirectory.h.

Member Function Documentation

QString RecordDirectory::getRecordDirectory ( )
static

Return the directory in which a recorded file should be saved.

This may vary depending on the current date and time, and so should be queried afresh for each recording. The directory will also be created if it does not yet exist.

Returns an empty string if the record directory did not exist and could not be created.

Definition at line 38 of file RecordDirectory.cpp.

References getRecordContainerDirectory(), and SVCERR.

QString RecordDirectory::getRecordContainerDirectory ( )
static

Return the root "recorded files" directory.

If getRecordDirectory() is returning a datestamped directory, then this will be its parent. The directory will also be created if it does not yet exist.

Returns an empty string if the record directory did not exist and could not be created.

Definition at line 24 of file RecordDirectory.cpp.

References TempDirectory::getInstance(), and SVCERR.

Referenced by getConvertedAudioDirectory(), and getRecordDirectory().

QString RecordDirectory::getConvertedAudioDirectory ( )
static

Return the directory in which an audio file converted from a data file should be saved.

The directory will also be created if it does not yet exist.

Returns an empty string if the directory did not exist and could not be created.

Definition at line 53 of file RecordDirectory.cpp.

References getRecordContainerDirectory(), and SVCERR.

Referenced by CSVFileReader::getConvertedAudioFilePath().


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