// rdexport.h // // A Batch Exporter for Rivendell. // // (C) Copyright 2016-2018 Fred Gleason // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as // published by the Free Software Foundation. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public // License along with this program; if not, write to the Free Software // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. // #ifndef RDEXPORT_H #define RDEXPORT_H #include #include #include #include #include #define RDEXPORT_USAGE "[options] \n" class MainObject : public QObject { Q_OBJECT; public: MainObject(QObject *parent=0); private slots: void userData(); private: void ExportTitle(const QString &title); void ExportGroup(const QString &groupname); void ExportCart(unsigned cartnum); void ExportCut(RDCart *cart,RDCut *cut); QString ResolveOutputName(RDCart *cart,RDCut *cut,const QString &exten); QString SanitizePath(const QString &pathname) const; void Verbose(const QString &msg); std::vector export_start_carts; std::vector export_end_carts; std::vector export_groups; std::vector export_titles; QString export_metadata_pattern; QString export_output_to; QString export_format; RDSettings::Format export_set_format; unsigned export_samplerate; unsigned export_bitrate; unsigned export_channels; int export_quality; bool export_xml; bool export_verbose; QString export_escape_string; bool export_continue_after_error; bool export_allow_clobber; }; #endif // RDEXPORT_H