Sayonara Player
Toggle main menu visibility
Loading...
Searching...
No Matches
src
Gui
Library
GUI_ImportDialog.h
1
/* GUIImportFolder.h */
2
3
/* Copyright (C) 2011-2024 Michael Lugmair (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
30
UI_FWD(
GUI_ImportDialog
)
31
32
class GUI_ImportDialog :
33
public Gui::Dialog
34
{
35
Q_OBJECT
36
PIMPL(GUI_ImportDialog)
37
UI_CLASS_SHARED_PTR(GUI_ImportDialog)
38
39
signals:
40
void
sigProgress(
int
);
41
void
sigFinished();
42
43
public
:
44
GUI_ImportDialog(
Library::Importer
* importer,
const
QString& libraryPath,
bool
copy_enabled, QWidget* parent);
45
~GUI_ImportDialog()
override
;
46
47
void
setTargetDirectory(QString targetDirectory);
48
49
private
slots:
50
void
accept()
override
;
51
void
reject()
override
;
52
53
void
chooseDirectory();
54
void
editPressed();
55
void
setMetadata(
const
MetaDataList
& tracks);
56
void
setStatus(Library::Importer::ImportStatus status);
57
void
setProgress(
int
percent);
58
void
cachedFilesChanged();
59
60
private
:
61
QAbstractButton* btnOk();
62
QAbstractButton* btnCancel();
63
64
protected
:
65
void
showEvent(QShowEvent* e)
override
;
66
};
67
68
#endif
/* GUIIMPORTFOLDER_H_ */
GUI_ImportDialog
Definition
GUI_ImportDialog.h:34
GUI_TagEdit
Definition
GUI_TagEdit.h:44
Library::Importer
Definition
LibraryImporter.h:48
MetaDataList
Definition
MetaDataList.h:34
Generated on
for Sayonara Player by
1.17.0