File indexing completed on 2024-05-12 04:51:11

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_VIDEODVD_DOC_H_
0007 #define _K3B_VIDEODVD_DOC_H_
0008 
0009 #include "k3bdatadoc.h"
0010 #include "k3b_export.h"
0011 
0012 namespace K3b {
0013     class LIBK3B_EXPORT VideoDvdDoc : public DataDoc
0014     {
0015     public:
0016         explicit VideoDvdDoc( QObject* parent = 0 );
0017         ~VideoDvdDoc() override;
0018 
0019         Type type() const override { return VideoDvdProject; }
0020         QString typeString() const override { return QString::fromLatin1("video_dvd"); }
0021 
0022         Device::MediaTypes supportedMediaTypes() const override;
0023 
0024         BurnJob* newBurnJob( JobHandler* hdl, QObject* parent ) override;
0025 
0026         bool newDocument() override;
0027         void clear() override;
0028 
0029         DirItem* videoTsDir() const { return m_videoTsDir; }
0030 
0031         // TODO: implement load- and saveDocumentData since we do not need all those options
0032         bool saveDocumentData(QDomElement*) override;
0033 
0034     private:
0035         void addAudioVideoTsDirs();
0036 
0037         DirItem* m_videoTsDir = nullptr;
0038         DirItem* m_audioTsDir = nullptr;
0039     };
0040 }
0041 
0042 #endif