Sayonara Player
GUI_ImportDialog.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 GUIIMPORTDIALOG_H_
22 #define GUIIMPORTDIALOG_H_
23 
24 #include "GUI/Utils/Widgets/Dialog.h"
25 #include "Components/Library/Importer/LibraryImporter.h"
26 #include "Utils/Pimpl.h"
27 
28 class MetaDataList;
29 class GUI_TagEdit;
30 class LocalLibrary;
31 
32 UI_FWD(GUI_ImportDialog)
33 
35  public Gui::Dialog
36 {
37  Q_OBJECT
38  UI_CLASS(GUI_ImportDialog)
39  PIMPL(GUI_ImportDialog)
40 
41 signals:
42  void sig_progress(int);
43 
44 public:
45  GUI_ImportDialog(LocalLibrary* library, bool copy_enabled, QWidget* parent);
46  virtual ~GUI_ImportDialog();
47 
48  void set_target_dir(const QString& target_dir);
49 
50 private slots:
51  void bb_accepted();
52  void bb_rejected();
53  void choose_dir();
54  void edit_pressed();
55  void set_metadata(const MetaDataList& v_md);
56  void set_status(Library::Importer::ImportStatus status);
57  void set_progress(int);
58 
59 protected:
60  void closeEvent(QCloseEvent* e) override;
61  void showEvent(QShowEvent* e) override;
62  void language_changed() override;
63 };
64 
65 #endif /* GUIIMPORTFOLDER_H_ */
Definition: GUI_TagEdit.h:43
Definition: LocalLibrary.h:35
The MetaDataList class.
Definition: MetaDataList.h:38
Definition: GUI_ImportDialog.h:34