mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 17:13:47 +02:00
2017-08-31 Fred Gleason <fredg@paravelsystems.com>
* Modified web client components to use a distinctive http USER_AGENT string.
This commit is contained in:
@@ -40,8 +40,8 @@
|
||||
|
||||
#define RD_MAX_CART_NUMBER 999999
|
||||
|
||||
CitadelXds::CitadelXds(ReplConfig *config)
|
||||
: ReplFactory(config)
|
||||
CitadelXds::CitadelXds(ReplConfig *repl_config)
|
||||
: ReplFactory(repl_config)
|
||||
{
|
||||
QString sql;
|
||||
RDSqlQuery *q;
|
||||
@@ -379,7 +379,7 @@ bool CitadelXds::PostCut(const QString &cutname,const QString &filename)
|
||||
//
|
||||
// Upload File
|
||||
//
|
||||
RDUpload *upload=new RDUpload(rdconfig->stationName());
|
||||
RDUpload *upload=new RDUpload(rdconfig);
|
||||
upload->setSourceFile(tempfile);
|
||||
upload->setDestinationUrl(config()->url()+"/"+filename);
|
||||
switch(upload_err=upload->runUpload(config()->urlUsername(),
|
||||
@@ -432,7 +432,7 @@ void CitadelXds::PurgeCuts()
|
||||
path+="/";
|
||||
}
|
||||
QUrl url(path+q->value(1).toString());
|
||||
conv=new RDDelete();
|
||||
conv=new RDDelete(rdconfig);
|
||||
conv->setTargetUrl(url);
|
||||
if((conv_err=conv->runDelete(config()->urlUsername(),
|
||||
config()->urlPassword(),
|
||||
|
@@ -21,12 +21,13 @@
|
||||
#ifndef CITADELXDS_H
|
||||
#define CITADELXDS_H
|
||||
|
||||
#include <replfactory.h>
|
||||
#include "globals.h"
|
||||
#include "replfactory.h"
|
||||
|
||||
class CitadelXds : public ReplFactory
|
||||
{
|
||||
public:
|
||||
CitadelXds(ReplConfig *config);
|
||||
CitadelXds(ReplConfig *repl_config);
|
||||
void startProcess();
|
||||
bool processCart(const unsigned cartnum);
|
||||
|
||||
|
@@ -71,6 +71,7 @@ MainObject::MainObject(QObject *parent)
|
||||
//
|
||||
rdconfig=new RDConfig();
|
||||
rdconfig->load();
|
||||
rdconfig->setModuleName("rdrepld");
|
||||
|
||||
//
|
||||
// Read Command Options
|
||||
|
Reference in New Issue
Block a user