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 GUI_TagEdit;
29 class LocalLibrary;
30 
31 UI_FWD(GUI_ImportDialog)
32 
34  public Gui::Dialog
35 {
36  Q_OBJECT
37  UI_CLASS(GUI_ImportDialog)
38  PIMPL(GUI_ImportDialog)
39 
40 signals:
41  void sig_progress(int);
42 
43 public:
44  GUI_ImportDialog(LocalLibrary* library, bool copy_enabled, QWidget* parent);
45  virtual ~GUI_ImportDialog();
46 
47  void set_target_dir(const QString& target_dir);
48 
49 private slots:
50  void bb_accepted();
51  void bb_rejected();
52  void choose_dir();
53  void edit_pressed();
54  void set_metadata(const MetaDataList& v_md);
55  void set_status(Library::Importer::ImportStatus status);
56  void set_progress(int percent);
57  void set_progress_no_percent(int progress);
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_ControlsBase.h:43
Definition: GUI_TagEdit.h:42
Definition: LocalLibrary.h:35
The MetaDataList class.
Definition: MetaDataList.h:37
Definition: GUI_ImportDialog.h:33