2018-08-13 Fred Gleason <fredg@paravelsystems.com>

* Removed support for the 'Backup Database' ['DB'] RML.
	* Removed support for automatic DB backup.
	* Dropped the 'STATIONS.BACKUP_DIR' and 'STATIONS.BACKUP_LIFE'
	fields drom the database.
	* Incremented the database version to 296.
This commit is contained in:
Fred Gleason
2018-08-13 17:12:20 -04:00
parent 16661cfb6d
commit 77f35e52f5
25 changed files with 107 additions and 473 deletions

View File

@@ -24,7 +24,7 @@
/*
* Current Database Version
*/
#define RD_VERSION_DATABASE 295
#define RD_VERSION_DATABASE 296
#endif // DBVERSION_H

View File

@@ -229,7 +229,6 @@ RDMacro RDMacro::fromString(const QString &str,RDMacro::Role role)
case RDMacro::CE:
case RDMacro::CL:
case RDMacro::CP:
case RDMacro::DB:
case RDMacro::DL:
case RDMacro::DP:
case RDMacro::DS:

View File

@@ -39,16 +39,15 @@ class RDMacro
{
public:
enum Command {AG=0x4147,AL=0x414C,BO=0x424F,CC=0x4343,CE=0x4345,CL=0x434C,
CP=0x4350,DB=0x4442,DL=0x444C,DP=0x4450,DS=0x4453,DX=0x4458,
EX=0x4558,FS=0x4653,GE=0x4745,GI=0x4749,GO=0x474F,JC=0x4A43,
JD=0x4A44,LB=0x4C42,LC=0x4C43,LL=0x4C4C,LO=0x4C4F,MB=0x4D42,
MD=0x4D44,MN=0x4D4E,MT=0x4D54,NN=0x4E4E,PB=0x5042,PC=0x5043,
PD=0x5044,PE=0x5045,PL=0x504C,PM=0x504D,PN=0x504E,PP=0x5050,
PS=0x5053,PT=0x5054,PU=0x5055,PW=0x5057,PX=0x5058,RL=0x524C,
RN=0x524E,RS=0x5253,RR=0x5252,SA=0x5341,SC=0x5343,SD=0x5344,
SG=0x5347,SI=0x5349,SL=0x534C,SN=0x534e,SO=0x534F,SP=0x5350,
SR=0x5352,ST=0x5354,SX=0x5358,SY=0x5359,SZ=0x535A,TA=0x5441,
UO=0x554F};
CP=0x4350,DL=0x444C,DP=0x4450,DS=0x4453,DX=0x4458,EX=0x4558,
FS=0x4653,GE=0x4745,GI=0x4749,GO=0x474F,JC=0x4A43,JD=0x4A44,
LB=0x4C42,LC=0x4C43,LL=0x4C4C,LO=0x4C4F,MB=0x4D42,MD=0x4D44,
MN=0x4D4E,MT=0x4D54,NN=0x4E4E,PB=0x5042,PC=0x5043,PD=0x5044,
PE=0x5045,PL=0x504C,PM=0x504D,PN=0x504E,PP=0x5050,PS=0x5053,
PT=0x5054,PU=0x5055,PW=0x5057,PX=0x5058,RL=0x524C,RN=0x524E,
RS=0x5253,RR=0x5252,SA=0x5341,SC=0x5343,SD=0x5344,SG=0x5347,
SI=0x5349,SL=0x534C,SN=0x534e,SO=0x534F,SP=0x5350,SR=0x5352,
ST=0x5354,SX=0x5358,SY=0x5359,SZ=0x535A,TA=0x5441,UO=0x554F};
enum Role {Invalid=0,Cmd=1,Reply=2};
RDMacro();
RDMacro::Role role() const;

View File

@@ -205,30 +205,6 @@ void RDStation::setTimeOffset(int msecs)
}
QString RDStation::backupPath() const
{
return RDGetSqlValue("STATIONS","NAME",station_name,"BACKUP_DIR").toString();
}
void RDStation::setBackupPath(QString path) const
{
SetRow("BACKUP_DIR",path);
}
int RDStation::backupLife() const
{
return RDGetSqlValue("STATIONS","NAME",station_name,"BACKUP_LIFE").toInt();
}
void RDStation::setBackupLife(int days) const
{
SetRow("BACKUP_LIFE",days);
}
unsigned RDStation::heartbeatCart() const
{
return RDGetSqlValue("STATIONS","NAME",station_name,"HEARTBEAT_CART").

View File

@@ -56,10 +56,6 @@ class RDStation
QString webServiceUrl(RDConfig *config) const;
int timeOffset();
void setTimeOffset(int msecs);
QString backupPath() const;
void setBackupPath(QString path) const;
int backupLife() const;
void setBackupLife(int days) const;
unsigned heartbeatCart() const;
void setHeartbeatCart(unsigned cartnum) const;
unsigned heartbeatInterval() const;