summaryrefslogtreecommitdiff
path: root/tcpCode.h
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2024-10-29 22:45:25 +0000
committerDave Hibberd <hibby@debian.org>2024-10-29 22:45:25 +0000
commit6c8e7093c0c01dbf0e7b2d3b3e8909a209faebbd (patch)
tree8d4a8ff6b2aff51cd6235b9923eb9c5db5017075 /tcpCode.h
parenta724b7ca21df2a3b98bc203f719396d5e62d55d4 (diff)
parentd0709a1e0a04bf74f240dc0fdb8697f030b68cea (diff)
Update upstream source from tag 'upstream/0.0.0.73_rc1'
Update to upstream version '0.0.0.73~rc1' with Debian dir 676c65807274e34716fecd1055a3812ab33a8229
Diffstat (limited to 'tcpCode.h')
-rw-r--r--tcpCode.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/tcpCode.h b/tcpCode.h
index ea5b5a1..f0bb9a3 100644
--- a/tcpCode.h
+++ b/tcpCode.h
@@ -4,6 +4,16 @@
#define CONNECT(sndr, sig, rcvr, slt) connect(sndr, SIGNAL(sig), rcvr, SLOT(slt))
+//class myTcpSocket : public QTcpSocket
+//{
+//public:
+// char Msg[512]; // Received message
+// int Len;
+// int BPQPort[4]; // BPQ port for each modem
+
+//};
+
+
class mynet : public QObject
{
Q_OBJECT
@@ -12,6 +22,7 @@ signals:
void HLSetPTT(int c);
void FLRigSetPTT(int c);
+ void mgmtSetPTT(int port, int state);
void startTimer(int Time);
void stopTimer();
@@ -23,11 +34,17 @@ public:
public slots:
void onAGWReadyRead();
void onKISSSocketStateChanged(QAbstractSocket::SocketState socketState);
+ void onMgmtSocketStateChanged(QAbstractSocket::SocketState socketState);
+ void onMgmtReadyRead();
void onKISSReadyRead();
void onAGWSocketStateChanged(QAbstractSocket::SocketState socketState);
void onKISSConnection();
+ void onMgmtConnection();
void MyTimerSlot();
void onAGWConnection();
+ void on6PackConnection();
+ void on6PackReadyRead();
+ void on6PackSocketStateChanged(QAbstractSocket::SocketState socketState);
void dropPTT();
void displayError(QAbstractSocket::SocketError socketError);
@@ -45,6 +62,7 @@ public slots:
void dostartTimer(int Time);
void dostopTimer();
void doHLSetPTT(int c);
+ void domgmtSetPTT(int chan, int state);
void doFLRigSetPTT(int c);
void readPendingDatagrams();
@@ -59,6 +77,7 @@ private:
int bytesReceived;
int TotalBytes;
int PayloadSize;
+ void MgmtProcessLine(QTcpSocket* socket);
};
@@ -86,4 +105,3 @@ public:
-