2020-02-17 Fred Gleason <fredg@paravelsystems.com>

* Removed Q3Socket dependency from the Software Authority switcher
	driver.
This commit is contained in:
Fred Gleason
2020-02-17 09:34:18 -05:00
parent f45bd74bb4
commit 31661dab8a
3 changed files with 33 additions and 28 deletions

View File

@@ -2,7 +2,7 @@
//
// A Rivendell switcher driver for systems using Software Authority Protocol
//
// (C) Copyright 2002-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
@@ -24,8 +24,8 @@
#include <map>
#include <vector>
#include <q3socket.h>
#include <qhostaddress.h>
#include <qtcpsocket.h>
#include <qtimer.h>
#include <rd.h>
@@ -54,7 +54,7 @@ class SoftwareAuthority : public Switcher
void connectedData();
void connectionClosedData();
void readyReadData();
void errorData(int err);
void errorData(QAbstractSocket::SocketError err);
private:
void SendCommand(const char *str);
@@ -62,7 +62,7 @@ class SoftwareAuthority : public Switcher
void ExecuteMacroCart(unsigned cartnum);
QString PrettifyCommand(const char *cmd) const;
QString BundleString(int offset,bool state);
Q3Socket *swa_socket;
QTcpSocket *swa_socket;
char swa_buffer[SWAUTHORITY_MAX_LENGTH];
unsigned swa_ptr;
QHostAddress swa_ipaddress;