mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-06-18 09:00:08 +02:00
2017-12-16 Fred Gleason <fredg@paravelsystems.com>
* Added support for filepath wildcards in macro carts.
This commit is contained in:
parent
419640c9b2
commit
e07cabc72f
ChangeLog
docs/opsguide
importers
lib
rdadmin
rdairplay
rdcartslots
rdcastmanager
rdcatch
rdcatchd
rdlibrary
rdlogedit
rdlogin
rdlogmanager
rdpanel
utils
rdclilogedit
rddelete
rddgimport
rddiscimport
rdexport
rdgpimon
rdimport
rdmarkerset
rdrender
sas_shim
@ -16493,3 +16493,5 @@
|
|||||||
2017-12-15 Fred Gleason <fredg@paravelsystems.com>
|
2017-12-15 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Updated 'NEWS'.
|
* Updated 'NEWS'.
|
||||||
* Incremented the package version to 2.17.0int07.
|
* Incremented the package version to 2.17.0int07.
|
||||||
|
2017-12-16 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Added support for filepath wildcards in macro carts.
|
||||||
|
@ -697,6 +697,12 @@
|
|||||||
<computeroutput>Paste</computeroutput> individual
|
<computeroutput>Paste</computeroutput> individual
|
||||||
lines both within a given cart or between carts.
|
lines both within a given cart or between carts.
|
||||||
</para>
|
</para>
|
||||||
|
<para>
|
||||||
|
In addition to RML code, lines can also contain host variables
|
||||||
|
(see <xref linkend="sect.rdadmin.manage_hosts.configuring_host_variables" />)
|
||||||
|
and filepath wildcards
|
||||||
|
(see <xref linkend="appendix.filepath_wildcards" />).
|
||||||
|
</para>
|
||||||
<para>
|
<para>
|
||||||
<mediaobject>
|
<mediaobject>
|
||||||
<imageobject>
|
<imageobject>
|
||||||
|
@ -154,17 +154,17 @@ MainObject::MainObject(QObject *parent)
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
|
||||||
// RIPCD Connection
|
|
||||||
//
|
|
||||||
filter_ripc=new RDRipc("");
|
|
||||||
filter_ripc->connectHost("localhost",RIPCD_TCP_PORT,rdconfig->password());
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Station Configuration
|
// Station Configuration
|
||||||
//
|
//
|
||||||
filter_rdstation=new RDStation(rdconfig->stationName());
|
filter_rdstation=new RDStation(rdconfig->stationName());
|
||||||
|
|
||||||
|
//
|
||||||
|
// RIPCD Connection
|
||||||
|
//
|
||||||
|
filter_ripc=new RDRipc(filter_rdstation,rdconfig,this);
|
||||||
|
filter_ripc->connectHost("localhost",RIPCD_TCP_PORT,rdconfig->password());
|
||||||
|
|
||||||
//
|
//
|
||||||
// Validate Arguments
|
// Validate Arguments
|
||||||
//
|
//
|
||||||
|
@ -80,17 +80,17 @@ MainObject::MainObject(QObject *parent)
|
|||||||
exit(256);
|
exit(256);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
|
||||||
// RIPCD Connection
|
|
||||||
//
|
|
||||||
filter_ripc=new RDRipc("");
|
|
||||||
filter_ripc->connectHost("localhost",RIPCD_TCP_PORT,rd_config->password());
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Station Configuration
|
// Station Configuration
|
||||||
//
|
//
|
||||||
filter_rdstation=new RDStation(rd_config->stationName());
|
filter_rdstation=new RDStation(rd_config->stationName());
|
||||||
|
|
||||||
|
//
|
||||||
|
// RIPCD Connection
|
||||||
|
//
|
||||||
|
filter_ripc=new RDRipc(filter_rdstation,rd_config,this);
|
||||||
|
filter_ripc->connectHost("localhost",RIPCD_TCP_PORT,rd_config->password());
|
||||||
|
|
||||||
//
|
//
|
||||||
// RDCatchd Connection
|
// RDCatchd Connection
|
||||||
//
|
//
|
||||||
|
@ -84,17 +84,17 @@ MainObject::MainObject(QObject *parent)
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
|
||||||
// RIPCD Connection
|
|
||||||
//
|
|
||||||
filter_ripc=new RDRipc("");
|
|
||||||
filter_ripc->connectHost("localhost",RIPCD_TCP_PORT,rdconfig->password());
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Station Configuration
|
// Station Configuration
|
||||||
//
|
//
|
||||||
filter_rdstation=new RDStation(rdconfig->stationName());
|
filter_rdstation=new RDStation(rdconfig->stationName());
|
||||||
|
|
||||||
|
//
|
||||||
|
// RIPCD Connection
|
||||||
|
//
|
||||||
|
filter_ripc=new RDRipc(filter_rdstation,rdconfig,this);
|
||||||
|
filter_ripc->connectHost("localhost",RIPCD_TCP_PORT,rdconfig->password());
|
||||||
|
|
||||||
//
|
//
|
||||||
// Read Arguments
|
// Read Arguments
|
||||||
//
|
//
|
||||||
|
@ -365,5 +365,6 @@ QString RDDateTimeDecode(QString str,const QDateTime &datetime,
|
|||||||
string+=field;
|
string+=field;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return string;
|
return string;
|
||||||
}
|
}
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
#include <qstringlist.h>
|
#include <qstringlist.h>
|
||||||
|
|
||||||
#include <rddb.h>
|
#include <rddb.h>
|
||||||
|
#include <rdescape_string.h>
|
||||||
#include <rdmacro_event.h>
|
#include <rdmacro_event.h>
|
||||||
#include <rdstation.h>
|
#include <rdstation.h>
|
||||||
|
|
||||||
@ -250,11 +251,9 @@ void RDMacroEvent::exec(int line)
|
|||||||
rml.setAddress(addr);
|
rml.setAddress(addr);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
sql=
|
sql=QString("select VARVALUE from HOSTVARS where ")+
|
||||||
QString().sprintf("select VARVALUE from HOSTVARS \
|
"(STATION_NAME=\""+RDEscapeString(event_ripc->station())+"\")&&"+
|
||||||
where (STATION_NAME=\"%s\")&&(NAME=\"%s\")",
|
"(NAME=\""+RDEscapeString(stationname)+"\")";
|
||||||
(const char *)event_ripc->station(),
|
|
||||||
(const char *)stationname);
|
|
||||||
q=new RDSqlQuery(sql);
|
q=new RDSqlQuery(sql);
|
||||||
if(q->first()) {
|
if(q->first()) {
|
||||||
stationname=q->value(0).toString();
|
stationname=q->value(0).toString();
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Connection to the Rivendell Interprocess Communication Daemon
|
// Connection to the Rivendell Interprocess Communication Daemon
|
||||||
//
|
//
|
||||||
// (C) Copyright 2002-2003,2016 Fred Gleason <fredg@paravelsystems.com>
|
// (C) Copyright 2002-2003,2016-2017 Fred Gleason <fredg@paravelsystems.com>
|
||||||
//
|
//
|
||||||
// This program is free software; you can redistribute it and/or modify
|
// 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
|
// it under the terms of the GNU General Public License version 2 as
|
||||||
@ -22,14 +22,18 @@
|
|||||||
|
|
||||||
#include <qobject.h>
|
#include <qobject.h>
|
||||||
#include <qapplication.h>
|
#include <qapplication.h>
|
||||||
|
#include <qdatetime.h>
|
||||||
|
|
||||||
|
#include <rddatedecode.h>
|
||||||
#include <rddb.h>
|
#include <rddb.h>
|
||||||
#include <rdripc.h>
|
#include <rdripc.h>
|
||||||
|
|
||||||
RDRipc::RDRipc(QString stationname,QObject *parent)
|
//RDRipc::RDRipc(QString stationname,QObject *parent)
|
||||||
|
RDRipc::RDRipc(RDStation *station,RDConfig *config,QObject *parent)
|
||||||
: QObject(parent)
|
: QObject(parent)
|
||||||
{
|
{
|
||||||
ripc_stationname=stationname;
|
ripc_station=station;
|
||||||
|
ripc_config=config;
|
||||||
ripc_onair_flag=false;
|
ripc_onair_flag=false;
|
||||||
ripc_ignore_mask=false;
|
ripc_ignore_mask=false;
|
||||||
debug=false;
|
debug=false;
|
||||||
@ -62,7 +66,7 @@ QString RDRipc::user() const
|
|||||||
|
|
||||||
QString RDRipc::station() const
|
QString RDRipc::station() const
|
||||||
{
|
{
|
||||||
return ripc_stationname;
|
return ripc_station->name();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -143,14 +147,8 @@ void RDRipc::sendRml(RDMacro *macro)
|
|||||||
{
|
{
|
||||||
char buffer[RD_RML_MAX_LENGTH];
|
char buffer[RD_RML_MAX_LENGTH];
|
||||||
char cmd[RD_RML_MAX_LENGTH+4];
|
char cmd[RD_RML_MAX_LENGTH+4];
|
||||||
/*
|
|
||||||
int echo=0;
|
|
||||||
|
|
||||||
if(macro->echoRequested()) {
|
|
||||||
echo=1;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
Q_UINT16 port=RD_RML_NOECHO_PORT;
|
Q_UINT16 port=RD_RML_NOECHO_PORT;
|
||||||
|
QDateTime now=QDateTime::currentDateTime();
|
||||||
|
|
||||||
if(macro->echoRequested()) {
|
if(macro->echoRequested()) {
|
||||||
port=RD_RML_ECHO_PORT;
|
port=RD_RML_ECHO_PORT;
|
||||||
@ -162,12 +160,13 @@ void RDRipc::sendRml(RDMacro *macro)
|
|||||||
QString rmlline(buffer);
|
QString rmlline(buffer);
|
||||||
QString sql=QString().sprintf("select NAME,VARVALUE from HOSTVARS \
|
QString sql=QString().sprintf("select NAME,VARVALUE from HOSTVARS \
|
||||||
where STATION_NAME=\"%s\"",
|
where STATION_NAME=\"%s\"",
|
||||||
(const char *)ripc_stationname);
|
(const char *)ripc_station->name());
|
||||||
RDSqlQuery *q=new RDSqlQuery(sql);
|
RDSqlQuery *q=new RDSqlQuery(sql);
|
||||||
while(q->next()) {
|
while(q->next()) {
|
||||||
rmlline.replace(q->value(0).toString(),q->value(1).toString());
|
rmlline.replace(q->value(0).toString(),q->value(1).toString());
|
||||||
}
|
}
|
||||||
delete q;
|
delete q;
|
||||||
|
rmlline=RDDateTimeDecode(rmlline,now,ripc_station,ripc_config);
|
||||||
switch(macro->role()) {
|
switch(macro->role()) {
|
||||||
case RDMacro::Cmd:
|
case RDMacro::Cmd:
|
||||||
sprintf(cmd,"MS %s %d %s",(const char *)macro->address().toString(),
|
sprintf(cmd,"MS %s %d %s",(const char *)macro->address().toString(),
|
||||||
|
@ -25,7 +25,9 @@
|
|||||||
#include <qlabel.h>
|
#include <qlabel.h>
|
||||||
#include <qtimer.h>
|
#include <qtimer.h>
|
||||||
|
|
||||||
|
#include <rdconfig.h>
|
||||||
#include <rdmacro.h>
|
#include <rdmacro.h>
|
||||||
|
#include <rdstation.h>
|
||||||
|
|
||||||
#ifndef RDRIPC_H
|
#ifndef RDRIPC_H
|
||||||
#define RDRIPC_H
|
#define RDRIPC_H
|
||||||
@ -38,7 +40,8 @@ class RDRipc : public QObject
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
RDRipc(QString stationname,QObject *parent=0);
|
// RDRipc(QString stationname,QObject *parent=0);
|
||||||
|
RDRipc(RDStation *station,RDConfig *config,QObject *parent=0);
|
||||||
~RDRipc();
|
~RDRipc();
|
||||||
QString user() const;
|
QString user() const;
|
||||||
QString station() const;
|
QString station() const;
|
||||||
@ -79,7 +82,9 @@ class RDRipc : public QObject
|
|||||||
QSocket *ripc_socket;
|
QSocket *ripc_socket;
|
||||||
QString ripc_user;
|
QString ripc_user;
|
||||||
QString ripc_password;
|
QString ripc_password;
|
||||||
QString ripc_stationname;
|
// QString ripc_stationname;
|
||||||
|
RDStation *ripc_station;
|
||||||
|
RDConfig *ripc_config;
|
||||||
bool ripc_onair_flag;
|
bool ripc_onair_flag;
|
||||||
bool ripc_ignore_mask;
|
bool ripc_ignore_mask;
|
||||||
bool debug;
|
bool debug;
|
||||||
|
@ -178,10 +178,10 @@ MainWidget::MainWidget(QWidget *parent)
|
|||||||
char temp[256];
|
char temp[256];
|
||||||
GetPrivateProfileString(RD_CONF_FILE,"Identity","Password",
|
GetPrivateProfileString(RD_CONF_FILE,"Identity","Password",
|
||||||
temp,"",255);
|
temp,"",255);
|
||||||
rdripc=new RDRipc(admin_config->stationName(),this);
|
|
||||||
rdripc->connectHost("localhost",RIPCD_TCP_PORT,temp);
|
|
||||||
admin_station=new RDStation(admin_config->stationName(),this);
|
admin_station=new RDStation(admin_config->stationName(),this);
|
||||||
admin_system=new RDSystem();
|
admin_system=new RDSystem();
|
||||||
|
rdripc=new RDRipc(admin_station,admin_config,this);
|
||||||
|
rdripc->connectHost("localhost",RIPCD_TCP_PORT,temp);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Log In
|
// Log In
|
||||||
|
@ -342,7 +342,7 @@ MainWidget::MainWidget(QWidget *parent)
|
|||||||
//
|
//
|
||||||
// RIPC Connection
|
// RIPC Connection
|
||||||
//
|
//
|
||||||
rdripc=new RDRipc(air_config->stationName());
|
rdripc=new RDRipc(rdstation_conf,air_config,this);
|
||||||
connect(rdripc,SIGNAL(connected(bool)),this,SLOT(ripcConnected(bool)));
|
connect(rdripc,SIGNAL(connected(bool)),this,SLOT(ripcConnected(bool)));
|
||||||
connect(rdripc,SIGNAL(userChanged()),this,SLOT(userData()));
|
connect(rdripc,SIGNAL(userChanged()),this,SLOT(userData()));
|
||||||
connect(rdripc,SIGNAL(rmlReceived(RDMacro *)),
|
connect(rdripc,SIGNAL(rmlReceived(RDMacro *)),
|
||||||
|
@ -123,7 +123,7 @@ MainWidget::MainWidget(QWidget *parent)
|
|||||||
//
|
//
|
||||||
// RIPC Connection
|
// RIPC Connection
|
||||||
//
|
//
|
||||||
panel_ripc=new RDRipc(panel_config->stationName());
|
panel_ripc=new RDRipc(panel_station,panel_config,this);
|
||||||
connect(panel_ripc,SIGNAL(userChanged()),this,SLOT(userData()));
|
connect(panel_ripc,SIGNAL(userChanged()),this,SLOT(userData()));
|
||||||
connect(panel_ripc,SIGNAL(rmlReceived(RDMacro *)),
|
connect(panel_ripc,SIGNAL(rmlReceived(RDMacro *)),
|
||||||
this,SLOT(rmlReceivedData(RDMacro *)));
|
this,SLOT(rmlReceivedData(RDMacro *)));
|
||||||
|
@ -122,23 +122,23 @@ MainWidget::MainWidget(QWidget *parent)
|
|||||||
exit(256);
|
exit(256);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Station Configuration
|
||||||
|
//
|
||||||
|
rdstation_conf=new RDStation(config->stationName(),this);
|
||||||
|
cast_system=new RDSystem();
|
||||||
|
|
||||||
//
|
//
|
||||||
// RIPC Connection
|
// RIPC Connection
|
||||||
//
|
//
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
cast_ripc=new RDRipc(config->stationName());
|
cast_ripc=new RDRipc(rdstation_conf,config,this);
|
||||||
connect(cast_ripc,SIGNAL(userChanged()),this,SLOT(userChangedData()));
|
connect(cast_ripc,SIGNAL(userChanged()),this,SLOT(userChangedData()));
|
||||||
cast_ripc->connectHost("localhost",RIPCD_TCP_PORT,config->password());
|
cast_ripc->connectHost("localhost",RIPCD_TCP_PORT,config->password());
|
||||||
#else
|
#else
|
||||||
cast_ripc=NULL;
|
cast_ripc=NULL;
|
||||||
#endif // WIN32
|
#endif // WIN32
|
||||||
|
|
||||||
//
|
|
||||||
// Station Configuration
|
|
||||||
//
|
|
||||||
rdstation_conf=new RDStation(config->stationName(),this);
|
|
||||||
cast_system=new RDSystem();
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// User
|
// User
|
||||||
//
|
//
|
||||||
|
@ -250,7 +250,7 @@ MainWidget::MainWidget(QWidget *parent)
|
|||||||
//
|
//
|
||||||
// RIPC Connection
|
// RIPC Connection
|
||||||
//
|
//
|
||||||
catch_ripc=new RDRipc(catch_config->stationName());
|
catch_ripc=new RDRipc(rdstation_conf,catch_config,this);
|
||||||
connect(catch_ripc,SIGNAL(connected(bool)),
|
connect(catch_ripc,SIGNAL(connected(bool)),
|
||||||
this,SLOT(ripcConnectedData(bool)));
|
this,SLOT(ripcConnectedData(bool)));
|
||||||
catch_user=NULL;
|
catch_user=NULL;
|
||||||
|
@ -255,10 +255,15 @@ MainObject::MainObject(QObject *parent)
|
|||||||
catch_xload_timer=new QTimer(this);
|
catch_xload_timer=new QTimer(this);
|
||||||
connect(catch_xload_timer,SIGNAL(timeout()),this,SLOT(updateXloadsData()));
|
connect(catch_xload_timer,SIGNAL(timeout()),this,SLOT(updateXloadsData()));
|
||||||
|
|
||||||
|
//
|
||||||
|
// Station Configuration
|
||||||
|
//
|
||||||
|
catch_rdstation=new RDStation(catch_config->stationName());
|
||||||
|
|
||||||
//
|
//
|
||||||
// RIPCD Connection
|
// RIPCD Connection
|
||||||
//
|
//
|
||||||
catch_ripc=new RDRipc(catch_config->stationName());
|
catch_ripc=new RDRipc(catch_rdstation,catch_config,this);
|
||||||
catch_ripc->connectHost("localhost",RIPCD_TCP_PORT,catch_config->password());
|
catch_ripc->connectHost("localhost",RIPCD_TCP_PORT,catch_config->password());
|
||||||
connect(catch_ripc,SIGNAL(rmlReceived(RDMacro *)),
|
connect(catch_ripc,SIGNAL(rmlReceived(RDMacro *)),
|
||||||
this,SLOT(rmlReceivedData(RDMacro *)));
|
this,SLOT(rmlReceivedData(RDMacro *)));
|
||||||
@ -270,11 +275,6 @@ MainObject::MainObject(QObject *parent)
|
|||||||
//
|
//
|
||||||
catch_system=new RDSystem();
|
catch_system=new RDSystem();
|
||||||
|
|
||||||
//
|
|
||||||
// Station Configuration
|
|
||||||
//
|
|
||||||
catch_rdstation=new RDStation(catch_config->stationName());
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// CAE Connection
|
// CAE Connection
|
||||||
//
|
//
|
||||||
|
@ -211,7 +211,7 @@ MainWidget::MainWidget(QWidget *parent)
|
|||||||
lib_filter_mode=rdstation_conf->filterMode();
|
lib_filter_mode=rdstation_conf->filterMode();
|
||||||
rdaudioport_conf=new RDAudioPort(lib_config->stationName(),
|
rdaudioport_conf=new RDAudioPort(lib_config->stationName(),
|
||||||
rdlibrary_conf->inputCard());
|
rdlibrary_conf->inputCard());
|
||||||
rdripc=new RDRipc(lib_config->stationName());
|
rdripc=new RDRipc(rdstation_conf,lib_config,this);
|
||||||
connect(rdripc,SIGNAL(connected(bool)),this,SLOT(connectedData(bool)));
|
connect(rdripc,SIGNAL(connected(bool)),this,SLOT(connectedData(bool)));
|
||||||
connect(rdripc,SIGNAL(userChanged()),this,SLOT(userData()));
|
connect(rdripc,SIGNAL(userChanged()),this,SLOT(userData()));
|
||||||
rdripc->connectHost("localhost",RIPCD_TCP_PORT,lib_config->password());
|
rdripc->connectHost("localhost",RIPCD_TCP_PORT,lib_config->password());
|
||||||
|
@ -187,7 +187,7 @@ MainWidget::MainWidget(QWidget *parent)
|
|||||||
// RIPC Connection
|
// RIPC Connection
|
||||||
//
|
//
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
rdripc=new RDRipc(log_config->stationName());
|
rdripc=new RDRipc(rdstation_conf,log_config,this);
|
||||||
connect(rdripc,SIGNAL(connected(bool)),this,SLOT(connectedData(bool)));
|
connect(rdripc,SIGNAL(connected(bool)),this,SLOT(connectedData(bool)));
|
||||||
connect(rdripc,SIGNAL(userChanged()),this,SLOT(userData()));
|
connect(rdripc,SIGNAL(userChanged()),this,SLOT(userData()));
|
||||||
rdripc->connectHost("localhost",RIPCD_TCP_PORT,log_config->password());
|
rdripc->connectHost("localhost",RIPCD_TCP_PORT,log_config->password());
|
||||||
|
@ -127,20 +127,20 @@ MainWidget::MainWidget(QWidget *parent)
|
|||||||
exit(256);
|
exit(256);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Station
|
||||||
|
//
|
||||||
|
login_station=new RDStation(login_config->stationName());
|
||||||
|
|
||||||
//
|
//
|
||||||
// RIPC Connection
|
// RIPC Connection
|
||||||
//
|
//
|
||||||
login_ripc=new RDRipc(login_config->stationName());
|
login_ripc=new RDRipc(login_station,login_config,this);
|
||||||
connect(login_ripc,SIGNAL(connected(bool)),this,SLOT(connectedData(bool)));
|
connect(login_ripc,SIGNAL(connected(bool)),this,SLOT(connectedData(bool)));
|
||||||
connect(login_ripc,SIGNAL(userChanged()),this,SLOT(userData()));
|
connect(login_ripc,SIGNAL(userChanged()),this,SLOT(userData()));
|
||||||
login_ripc->connectHost("localhost",RIPCD_TCP_PORT,
|
login_ripc->connectHost("localhost",RIPCD_TCP_PORT,
|
||||||
login_config->password());
|
login_config->password());
|
||||||
|
|
||||||
//
|
|
||||||
// Station
|
|
||||||
//
|
|
||||||
login_station=new RDStation(login_config->stationName());
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// System
|
// System
|
||||||
//
|
//
|
||||||
|
@ -164,7 +164,7 @@ MainWidget::MainWidget(QWidget *parent)
|
|||||||
//
|
//
|
||||||
// RIPC Connection
|
// RIPC Connection
|
||||||
//
|
//
|
||||||
rdripc=new RDRipc(log_config->stationName());
|
rdripc=new RDRipc(rdstation_conf,log_config,this);
|
||||||
connect(rdripc,SIGNAL(userChanged()),this,SLOT(userData()));
|
connect(rdripc,SIGNAL(userChanged()),this,SLOT(userData()));
|
||||||
rdripc->connectHost("localhost",RIPCD_TCP_PORT,log_config->password());
|
rdripc->connectHost("localhost",RIPCD_TCP_PORT,log_config->password());
|
||||||
|
|
||||||
|
@ -172,7 +172,7 @@ MainWidget::MainWidget(QWidget *parent)
|
|||||||
//
|
//
|
||||||
// RIPC Connection
|
// RIPC Connection
|
||||||
//
|
//
|
||||||
rdripc=new RDRipc(panel_config->stationName());
|
rdripc=new RDRipc(rdstation_conf,panel_config,this);
|
||||||
connect(rdripc,SIGNAL(userChanged()),this,SLOT(userData()));
|
connect(rdripc,SIGNAL(userChanged()),this,SLOT(userData()));
|
||||||
connect(rdripc,SIGNAL(rmlReceived(RDMacro *)),
|
connect(rdripc,SIGNAL(rmlReceived(RDMacro *)),
|
||||||
this,SLOT(rmlReceivedData(RDMacro *)));
|
this,SLOT(rmlReceivedData(RDMacro *)));
|
||||||
|
@ -93,7 +93,7 @@ MainObject::MainObject(QObject *parent)
|
|||||||
// RIPC Connection
|
// RIPC Connection
|
||||||
//
|
//
|
||||||
edit_user=NULL;
|
edit_user=NULL;
|
||||||
edit_ripc=new RDRipc(edit_config->stationName());
|
edit_ripc=new RDRipc(edit_station,edit_config,this);
|
||||||
connect(edit_ripc,SIGNAL(userChanged()),this,SLOT(userData()));
|
connect(edit_ripc,SIGNAL(userChanged()),this,SLOT(userData()));
|
||||||
edit_ripc->connectHost("localhost",RIPCD_TCP_PORT,edit_config->password());
|
edit_ripc->connectHost("localhost",RIPCD_TCP_PORT,edit_config->password());
|
||||||
}
|
}
|
||||||
|
@ -135,7 +135,7 @@ MainObject::MainObject(QObject *parent)
|
|||||||
//
|
//
|
||||||
// RIPC Connection
|
// RIPC Connection
|
||||||
//
|
//
|
||||||
del_ripc=new RDRipc(del_config->stationName());
|
del_ripc=new RDRipc(del_station,del_config,this);
|
||||||
connect(del_ripc,SIGNAL(userChanged()),this,SLOT(userData()));
|
connect(del_ripc,SIGNAL(userChanged()),this,SLOT(userData()));
|
||||||
del_ripc->connectHost("localhost",RIPCD_TCP_PORT,del_config->password());
|
del_ripc->connectHost("localhost",RIPCD_TCP_PORT,del_config->password());
|
||||||
|
|
||||||
|
@ -107,7 +107,7 @@ MainWidget::MainWidget(QWidget *parent)
|
|||||||
//
|
//
|
||||||
dg_station=new RDStation(dg_config->stationName(),this);
|
dg_station=new RDStation(dg_config->stationName(),this);
|
||||||
dg_library_conf=new RDLibraryConf(dg_config->stationName(),0);
|
dg_library_conf=new RDLibraryConf(dg_config->stationName(),0);
|
||||||
dg_ripc=new RDRipc(dg_config->stationName(),this);
|
dg_ripc=new RDRipc(dg_station,dg_config,this);
|
||||||
connect(dg_ripc,SIGNAL(userChanged()),this,SLOT(userChangedData()));
|
connect(dg_ripc,SIGNAL(userChanged()),this,SLOT(userChangedData()));
|
||||||
dg_ripc->connectHost("localhost",RIPCD_TCP_PORT,dg_config->password());
|
dg_ripc->connectHost("localhost",RIPCD_TCP_PORT,dg_config->password());
|
||||||
|
|
||||||
|
@ -117,7 +117,7 @@ MainWidget::MainWidget(QWidget *parent)
|
|||||||
dg_system=new RDSystem();
|
dg_system=new RDSystem();
|
||||||
dg_station=new RDStation(dg_config->stationName(),this);
|
dg_station=new RDStation(dg_config->stationName(),this);
|
||||||
dg_library_conf=new RDLibraryConf(dg_config->stationName(),0);
|
dg_library_conf=new RDLibraryConf(dg_config->stationName(),0);
|
||||||
dg_ripc=new RDRipc(dg_config->stationName(),this);
|
dg_ripc=new RDRipc(dg_station,dg_config,this);
|
||||||
connect(dg_ripc,SIGNAL(userChanged()),this,SLOT(userChangedData()));
|
connect(dg_ripc,SIGNAL(userChanged()),this,SLOT(userChangedData()));
|
||||||
dg_ripc->connectHost("localhost",RIPCD_TCP_PORT,dg_config->password());
|
dg_ripc->connectHost("localhost",RIPCD_TCP_PORT,dg_config->password());
|
||||||
|
|
||||||
|
@ -247,19 +247,19 @@ MainObject::MainObject(QObject *parent)
|
|||||||
exit(256);
|
exit(256);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
|
||||||
// RIPC Connection
|
|
||||||
//
|
|
||||||
export_ripc=new RDRipc(export_config->stationName());
|
|
||||||
connect(export_ripc,SIGNAL(userChanged()),this,SLOT(userData()));
|
|
||||||
export_ripc->
|
|
||||||
connectHost("localhost",RIPCD_TCP_PORT,export_config->password());
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Station Configuration
|
// Station Configuration
|
||||||
//
|
//
|
||||||
export_station=new RDStation(export_config->stationName());
|
export_station=new RDStation(export_config->stationName());
|
||||||
|
|
||||||
|
//
|
||||||
|
// RIPC Connection
|
||||||
|
//
|
||||||
|
export_ripc=new RDRipc(export_station,export_config,this);
|
||||||
|
connect(export_ripc,SIGNAL(userChanged()),this,SLOT(userData()));
|
||||||
|
export_ripc->
|
||||||
|
connectHost("localhost",RIPCD_TCP_PORT,export_config->password());
|
||||||
|
|
||||||
//
|
//
|
||||||
// User
|
// User
|
||||||
//
|
//
|
||||||
|
@ -112,10 +112,15 @@ MainWidget::MainWidget(QWidget *parent)
|
|||||||
}
|
}
|
||||||
new RDDbHeartbeat(gpi_config->mysqlHeartbeatInterval(),this);
|
new RDDbHeartbeat(gpi_config->mysqlHeartbeatInterval(),this);
|
||||||
|
|
||||||
|
//
|
||||||
|
// RDStation
|
||||||
|
//
|
||||||
|
gpi_station=new RDStation(gpi_config->stationName());
|
||||||
|
|
||||||
//
|
//
|
||||||
// RIPC Connection
|
// RIPC Connection
|
||||||
//
|
//
|
||||||
gpi_ripc=new RDRipc(gpi_config->stationName());
|
gpi_ripc=new RDRipc(gpi_station,gpi_config,this);
|
||||||
gpi_ripc->setIgnoreMask(true);
|
gpi_ripc->setIgnoreMask(true);
|
||||||
connect(gpi_ripc,SIGNAL(userChanged()),this,SLOT(userData()));
|
connect(gpi_ripc,SIGNAL(userChanged()),this,SLOT(userData()));
|
||||||
connect(gpi_ripc,SIGNAL(gpiStateChanged(int,int,bool)),
|
connect(gpi_ripc,SIGNAL(gpiStateChanged(int,int,bool)),
|
||||||
@ -132,11 +137,6 @@ MainWidget::MainWidget(QWidget *parent)
|
|||||||
this,SLOT(gpoCartChangedData(int,int,int,int)));
|
this,SLOT(gpoCartChangedData(int,int,int,int)));
|
||||||
gpi_ripc->connectHost("localhost",RIPCD_TCP_PORT,gpi_config->password());
|
gpi_ripc->connectHost("localhost",RIPCD_TCP_PORT,gpi_config->password());
|
||||||
|
|
||||||
//
|
|
||||||
// RDStation
|
|
||||||
//
|
|
||||||
gpi_station=new RDStation(gpi_config->stationName());
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// RDMatrix;
|
// RDMatrix;
|
||||||
//
|
//
|
||||||
|
@ -447,19 +447,19 @@ MainObject::MainObject(QObject *parent)
|
|||||||
}
|
}
|
||||||
new RDDbHeartbeat(import_config->mysqlHeartbeatInterval(),this);
|
new RDDbHeartbeat(import_config->mysqlHeartbeatInterval(),this);
|
||||||
|
|
||||||
//
|
|
||||||
// RIPC Connection
|
|
||||||
//
|
|
||||||
import_ripc=new RDRipc(import_config->stationName());
|
|
||||||
connect(import_ripc,SIGNAL(userChanged()),this,SLOT(userData()));
|
|
||||||
import_ripc->
|
|
||||||
connectHost("localhost",RIPCD_TCP_PORT,import_config->password());
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Station Configuration
|
// Station Configuration
|
||||||
//
|
//
|
||||||
import_station=new RDStation(import_config->stationName());
|
import_station=new RDStation(import_config->stationName());
|
||||||
|
|
||||||
|
//
|
||||||
|
// RIPC Connection
|
||||||
|
//
|
||||||
|
import_ripc=new RDRipc(import_station,import_config,this);
|
||||||
|
connect(import_ripc,SIGNAL(userChanged()),this,SLOT(userData()));
|
||||||
|
import_ripc->
|
||||||
|
connectHost("localhost",RIPCD_TCP_PORT,import_config->password());
|
||||||
|
|
||||||
//
|
//
|
||||||
// User
|
// User
|
||||||
//
|
//
|
||||||
|
@ -189,7 +189,7 @@ MainObject::MainObject(QObject *parent)
|
|||||||
// RIPCD Connection
|
// RIPCD Connection
|
||||||
//
|
//
|
||||||
set_user=NULL;
|
set_user=NULL;
|
||||||
set_ripc=new RDRipc(set_config->stationName(),this);
|
set_ripc=new RDRipc(set_station,set_config,this);
|
||||||
connect(set_ripc,SIGNAL(userChanged()),this,SLOT(userChangedData()));
|
connect(set_ripc,SIGNAL(userChanged()),this,SLOT(userChangedData()));
|
||||||
set_ripc->connectHost("localhost",RIPCD_TCP_PORT,set_config->password());
|
set_ripc->connectHost("localhost",RIPCD_TCP_PORT,set_config->password());
|
||||||
}
|
}
|
||||||
|
@ -270,10 +270,15 @@ MainObject::MainObject(QObject *parent)
|
|||||||
}
|
}
|
||||||
new RDDbHeartbeat(render_config->mysqlHeartbeatInterval(),this);
|
new RDDbHeartbeat(render_config->mysqlHeartbeatInterval(),this);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Station Configuration
|
||||||
|
//
|
||||||
|
render_station=new RDStation(render_config->stationName());
|
||||||
|
|
||||||
//
|
//
|
||||||
// RIPC Connection
|
// RIPC Connection
|
||||||
//
|
//
|
||||||
render_ripc=new RDRipc(render_config->stationName());
|
render_ripc=new RDRipc(render_station,render_config,this);
|
||||||
connect(render_ripc,SIGNAL(userChanged()),this,SLOT(userData()));
|
connect(render_ripc,SIGNAL(userChanged()),this,SLOT(userData()));
|
||||||
render_ripc->
|
render_ripc->
|
||||||
connectHost("localhost",RIPCD_TCP_PORT,render_config->password());
|
connectHost("localhost",RIPCD_TCP_PORT,render_config->password());
|
||||||
@ -286,11 +291,6 @@ MainObject::MainObject(QObject *parent)
|
|||||||
render_settings.setSampleRate(render_system->sampleRate());
|
render_settings.setSampleRate(render_system->sampleRate());
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
|
||||||
// Station Configuration
|
|
||||||
//
|
|
||||||
render_station=new RDStation(render_config->stationName());
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// User
|
// User
|
||||||
//
|
//
|
||||||
|
@ -77,18 +77,18 @@ MainObject::MainObject(QObject *parent)
|
|||||||
}
|
}
|
||||||
new RDDbHeartbeat(rd_config->mysqlHeartbeatInterval(),this);
|
new RDDbHeartbeat(rd_config->mysqlHeartbeatInterval(),this);
|
||||||
|
|
||||||
//
|
|
||||||
// RIPCD Connection
|
|
||||||
//
|
|
||||||
shim_ripc=new RDRipc("");
|
|
||||||
shim_ripc->connectHost("localhost",RIPCD_TCP_PORT,rd_config->password());
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Station Configuration
|
// Station Configuration
|
||||||
//
|
//
|
||||||
shim_rdstation=new RDStation(rd_config->stationName());
|
shim_rdstation=new RDStation(rd_config->stationName());
|
||||||
shim_address=shim_rdstation->address();
|
shim_address=shim_rdstation->address();
|
||||||
|
|
||||||
|
//
|
||||||
|
// RIPCD Connection
|
||||||
|
//
|
||||||
|
shim_ripc=new RDRipc(shim_rdstation,rd_config,this);
|
||||||
|
shim_ripc->connectHost("localhost",RIPCD_TCP_PORT,rd_config->password());
|
||||||
|
|
||||||
//
|
//
|
||||||
// TTY Device
|
// TTY Device
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user