Rivendellaudio/lib/rdlogedit_conf.h
Fred Gleason 12bdbfc948 2022-12-30 Fred Gleason <fredg@paravelsystems.com>
* Added a 'RDLIBRARY.IS_SINGLETON' field to the database.
	* Added a 'RDLOGEDIT.IS_SINGLETON' field to the database.
	* Incremented the database version to 367.
	* Added 'RDLibraryConf::isSingleton()' and
	'RDLibraryConf::setIsSingleton()' methods.
	* Added 'RDLogeditConf::isSingleton()' and
	'RDLogeditConf::setIsSingleton()' methods.
	* Modified rdcartslots(1), rdcastmanager(1), rdcatch(1),
	rdlogmanager(1) and rdpanel(1) to allow only a single instance to
	run at a time.
	* Modified rdlibrary(1) and rdlogedit(1) to conditionally allow
	only a single instance to run at a time.
	* Added an rdsinglestart(1) utility.
	* Added a 'wmctrl' dependency to the 'rivendell' RPM package.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
2022-12-30 15:41:22 -05:00

86 lines
2.8 KiB
C++

// rdlogedit_conf.h
//
// Abstract RDLogedit Configuration
//
// (C) Copyright 2002-2005,2016 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 RDLOGEDIT_CONF_H
#define RDLOGEDIT_CONF_H
#include <qsqldatabase.h>
#include <rdsettings.h>
#include <rdlog_line.h>
class RDLogeditConf
{
public:
RDLogeditConf(const QString &station);
QString station() const;
int inputCard() const;
void setInputCard(int input) const;
int inputPort() const;
void setInputPort(int input) const;
int outputCard() const;
void setOutputCard(int output) const;
int outputPort() const;
void setOutputPort(int input) const;
unsigned format() const;
void setFormat(unsigned format) const;
unsigned layer() const;
void setLayer(unsigned layer) const;
unsigned bitrate() const;
void setBitrate(unsigned rate) const;
bool enableSecondStart() const;
void setEnableSecondStart(bool state) const;
unsigned defaultChannels() const;
void setDefaultChannels(unsigned chans) const;
unsigned maxLength() const;
void setMaxLength(unsigned length) const;
unsigned tailPreroll() const;
void setTailPreroll(unsigned length) const;
QString waveformCaption() const;
void setWaveformCaption(const QString &str);
unsigned startCart() const;
void setStartCart(unsigned cartnum) const;
unsigned endCart() const;
void setEndCart(unsigned cartnum) const;
unsigned recStartCart() const;
void setRecStartCart(unsigned cartnum) const;
unsigned recEndCart() const;
void setRecEndCart(unsigned cartnum) const;
int trimThreshold() const;
void setTrimThreshold(int level);
int ripperLevel() const;
void setRipperLevel(int level);
RDLogLine::TransType defaultTransType() const;
void setDefaultTransType(RDLogLine::TransType type);
void getSettings(RDSettings *s) const;
bool isSingleton() const;
void setIsSingleton(bool state) const;
private:
void SetRow(const QString &param,int value) const;
void SetRow(const QString &param,unsigned value) const;
void SetRow(const QString &param,bool value) const;
void SetRow(const QString &param,const QString &value) const;
QString lib_station;
};
#endif // RDLOGEDIT_CONF_H