mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-04-07 01:13:50 +02:00
2020-02-17 Fred Gleason <fredg@paravelsystems.com>
* Removed Q3Socket dependency from the Broadcast Tools Sentinel4Web switcher driver.
This commit is contained in:
parent
b891162ab6
commit
638c5779ac
@ -19633,3 +19633,6 @@
|
||||
* Removed Q3Socket dependency from the Quartz 1 switcher driver.
|
||||
2020-02-17 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Removed Q3Socket dependency from the Harlond switcher driver.
|
||||
2020-02-17 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Removed Q3Socket dependency from the Broadcast Tools Sentinel4Web
|
||||
switcher driver.
|
||||
|
@ -2,7 +2,7 @@
|
||||
//
|
||||
// Rivendell switcher driver for the BroadcastTools Sentinel4Web AES switcher
|
||||
//
|
||||
// (C) Copyright 2002-2019 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2002-2020 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
|
||||
@ -36,9 +36,10 @@ BtSentinel4Web::BtSentinel4Web(RDMatrix *matrix,QObject *parent)
|
||||
//
|
||||
// Socket
|
||||
//
|
||||
bt_socket=new Q3Socket(this);
|
||||
bt_socket=new QTcpSocket(this);
|
||||
connect(bt_socket,SIGNAL(connected()),this,SLOT(connectedData()));
|
||||
connect(bt_socket,SIGNAL(error(int)),this,SLOT(errorData(int)));
|
||||
connect(bt_socket,SIGNAL(error(QAbstractSocket::SocketError)),
|
||||
this,SLOT(errorData(QAbstractSocket::SocketError)));
|
||||
connect(bt_socket,SIGNAL(readyRead()),this,SLOT(readyReadData()));
|
||||
|
||||
//
|
||||
@ -139,7 +140,7 @@ void BtSentinel4Web::connectedData()
|
||||
}
|
||||
|
||||
|
||||
void BtSentinel4Web::errorData(int err)
|
||||
void BtSentinel4Web::errorData(QAbstractSocket::SocketError err)
|
||||
{
|
||||
watchdogData();
|
||||
}
|
||||
@ -167,9 +168,10 @@ void BtSentinel4Web::watchdogData()
|
||||
void BtSentinel4Web::watchdogResetData()
|
||||
{
|
||||
delete bt_socket;
|
||||
bt_socket=new Q3Socket(this);
|
||||
bt_socket=new QTcpSocket(this);
|
||||
connect(bt_socket,SIGNAL(connected()),this,SLOT(connectedData()));
|
||||
connect(bt_socket,SIGNAL(error(int)),this,SLOT(errorData(int)));
|
||||
connect(bt_socket,SIGNAL(error(QAbstractSocket::SocketError)),
|
||||
this,SLOT(errorData(QAbstractSocket::SocketError)));
|
||||
connect(bt_socket,SIGNAL(readyRead()),this,SLOT(readyReadData()));
|
||||
|
||||
bt_socket->connectToHost(bt_address.toString(),bt_port);
|
||||
|
@ -2,7 +2,7 @@
|
||||
//
|
||||
// Rivendell switcher driver for the BroadcastTools Sentinel4Web AES switcher
|
||||
//
|
||||
// (C) Copyright 2002-2013,2016 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2002-2020 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
|
||||
@ -25,8 +25,8 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include <q3socket.h>
|
||||
#include <qhostaddress.h>
|
||||
#include <qtcpsocket.h>
|
||||
#include <qtimer.h>
|
||||
|
||||
#include <rd.h>
|
||||
@ -56,13 +56,13 @@ class BtSentinel4Web : public Switcher
|
||||
|
||||
private slots:
|
||||
void connectedData();
|
||||
void errorData(int err);
|
||||
void errorData(QAbstractSocket::SocketError err);
|
||||
void readyReadData();
|
||||
void watchdogData();
|
||||
void watchdogResetData();
|
||||
|
||||
private:
|
||||
Q3Socket *bt_socket;
|
||||
QTcpSocket *bt_socket;
|
||||
QHostAddress bt_address;
|
||||
uint16_t bt_port;
|
||||
QTimer *bt_watchdog_timer;
|
||||
|
Loading…
x
Reference in New Issue
Block a user