mirror of
				https://github.com/ElvishArtisan/rivendell.git
				synced 2025-11-03 23:53:59 +01:00 
			
		
		
		
	* Added a 'DROPBOXES.LOG_TO_SYSLOG' field to the database. * Incremented the database version to 309. * Added a 'Log Events in Syslog' checkbox to the 'Dropbox Configuration' dialog in rdadmin(1). * Added special name logic to RDApplication to detect when a dropbox is being started. * Modified the '--log-filename=' switch in rdimport(1) to accept both directory and filename components. * Removed the '--log-directory=' switch from rdimport(1). * Added an 'ID' column to the list of dropbox configurations in the 'Rivendell Dropbox Configurations; dialog in rdadmin(1).
		
			
				
	
	
		
			92 lines
		
	
	
		
			3.0 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			92 lines
		
	
	
		
			3.0 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
// rddropbox.h
 | 
						|
//
 | 
						|
// Abstract a Rivendell Dropbox Configuration
 | 
						|
//
 | 
						|
//   (C) Copyright 2002-2007,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.
 | 
						|
//
 | 
						|
 | 
						|
#include <qsqldatabase.h>
 | 
						|
 | 
						|
 | 
						|
#ifndef RDDROPBOX_H
 | 
						|
#define RDDROPBOX_H
 | 
						|
 | 
						|
class RDDropbox
 | 
						|
{
 | 
						|
 public:
 | 
						|
  RDDropbox(int id,const QString &stationname="");
 | 
						|
  int id() const;
 | 
						|
  int duplicate() const;
 | 
						|
  QString stationName() const;
 | 
						|
  void setStationName(const QString &name) const;
 | 
						|
  QString groupName() const;
 | 
						|
  void setGroupName(const QString &name) const;
 | 
						|
  QString path() const;
 | 
						|
  void setPath(const QString &path) const;
 | 
						|
  int normalizationLevel() const;
 | 
						|
  void setNormalizationLevel(int lvl) const;
 | 
						|
  int autotrimLevel() const;
 | 
						|
  void setAutotrimLevel(int lvl) const;
 | 
						|
  bool singleCart() const;
 | 
						|
  void setSingleCart(bool state) const;
 | 
						|
  bool forceToMono() const;
 | 
						|
  void setForceToMono(bool state) const;
 | 
						|
  unsigned toCart() const;
 | 
						|
  void setToCart(unsigned cart) const;
 | 
						|
  bool useCartchunkId() const;
 | 
						|
  void setUseCartchunkId(bool state) const;
 | 
						|
  bool titleFromCartchunkId() const;
 | 
						|
  void setTitleFromCartchunkId(bool state) const;
 | 
						|
  bool deleteCuts() const;
 | 
						|
  void setDeleteCuts(bool state) const;
 | 
						|
  bool deleteSource() const;
 | 
						|
  void setDeleteSource(bool state) const;
 | 
						|
  QString metadataPattern() const;
 | 
						|
  void setMetadataPattern(const QString &str) const;
 | 
						|
  QString userDefined() const;
 | 
						|
  void setUserDefined(const QString &str) const;
 | 
						|
  int startdateOffset() const;
 | 
						|
  void setStartdateOffset(int offset) const;
 | 
						|
  int enddateOffset() const;
 | 
						|
  void setEnddateOffset(int offset) const;
 | 
						|
  bool fixBrokenFormats() const;
 | 
						|
  void setFixBrokenFormats(bool state) const;
 | 
						|
  bool logToSyslog() const;
 | 
						|
  void setLogToSyslog(bool state) const;
 | 
						|
  QString logPath() const;
 | 
						|
  void setLogPath(const QString &path) const;
 | 
						|
  bool createDates() const;
 | 
						|
  void setCreateDates(bool state) const;
 | 
						|
  int createStartdateOffset() const;
 | 
						|
  void setCreateStartdateOffset(int offset) const;
 | 
						|
  int createEnddateOffset() const;
 | 
						|
  void setCreateEnddateOffset(int offset) const;
 | 
						|
  int segueLevel() const;
 | 
						|
  void setSegueLevel(int level) const;
 | 
						|
  int segueLength() const;
 | 
						|
  void setSegueLength(int length) const;
 | 
						|
 | 
						|
 private:
 | 
						|
  void SetRow(const QString ¶m,int value) const;
 | 
						|
  void SetRow(const QString ¶m,unsigned value) const;
 | 
						|
  void SetRow(const QString ¶m,const QString &value) const;
 | 
						|
  void SetRow(const QString ¶m,bool value) const;
 | 
						|
  int box_id;
 | 
						|
};
 | 
						|
 | 
						|
 | 
						|
#endif  // RDDROPBOX_H
 |