mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-11 07:05:48 +01:00
2018-06-08 Fred Gleason <fredg@paravelsystems.com>
* Removed rddbcheck(8). * Removed rdrevert(8).
This commit is contained in:
@@ -24,7 +24,6 @@ if ALSA_RD_AM
|
||||
ALSACONFIG_RD_OPT = rdalsaconfig
|
||||
endif
|
||||
SUBDIRS = $(ALSACONFIG_RD_OPT)\
|
||||
rddbcheck\
|
||||
rddgimport\
|
||||
rdcheckcuts\
|
||||
rdchunk\
|
||||
@@ -44,7 +43,6 @@ SUBDIRS = $(ALSACONFIG_RD_OPT)\
|
||||
rdpopup\
|
||||
rdpurgecasts\
|
||||
rdrender\
|
||||
rdrevert\
|
||||
rdsoftkeys\
|
||||
rmlsend\
|
||||
sas_shim
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
## automake.am
|
||||
##
|
||||
## Automake.am for rivendell/utils/rddbcheck
|
||||
##
|
||||
## (C) Copyright 2002-2006,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.
|
||||
##
|
||||
## Use automake to process this into a Makefile.in
|
||||
|
||||
AM_CPPFLAGS = -Wall -DPREFIX=\"$(prefix)\" -DQTDIR=\"@QT_DIR@\" @QT_CXXFLAGS@ -I$(top_srcdir)/lib
|
||||
LIBS = @QT_LIBS@ -L$(top_srcdir)/lib
|
||||
MOC = @QT_MOC@
|
||||
|
||||
# The dependency for qt's Meta Object Compiler (moc)
|
||||
moc_%.cpp: %.h
|
||||
$(MOC) $< -o $@
|
||||
|
||||
sbin_PROGRAMS = rddbcheck
|
||||
|
||||
dist_rddbcheck_SOURCES = rddbcheck.cpp rddbcheck.h
|
||||
|
||||
rddbcheck_LDADD = @LIB_RDLIBS@ @LIBVORBIS@
|
||||
|
||||
EXTRA_DIST =
|
||||
|
||||
CLEANFILES = *~\
|
||||
*.idb\
|
||||
*ilk\
|
||||
*.obj\
|
||||
*.pdb\
|
||||
*.qm\
|
||||
moc_*
|
||||
|
||||
MAINTAINERCLEANFILES = *~\
|
||||
Makefile.in\
|
||||
moc_*
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,79 +0,0 @@
|
||||
// rddbcheck.h
|
||||
//
|
||||
// A Database Check/Repair Tool for Rivendell.
|
||||
//
|
||||
// (C) Copyright 2002-2006,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 RDDBCHECK_H
|
||||
#define RDDBCHECK_H
|
||||
|
||||
#include <list>
|
||||
|
||||
#include <qobject.h>
|
||||
#include <qsqldatabase.h>
|
||||
|
||||
#include <rduser.h>
|
||||
#include <rdconfig.h>
|
||||
#include <rdcmd_switch.cpp>
|
||||
#include <rdstation.h>
|
||||
|
||||
#define RDDBCHECK_USAGE "[options]\n"
|
||||
|
||||
//
|
||||
// Global Variables
|
||||
//
|
||||
RDConfig *rdconfig;
|
||||
|
||||
class MainObject : public QObject
|
||||
{
|
||||
public:
|
||||
MainObject(QObject *parent=0);
|
||||
|
||||
private:
|
||||
void CheckOrphanedTracks();
|
||||
void CheckClocks();
|
||||
void CheckEvents();
|
||||
void CheckOrphanedTables();
|
||||
void CheckCutCounts();
|
||||
void CheckPendingCarts();
|
||||
void CheckOrphanedCarts();
|
||||
void CheckOrphanedCuts();
|
||||
void CheckOrphanedAudio();
|
||||
void ValidateAudioLengths();
|
||||
void Rehash(const QString &arg);
|
||||
void RehashCart(unsigned cartnum);
|
||||
void RehashCut(const QString &cutnum);
|
||||
void RelinkAudio(const QString &srcdir);
|
||||
void SetCutLength(const QString &cutname,int len);
|
||||
void CleanTables(const QString &ext,QSqlQuery *table_q,QSqlQuery *name_q);
|
||||
void CleanTables(const QString &ext,QSqlQuery *table_q);
|
||||
bool IsTableLinked(QSqlQuery *name_q,const QString &ext,const QString &table);
|
||||
bool CopyFile(const QString &destfile,const QString &srcfile) const;
|
||||
bool UserResponse();
|
||||
bool check_yes;
|
||||
bool check_no;
|
||||
QString orphan_group_name;
|
||||
QString dump_cuts_dir;
|
||||
QString rehash;
|
||||
RDStation *check_station;
|
||||
RDUser *check_user;
|
||||
QString relink_audio;
|
||||
bool relink_audio_move;
|
||||
};
|
||||
|
||||
|
||||
#endif // RDDBCHECK_H
|
||||
@@ -1,50 +0,0 @@
|
||||
## automake.am
|
||||
##
|
||||
## Automake.am for rivendell/utils/rdrevert
|
||||
##
|
||||
## (C) Copyright 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.
|
||||
##
|
||||
## Use automake to process this into a Makefile.in
|
||||
|
||||
AM_CPPFLAGS = -Wall -DPREFIX=\"$(prefix)\" -DQTDIR=\"@QT_DIR@\" @QT_CXXFLAGS@ -I$(top_srcdir)/lib
|
||||
LIBS = @QT_LIBS@ -L$(top_srcdir)/lib
|
||||
MOC = @QT_MOC@
|
||||
|
||||
# The dependency for qt's Meta Object Compiler (moc)
|
||||
moc_%.cpp: %.h
|
||||
$(MOC) $< -o $@
|
||||
|
||||
sbin_PROGRAMS = rdrevert
|
||||
|
||||
dist_rdrevert_SOURCES = rdrevert.cpp rdrevert.h
|
||||
|
||||
rdrevert_LDADD = @LIB_RDLIBS@ @LIBVORBIS@
|
||||
|
||||
CLEANFILES = *~\
|
||||
*.exe\
|
||||
*.idb\
|
||||
*ilk\
|
||||
*.obj\
|
||||
*.pdb\
|
||||
*.qm\
|
||||
moc_*
|
||||
|
||||
MAINTAINERCLEANFILES = *~\
|
||||
*.tar.gz\
|
||||
aclocal.m4\
|
||||
configure\
|
||||
Makefile.in\
|
||||
moc_*
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,94 +0,0 @@
|
||||
// rdrevert.h
|
||||
//
|
||||
// Revert the Rivendell database schema to an earlier version.
|
||||
//
|
||||
// (C) Copyright 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 RDREVERT_H
|
||||
#define RDREVERT_H
|
||||
|
||||
#include <map>
|
||||
|
||||
#include <qobject.h>
|
||||
|
||||
#include <rdconfig.h>
|
||||
#include <rddb.h>
|
||||
|
||||
#define RDREVERT_BASE_SCHEMA 242
|
||||
#define RDREVERT_USAGE "[options]\n"
|
||||
|
||||
class MainObject : public QObject
|
||||
{
|
||||
public:
|
||||
MainObject(QObject *parent=0);
|
||||
|
||||
private:
|
||||
void Revert(int schema) const;
|
||||
void Revert243() const;
|
||||
void Revert244() const;
|
||||
void Revert245() const;
|
||||
void Revert246() const;
|
||||
void Revert247() const;
|
||||
void Revert248() const;
|
||||
void Revert249() const;
|
||||
void Revert250() const;
|
||||
void Revert251() const;
|
||||
void Revert252() const;
|
||||
void Revert253() const;
|
||||
void Revert254() const;
|
||||
void Revert255() const;
|
||||
void Revert256() const;
|
||||
void Revert257() const;
|
||||
void Revert258() const;
|
||||
void Revert259() const;
|
||||
void Revert260() const;
|
||||
void Revert261() const;
|
||||
void Revert262() const;
|
||||
void Revert263() const;
|
||||
void Revert264() const;
|
||||
void Revert265() const;
|
||||
void Revert266() const;
|
||||
void Revert267() const;
|
||||
void Revert268() const;
|
||||
void Revert269() const;
|
||||
void Revert270() const;
|
||||
void Revert271() const;
|
||||
void Revert272() const;
|
||||
void Revert273() const;
|
||||
void Revert274() const;
|
||||
void Revert275() const;
|
||||
void Revert276() const;
|
||||
void Revert277() const;
|
||||
void Revert278() const;
|
||||
void Revert279() const;
|
||||
void Revert280() const;
|
||||
void Revert281() const;
|
||||
void Revert282() const;
|
||||
void Revert283() const;
|
||||
void Revert284() const;
|
||||
void Revert285() const;
|
||||
void Revert286() const;
|
||||
int GetVersion() const;
|
||||
void SetVersion(int schema) const;
|
||||
int MapSchema(const QString &ver);
|
||||
bool rev_use_deadzone;
|
||||
RDConfig *rev_config;
|
||||
QSqlDatabase *rev_db;
|
||||
};
|
||||
|
||||
|
||||
#endif // RDREVERT_H
|
||||
Reference in New Issue
Block a user