File indexing completed on 2024-04-28 04:50:04

0001 /*
0002     SPDX-FileCopyrightText: 2003-2009 Sebastian Trueg <trueg@k3b.org>
0003     SPDX-FileCopyrightText: 2010 Michal Malek <michalm@jabster.pl>
0004     SPDX-FileCopyrightText: 1998-2009 Sebastian Trueg <trueg@k3b.org>
0005 
0006     SPDX-License-Identifier: GPL-2.0-or-later
0007 */
0008 
0009 
0010 #ifndef _K3B_IMAGEWRITINGDIALOG_H_
0011 #define _K3B_IMAGEWRITINGDIALOG_H_
0012 
0013 #include "k3binteractiondialog.h"
0014 
0015 class QUrl;
0016 class QDragEnterEvent;
0017 class QDropEvent;
0018 class QPoint;
0019 
0020 namespace K3b {
0021     class Iso9660;
0022     class CueFileParser;
0023 
0024 
0025     /**
0026      *@author Sebastian Trueg
0027      */
0028     class ImageWritingDialog : public InteractionDialog
0029     {
0030         Q_OBJECT
0031 
0032     public:
0033         explicit ImageWritingDialog( QWidget* = 0 );
0034         ~ImageWritingDialog() override;
0035 
0036         void setImage( const QUrl& url );
0037 
0038     protected Q_SLOTS:
0039         void slotStartClicked() override;
0040 
0041         void slotMd5JobPercent( int );
0042         void slotMd5JobFinished( bool );
0043         void slotContextMenuRequested( const QPoint& pos );
0044         void slotUpdateImage( const QString& );
0045 
0046     protected:
0047         void loadSettings( const KConfigGroup& ) override;
0048         void saveSettings( KConfigGroup ) override;
0049 
0050         void calculateMd5Sum( const QString& );
0051         void dragEnterEvent( QDragEnterEvent* ) override;
0052         void dropEvent( QDropEvent* ) override;
0053 
0054         void init() override;
0055 
0056         void toggleAll() override;
0057 
0058     private:
0059         void setupGui();
0060 
0061         class Private;
0062         Private* d;
0063     };
0064 }
0065 
0066 #endif