Fred Gleason 47a792d0aa 2018-02-03 Fred Gleason <fredg@paravelsystems.com>
* Converted rdrender(1) to use RDApplication.
2018-02-02 17:20:29 -05:00

69 lines
1.7 KiB
C++

// rdrender.h
//
// Render a Rivendell log.
//
// (C) Copyright 2016-2018 Fred Gleason <fredg@paravelsystems.com>
//
// 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 RDRENDER_H
#define RDRENDER_H
#include <stdint.h>
#include <sndfile.h>
#include <qdatetime.h>
#include <qobject.h>
#include <rddb.h>
#include <rdsettings.h>
#define RDRENDER_DEFAULT_CHANNELS 2
#define RDRENDER_DEFAULT_FORMAT RDSettings::Pcm16
#define RDRENDER_DEFAULT_BITRATE 256000
#define RDRENDER_DEFAULT_QUALITY 3
#define RDRENDER_DEFAULT_NORMALIZATION_LEVEL 0
#define RDRENDER_USAGE "[options] <logname>\n"
class MainObject : public QObject
{
Q_OBJECT;
public:
MainObject(QObject *parent=0);
private slots:
void userData();
void printProgressMessage(const QString &msg);
private:
bool render_verbose;
QString render_logname;
QString render_to_file;
unsigned render_cart_number;
int render_cut_number;
QString render_temp_output_filename;
QTime render_start_time;
int render_first_line;
int render_last_line;
QTime render_first_time;
QTime render_last_time;
bool render_ignore_stops;
RDSettings render_settings;
};
#endif // RDRENDER_H