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

0001 /*
0002     SPDX-FileCopyrightText: 2003 Christian Kvasny <chris@k3b.org>
0003     SPDX-FileCopyrightText: 2010 Michal Malek <michalm@jabster.pl>
0004     SPDX-FileCopyrightText: 1998-2007 Sebastian Trueg <trueg@k3b.org>
0005 
0006     SPDX-License-Identifier: GPL-2.0-or-later
0007 */
0008 
0009 
0010 #ifndef _K3B_VIDEOCDVIEW_H_
0011 #define _K3B_VIDEOCDVIEW_H_
0012 
0013 #include "k3bmediacontentsview.h"
0014 
0015 class KActionCollection;
0016 class QTreeWidgetItem;
0017 class QDomElement;
0018 
0019 namespace K3b {
0020 class VideoCdView : public MediaContentsView
0021 {
0022         Q_OBJECT
0023 
0024     public:
0025         explicit VideoCdView( QWidget* parent = 0 );
0026         ~VideoCdView() override;
0027 
0028         KActionCollection* actionCollection() const;
0029 
0030     private Q_SLOTS:
0031         void slotContextMenu( const QPoint& pos );
0032         void slotTrackSelectionChanged( QTreeWidgetItem* current, QTreeWidgetItem* previous );
0033         void slotStateChanged( QTreeWidgetItem* item, int column );
0034         void slotVideoCdInfoFinished( bool );
0035 
0036         void startRip();
0037         void slotCheckAll();
0038         void slotUncheckAll();
0039         void slotCheck();
0040         void slotUncheck();
0041         void slotViewFiles();
0042 
0043     private:
0044         void reloadMedium() override;
0045         void initActions();
0046         void updateDisplay();
0047         void enableInteraction( bool ) override;
0048         void buildTree( QTreeWidgetItem* parentItem, const QDomElement& parentElement, const QString& pname = QString() );
0049         
0050         class Private;
0051         Private* d;
0052 };
0053 }
0054 
0055 #endif