mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-10 08:33:39 +02:00
2018-06-08 Fred Gleason <fredg@paravelsystems.com>
* Removed rddbcheck(8). * Removed rdrevert(8).
This commit is contained in:
@@ -17023,3 +17023,6 @@
|
||||
* Implemented the '--check' command in rddbmgr(8).
|
||||
2018-06-08 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Added an rddbmgr(8) man page.
|
||||
2018-06-08 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Removed rddbcheck(8).
|
||||
* Removed rdrevert(8).
|
||||
|
@@ -510,7 +510,6 @@ AC_CONFIG_FILES([rivendell.spec \
|
||||
utils/rdclilogedit/Makefile \
|
||||
utils/rdcollect/Makefile \
|
||||
utils/rdconvert/Makefile \
|
||||
utils/rddbcheck/Makefile \
|
||||
utils/rddbmgr/Makefile \
|
||||
utils/rddelete/Makefile \
|
||||
utils/rddgimport/Makefile \
|
||||
@@ -524,7 +523,6 @@ AC_CONFIG_FILES([rivendell.spec \
|
||||
utils/rdpopup/Makefile \
|
||||
utils/rdpurgecasts/Makefile \
|
||||
utils/rdrender/Makefile \
|
||||
utils/rdrevert/Makefile \
|
||||
utils/rdsoftkeys/Makefile \
|
||||
utils/rmlsend/Makefile \
|
||||
utils/sas_shim/Makefile \
|
||||
|
@@ -33,32 +33,26 @@
|
||||
|
||||
all-local: rdclilogedit.1\
|
||||
rdconvert.1\
|
||||
rddbcheck.8\
|
||||
rddbmgr.8\
|
||||
rdexport.1\
|
||||
rdimport.1\
|
||||
rdmarkerset.8\
|
||||
rdrender.1\
|
||||
rdrevert.8\
|
||||
rmlsend.1
|
||||
|
||||
man_MANS = rdclilogedit.1\
|
||||
rdconvert.1\
|
||||
rddbcheck.8\
|
||||
rddbmgr.8\
|
||||
rdexport.1\
|
||||
rdimport.1\
|
||||
rdmarkerset.8\
|
||||
rdrender.1\
|
||||
rdrevert.8\
|
||||
rmlsend.1
|
||||
|
||||
EXTRA_DIST = rdclilogedit.1\
|
||||
rdclilogedit.xml\
|
||||
rdconvert.1\
|
||||
rdconvert.xml\
|
||||
rddbcheck.8\
|
||||
rddbcheck.xml\
|
||||
rddbmgr.8\
|
||||
rddbmgr.xml\
|
||||
rdexport.1\
|
||||
@@ -69,8 +63,6 @@ EXTRA_DIST = rdclilogedit.1\
|
||||
rdmarkerset.xml\
|
||||
rdrender.1\
|
||||
rdrender.xml\
|
||||
rdrevert.8\
|
||||
rdrevert.xml\
|
||||
rmlsend.1\
|
||||
rmlsend.xml
|
||||
|
||||
|
@@ -1,210 +0,0 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<refentry id="stdin" xmlns="http://docbook.org/ns/docbook" version="5.0">
|
||||
<!--
|
||||
Header
|
||||
-->
|
||||
<refmeta>
|
||||
<refentrytitle>rddbcheck</refentrytitle>
|
||||
<manvolnum>8</manvolnum>
|
||||
<refmiscinfo class='source'>March 2017</refmiscinfo>
|
||||
<refmiscinfo class='manual'>Linux Audio Manual</refmiscinfo>
|
||||
</refmeta>
|
||||
<refnamediv>
|
||||
<refname>rddbcheck</refname>
|
||||
<refpurpose>Tool for checking and repairing Rivendell databases</refpurpose>
|
||||
</refnamediv>
|
||||
<info>
|
||||
<author>
|
||||
<personname>
|
||||
<firstname>Fred</firstname>
|
||||
<surname>Gleason</surname>
|
||||
<email>fredg@paravelsystems.com</email>
|
||||
</personname>
|
||||
<contrib>Application Author</contrib>
|
||||
</author>
|
||||
</info>
|
||||
|
||||
<!--
|
||||
Body
|
||||
-->
|
||||
<refsynopsisdiv id='synopsis'>
|
||||
<cmdsynopsis>
|
||||
<command>rddbcheck</command>
|
||||
<arg choice='opt'><replaceable>OPTIONS</replaceable></arg>
|
||||
<sbr/>
|
||||
</cmdsynopsis>
|
||||
</refsynopsisdiv>
|
||||
|
||||
<refsect1 id='description'><title>Description</title>
|
||||
<para>
|
||||
<command>rddbcheck</command><manvolnum>8</manvolnum> is a command-line
|
||||
tool for checking the consistency of a Rivendell database and (perhaps)
|
||||
repairing any inconsistencies found. When invoked without any options,
|
||||
<command>rddbcheck</command><manvolnum>8</manvolnum> will run a set of
|
||||
consistency checks (with the exception of the check of the SHA-1 hashes),
|
||||
report any problems found and offer to repair the problem. To force a
|
||||
SHA-1 hash check as well, see the <option>--rehash</option> option below.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 id='consistency_check_options'><title>Consistency Check Options</title>
|
||||
<variablelist remap='TP'>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>--dump-cuts-dir=</option><replaceable>dir-name</replaceable>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Move any "orphaned" audio files found to the
|
||||
<replaceable>dir-name</replaceable> directory.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>--no</option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Automatically answer all interactive prompts with
|
||||
<userinput>No</userinput>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>--orphan-group=</option><replaceable>grp-name</replaceable>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Move carts with missing/invalid GROUP information to the
|
||||
<replaceable>grp-name</replaceable> group.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>--rehash=</option><replaceable>target</replaceable>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Generate SHA-1 hashes from the specified files in the audio store
|
||||
and validate them against the values stored in the database. This
|
||||
is an inherently expensive operation that may require a
|
||||
significant amount of time to complete as each audio
|
||||
file to be checked must be opened and read in its entirety.
|
||||
</para>
|
||||
<para>
|
||||
The <replaceable>target</replaceable> value can be one of the
|
||||
following:
|
||||
</para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term>
|
||||
Cart number --e.g. <userinput>123456</userinput>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Check hashs for all cuts within the specified cart.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
Cart/cut specification --e.g. <userinput>123456_001</userinput>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Check the hash for the specified cut.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<userinput>ALL</userinput>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Check hashes for all cuts in the audio store.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>--user=</option><replaceable>user-name</replaceable>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Use the <replaceable>user-name</replaceable> Rivendell user.
|
||||
Default value is <userinput>user</userinput>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>--yes</option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Automatically answer all interactive prompts with
|
||||
<userinput>Yes</userinput>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
|
||||
<refsect1 id='audio_recovery_options'><title>Audio Recovery Options</title>
|
||||
<variablelist remap='TP'>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>--relink-audio=</option><replaceable>dir-name</replaceable>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Scan the files in the directory <replaceable>dir-name</replaceable>
|
||||
and copy/rename them into the Rivendell audio store if their SHA-1
|
||||
hash matches that for one or more Rivendell cuts.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>--relink-audio-move</option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
When given along with <option>--relink-audio</option>, move the
|
||||
audio data to the Rivendell audio store rather than copying it
|
||||
--i.e. copy the audio data, then delete the original.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</refsect1>
|
||||
|
||||
|
||||
|
||||
<refsect1 id='see_also'><title>See Also</title>
|
||||
<para>
|
||||
<citerefentry>
|
||||
<refentrytitle>rdmarkerset</refentrytitle><manvolnum>8</manvolnum>
|
||||
</citerefentry>
|
||||
<literal>,</literal>
|
||||
<citerefentry>
|
||||
<refentrytitle>rdrevert</refentrytitle><manvolnum>8</manvolnum>
|
||||
</citerefentry>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
@@ -1,84 +0,0 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<refentry id="stdin" xmlns="http://docbook.org/ns/docbook" version="5.0">
|
||||
<!--
|
||||
Header
|
||||
-->
|
||||
<refmeta>
|
||||
<refentrytitle>rdrevert</refentrytitle>
|
||||
<manvolnum>8</manvolnum>
|
||||
<refmiscinfo class='source'>March 2016</refmiscinfo>
|
||||
<refmiscinfo class='manual'>Linux Audio Manual</refmiscinfo>
|
||||
</refmeta>
|
||||
<refnamediv>
|
||||
<refname>rdrevert</refname>
|
||||
<refpurpose>Revert a Rivendell database to a previous schema version</refpurpose>
|
||||
</refnamediv>
|
||||
<info>
|
||||
<author>
|
||||
<personname>
|
||||
<firstname>Fred</firstname>
|
||||
<surname>Gleason</surname>
|
||||
<email>fredg@paravelsystems.com</email>
|
||||
</personname>
|
||||
<contrib>Application Author</contrib>
|
||||
</author>
|
||||
</info>
|
||||
|
||||
<!--
|
||||
Body
|
||||
-->
|
||||
<refsynopsisdiv id='synopsis'>
|
||||
<cmdsynopsis>
|
||||
<command>rdrevert</command>
|
||||
<arg choice='opt'><replaceable>OPTIONS</replaceable></arg>
|
||||
<arg choice='opt'><userinput>--set-schema=</userinput><replaceable>schema</replaceable></arg>
|
||||
<arg choice='opt'><userinput>--set-version=</userinput><replaceable>version</replaceable></arg>
|
||||
<sbr/>
|
||||
</cmdsynopsis>
|
||||
</refsynopsisdiv>
|
||||
|
||||
<refsect1 id='description'><title>Description</title>
|
||||
<para>
|
||||
<command>rdrevert</command><manvolnum>8</manvolnum> can be used to revert
|
||||
the schema of a Rivendell database to an earlier version, specified as
|
||||
either a Rivendell version string or an absolute schema version number.
|
||||
If no arguments are given, <command>rdrevert</command><manvolnum>8</manvolnum>
|
||||
will print the current database schema version to standard output and
|
||||
then exit.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 id='options'><title>Options</title>
|
||||
<variablelist remap='TP'>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>--set-schema=</option><replaceable>schema</replaceable>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Set the version number of the schema to which to revert.
|
||||
<command>rdrevert</command><manvolnum>8</manvolnum> can revert back
|
||||
up to schema version 242 (v2.10.0) inclusive. Attempting to
|
||||
revert to an earlier schema than 242 will generate an
|
||||
<computeroutput>unsupported schema</computeroutput> error.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>--set-version=</option><replaceable>version</replaceable>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Determine the schema to which to revert on the basis of the
|
||||
specified Rivendell version --e.g. <userinput>2.10.3</userinput>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
</variablelist>
|
||||
</refsect1>
|
||||
|
||||
</refentry>
|
||||
|
@@ -294,10 +294,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
@LOCAL_PREFIX@/bin/rdrender
|
||||
%attr(4755,root,root)@LOCAL_PREFIX@/bin/ripcd
|
||||
@LOCAL_PREFIX@/sbin/sas_shim
|
||||
@LOCAL_PREFIX@/sbin/rddbcheck
|
||||
@LOCAL_PREFIX@/sbin/rdmarkerset
|
||||
@LOCAL_PREFIX@/sbin/rdcleandirs
|
||||
@LOCAL_PREFIX@/sbin/rdrevert
|
||||
@LOCAL_PREFIX@/sbin/rddbmgr
|
||||
@LOCAL_PREFIX@/share/rivendell/*
|
||||
/etc/init.d/rdrepld
|
||||
@LOCAL_PREFIX@/share/icons/hicolor/16x16/apps/rivendell.png
|
||||
@@ -409,9 +408,8 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_mandir}/man1/rdimport.1.gz
|
||||
%{_mandir}/man1/rdrender.1.gz
|
||||
%{_mandir}/man1/rmlsend.1.gz
|
||||
%{_mandir}/man8/rddbcheck.8.gz
|
||||
%{_mandir}/man8/rddbmgr.8.gz
|
||||
%{_mandir}/man8/rdmarkerset.8.gz
|
||||
%{_mandir}/man8/rdrevert.8.gz
|
||||
@DOC_PATH@/*
|
||||
|
||||
|
||||
|
@@ -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