File indexing completed on 2024-10-06 04:25:58

0001 /*
0002     SPDX-FileCopyrightText: 1998-2009 Sebastian Trueg <trueg@k3b.org>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 #ifndef K3BDIRVIEW_H
0006 #define K3BDIRVIEW_H
0007 
0008 #include "k3bmedium.h"
0009 #include <QWidget>
0010 
0011 class KConfigGroup;
0012 class QUrl;
0013 
0014 namespace K3b {
0015     class FileTreeView;
0016     namespace Device {
0017         class Device;
0018     }
0019     
0020     /**
0021      * @author Sebastian Trueg
0022      */
0023     class DirView : public QWidget
0024     {
0025         Q_OBJECT
0026 
0027     public:
0028         explicit DirView(FileTreeView* tree, QWidget *parent=0);
0029         ~DirView() override;
0030 
0031     public Q_SLOTS:
0032         void saveConfig( KConfigGroup grp );
0033         void readConfig( const KConfigGroup & grp );
0034         void showUrl( const QUrl& );
0035         void showDevice( K3b::Device::Device* );
0036         void showDiskInfo( K3b::Device::Device* );
0037 
0038     protected Q_SLOTS:
0039         void slotDirActivated( const QUrl& url );
0040         void slotMountFinished( const QString& );
0041         void slotUnmountFinished( bool );
0042         void showMediumInfo( const Medium& );
0043         void home();
0044 
0045     Q_SIGNALS:
0046         void urlEntered( const QUrl& );
0047         void deviceSelected( K3b::Device::Device* );
0048 
0049     private:
0050         class Private;
0051         Private* d;
0052     };
0053 }
0054 
0055 #endif