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

0001 /*
0002     SPDX-FileCopyrightText: 1998-2008 Sebastian Trueg <trueg@k3b.org>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 
0008 
0009 #ifndef K3BDISKINFOVIEW_H
0010 #define K3BDISKINFOVIEW_H
0011 
0012 #include "k3bmediacontentsview.h"
0013 
0014 #ifdef HAVE_QTWEBENGINEWIDGETS
0015 class QWebEngineView;
0016 #else
0017 class QTextBrowser;
0018 #endif
0019 
0020 namespace K3b {
0021 class DiskInfoView : public MediaContentsView
0022 {
0023     Q_OBJECT
0024 
0025 public:
0026     explicit DiskInfoView( QWidget* parent = 0 );
0027     ~DiskInfoView() override;
0028 
0029 private:
0030     void reloadMedium() override;
0031     void updateTitle();
0032 
0033     QString createMediaInfoItems( const Medium& medium );
0034     QString createIso9660InfoItems( const Iso9660SimplePrimaryDescriptor& iso );
0035     QString createTrackItems( const Medium& medium );
0036 
0037 #ifdef HAVE_QTWEBENGINEWIDGETS
0038     QWebEngineView* m_infoView;
0039 #else
0040     QTextBrowser* m_infoView;
0041 #endif
0042 };
0043 }
0044 
0045 
0046 #endif