Sayonara Player
GUI_ImportFolder.h
1 /* GUIImportFolder.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 #ifndef GUIIMPORTFOLDER_H_
22 #define GUIIMPORTFOLDER_H_
23 
24 #include "GUI/Library/ui_GUI_ImportFolder.h"
25 #include "GUI/Helper/SayonaraWidget/SayonaraDialog.h"
26 #include "Components/Library/Importer/LibraryImporter.h"
27 
28 #include <QCloseEvent>
29 #include <QShowEvent>
30 #include <QStringList>
31 
32 class MetaDataList;
33 class GUI_TagEdit;
35  public SayonaraDialog,
36  private Ui::ImportFolder
37 {
38 
39  Q_OBJECT
40 
41 signals:
42  void sig_progress(int);
43 
44 public:
45  GUI_ImportFolder(QWidget* parent, bool copy_enabled);
46  virtual ~GUI_ImportFolder();
47 
48  void set_import_dir(const QString& dir);
49  void set_import_files(const QStringList& filelist);
50 
51 
52 private slots:
53  void bb_accepted();
54  void bb_rejected();
55  void choose_dir();
56  void edit_pressed();
57 
58  void set_metadata(const MetaDataList& v_md);
59  void set_status(LibraryImporter::ImportStatus status);
60  void set_progress(int);
61 
62 private:
63  void closeEvent(QCloseEvent* e) override;
64  void showEvent(QShowEvent* e) override;
65  void language_changed() override;
66 
67 
68 private:
69 
70  LibraryImporter* _importer=nullptr;
71  GUI_TagEdit* tag_edit=nullptr;
72 
73 };
74 
75 #endif /* GUIIMPORTFOLDER_H_ */
Definition: GUI_ImportFolder.h:34
Definition: GUI_TagEdit.h:45
Definition: MetaDataList.h:44
Definition: LibraryImporter.h:35
Dialog with Settings connection. Also contains triggers for language_changed() and skin_changed()...
Definition: SayonaraDialog.h:38
Definition: ui_GUI_ImportFolder.h:162