Sayonara Player
GUI_ImportFolder.h
1 /* GUIImportFolder.h */
2 
3 /* Copyright (C) 2011-2017 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/Helper/SayonaraWidget/SayonaraDialog.h"
25 #include "Components/Library/Importer/LibraryImporter.h"
26 
27 namespace Ui { class ImportFolder; }
28 
29 class MetaDataList;
30 class GUI_TagEdit;
32  public SayonaraDialog
33 {
34  Q_OBJECT
35 
36 signals:
37  void sig_progress(int);
38 
39 public:
40  GUI_ImportFolder(QWidget* parent, bool copy_enabled);
41  virtual ~GUI_ImportFolder();
42 
43 private slots:
44  void bb_accepted();
45  void bb_rejected();
46  void choose_dir();
47  void edit_pressed();
48  void set_metadata(const MetaDataList& v_md);
49  void set_status(LibraryImporter::ImportStatus status);
50  void set_progress(int);
51 
52 private:
53  void closeEvent(QCloseEvent* e) override;
54  void showEvent(QShowEvent* e) override;
55  void language_changed() override;
56 
57 
58 private:
59  Ui::ImportFolder* ui=nullptr;
60  LibraryImporter* _importer=nullptr;
61  GUI_TagEdit* tag_edit=nullptr;
62 };
63 
64 #endif /* GUIIMPORTFOLDER_H_ */
Definition: GUI_ImportFolder.h:31
Definition: ui_GUI_SomaFM.h:216
Definition: GUI_TagEdit.h:44
Definition: MetaDataList.h:39
The LibraryImporter class.
Definition: LibraryImporter.h:34
Dialog with Settings connection. Also contains triggers for language_changed() and skin_changed()...
Definition: SayonaraDialog.h:33
Definition: ui_GUI_ImportFolder.h:166