File indexing completed on 2024-04-21 04:49:56

0001 /*
0002     SPDX-FileCopyrightText: 1998-2007 Sebastian Trueg <trueg@k3b.org>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 #ifndef _K3B_DATA_MULTISESSION_IMPORT_DIALOG_H_
0007 #define _K3B_DATA_MULTISESSION_IMPORT_DIALOG_H_
0008 
0009 #include <QDialog>
0010 
0011 namespace K3b {
0012     class DataDoc;
0013     class Medium;
0014 
0015     class DataMultisessionImportDialog : public QDialog
0016     {
0017         Q_OBJECT
0018 
0019     public:
0020         /**
0021          * Import a session into the project.
0022          * If the project is a DVD data project only DVD media are
0023          * presented for selection.
0024          *
0025          * \param doc if 0 a new project will be created.
0026          *
0027          * \return the project
0028          */
0029         static DataDoc* importSession( DataDoc* doc, QWidget* parent );
0030 
0031     private Q_SLOTS:
0032         void slotOk();
0033         void slotCancel();
0034 
0035         void importSession( K3b::DataDoc* doc );
0036         void slotSelectionChanged();
0037         void updateMedia();
0038         void addMedium( const K3b::Medium& medium );
0039 
0040     private:
0041         explicit DataMultisessionImportDialog( QWidget* parent );
0042         ~DataMultisessionImportDialog() override;
0043 
0044         class Private;
0045         Private* const d;
0046     };
0047 }
0048 
0049 #endif