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

0001 /*
0002     SPDX-FileCopyrightText: 2003 Christian Kvasny <chris@k3b.org>
0003     SPDX-FileCopyrightText: 1998-2007 Sebastian Trueg <trueg@k3b.org>
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 #ifndef _K3B_VIDEOCD_RIPPING_OPTIONS_H_
0009 #define _K3B_VIDEOCD_RIPPING_OPTIONS_H_
0010 
0011 #include "k3bglobals.h"
0012 
0013 #include <KLocalizedString>
0014 #include <QString>
0015 
0016 namespace K3b {
0017 class VideoCdRippingOptions
0018 {
0019     public:
0020         VideoCdRippingOptions()
0021             :   m_videocdsize( 0 ),
0022                 m_videocdsource( "/dev/cdrom" ),
0023                 m_videocddestination(K3b::defaultTempPath()),
0024                 m_videocddescription( i18n( "Video CD" ) ),
0025                 m_videocdripfiles( false ),
0026                 m_videocdripsegments( false ),
0027                 m_videocdripsequences( false ),
0028                 m_ignoreExt( false ),
0029                 m_sector2336( false ),
0030                 m_extractXML( false )
0031         {}
0032 
0033         void setVideoCdSize( unsigned long size ) { m_videocdsize = size;}
0034         void setVideoCdSource( const QString& source ) { m_videocdsource = source;}
0035         void setVideoCdDestination( const QString& destination ) { m_videocddestination = destination;}
0036         void setVideoCdDescription( const QString& description ) { m_videocddescription = description;}
0037         void setVideoCdRipFiles( bool ripfiles ) { m_videocdripfiles = ripfiles;}
0038         void setVideoCdRipSegments( bool ripsegments ) { m_videocdripsegments = ripsegments;}
0039         void setVideoCdRipSequences( bool ripsequences ) { m_videocdripsequences = ripsequences;}
0040         void setVideoCdIgnoreExt( bool ignoreext ) { m_ignoreExt = ignoreext;}
0041         void setVideoCdSector2336( bool sector2336 ) { m_sector2336 = sector2336;}
0042         void setVideoCdExtractXml( bool extractxml ) { m_extractXML = extractxml;}
0043 
0044         unsigned long getVideoCdSize( ) { return m_videocdsize;}
0045         QString getVideoCdSource( ) { return m_videocdsource;}
0046         QString getVideoCdDestination( ) { return m_videocddestination;}
0047         QString getVideoCdDescription( ) { return m_videocddescription;}
0048         bool getVideoCdRipFiles( ) { return m_videocdripfiles;}
0049         bool getVideoCdRipSegments( ) { return m_videocdripsegments;}
0050         bool getVideoCdRipSequences( ) { return m_videocdripsequences;}
0051         bool getVideoCdIgnoreExt( ) { return m_ignoreExt;}
0052         bool getVideoCdSector2336( ) { return m_sector2336;}
0053         bool getVideoCdExtractXml( ) { return m_extractXML;}
0054 
0055     private:
0056         unsigned long m_videocdsize;
0057 
0058         QString m_videocdsource;
0059         QString m_videocddestination;
0060         QString m_videocddescription;
0061         
0062         bool m_videocdripfiles;
0063         bool m_videocdripsegments;
0064         bool m_videocdripsequences;
0065         bool m_ignoreExt;
0066         bool m_sector2336;
0067         bool m_extractXML;
0068 };
0069 }
0070 
0071 #endif