Sayonara Player
ImportCache.h
1 /* ImportCache.h */
2 
3 /* Copyright (C) 2011-2016 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 
22 
23 #ifndef IMPORTCACHE_H
24 #define IMPORTCACHE_H
25 
26 #include <QMap>
27 #include <QString>
28 #include <QStringList>
29 #include "Helper/MetaData/MetaDataList.h"
30 
31 
33 {
34 
35 private:
36 
37  QString _library_path;
38  MetaDataList _v_md;
39  QMap<QString, MetaData> _src_md_map;
40  QMap<QString, QString> _src_dst_map;
41  QStringList _files;
42 
43 public:
44 
45  ImportCache();
46 
47 
48  void clear();
49 
50  void add_soundfile(const MetaData& md);
51  void add_standard_file(const QString& filename, const QString& parent_dir=QString());
52 
53  QStringList get_files() const;
54  MetaDataList get_soundfiles() const;
55  QString get_target_filename(const QString& src_filename, const QString& target_directory) const;
56  MetaData get_metadata(const QString& filename) const;
57  void change_metadata(const MetaDataList& v_md_old, const MetaDataList& v_md_new);
58 
59 };
60 
61 #endif // IMPORTCACHE_H
Definition: MetaData.h:49
Definition: ImportCache.h:32
Definition: MetaDataList.h:46