comparison base/RecordDirectory.h @ 1519:fbe8afdfa8a6 import-audio-data

Add recorded/converted locations logic to this library
author Chris Cannam
date Tue, 11 Sep 2018 14:36:51 +0100
parents
children
comparison
equal deleted inserted replaced
1518:9c09a3f05139 1519:fbe8afdfa8a6
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2
3 /*
4 Sonic Visualiser
5 An audio file viewer and annotation editor.
6 Centre for Digital Music, Queen Mary, University of London.
7
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License as
10 published by the Free Software Foundation; either version 2 of the
11 License, or (at your option) any later version. See the file
12 COPYING included with this distribution for more information.
13 */
14
15 #ifndef SV_RECORD_DIRECTORY_H
16 #define SV_RECORD_DIRECTORY_H
17
18 #include <QString>
19
20 /**
21 * Report the intended target location for recorded audio files.
22 */
23 class RecordDirectory
24 {
25 public:
26 /**
27 * Return the directory in which a recorded file should be saved.
28 * This may vary depending on the current date and time, and so
29 * should be queried afresh for each recording. The directory will
30 * also be created if it does not yet exist.
31 *
32 * Returns an empty string if the record directory did not exist
33 * and could not be created.
34 */
35 static QString getRecordDirectory();
36
37 /**
38 * Return the root "recorded files" directory. If
39 * getRecordDirectory() is returning a datestamped directory, then
40 * this will be its parent. The directory will also be created if
41 * it does not yet exist.
42 *
43 * Returns an empty string if the record directory did not exist
44 * and could not be created.
45 */
46 static QString getRecordContainerDirectory();
47
48 /**
49 * Return the directory in which an audio file converted from a
50 * data file should be saved. The directory will also be created if
51 * it does not yet exist.
52 *
53 * Returns an empty string if the directory did not exist and
54 * could not be created.
55 */
56 static QString getConvertedAudioDirectory();
57 };
58
59 #endif