Sayonara Player
src
Components
Library
Importer
ImportCache.h
1
/* ImportCache.h */
2
3
/* Copyright (C) 2011-2019 Lucio Carreras
4
*
5
* This file is part of sayonara player
6
*
7
* This program is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
21
#ifndef IMPORTCACHE_H
22
#define IMPORTCACHE_H
23
24
#include "Utils/Pimpl.h"
25
26
namespace
Library
27
{
32
class
ImportCache
33
{
34
private
:
35
PIMPL(
ImportCache
)
36
37
public
:
38
explicit
ImportCache
(
const
QString& library_path);
39
virtual
~
ImportCache
();
40
41
ImportCache
(
const
ImportCache
& other);
42
ImportCache
& operator=(
const
ImportCache
& other);
43
44
void
clear();
45
46
void
add_soundfile(
const
MetaData
& md);
47
void
add_standard_file(
const
QString& filename);
48
void
add_standard_file(
const
QString& filename,
const
QString& parent_dir);
49
50
QStringList files()
const
;
51
MetaDataList
soundfiles()
const
;
52
QString target_filename(
const
QString& src_filename,
const
QString& target_directory)
const
;
53
MetaData
metadata(
const
QString& filename)
const
;
54
void
change_metadata(
const
MetaDataList
& v_md_old,
const
MetaDataList
& v_md_new);
55
};
56
57
using
ImportCachePtr=std::shared_ptr<ImportCache>;
58
}
59
60
61
62
#endif // IMPORTCACHE_H
MetaDataList
The MetaDataList class.
Definition:
MetaDataList.h:37
Library
An interface class needed when implementing a library plugin.
Definition:
LocalLibraryWatcher.h:32
MetaData
The MetaData class.
Definition:
MetaData.h:44
Library::ImportCache
The ImportCache class.
Definition:
ImportCache.h:32
Generated on Sun Nov 17 2019 00:00:00 for Sayonara Player by
1.8.16