JS8Call-Improved master
Loading...
Searching...
No Matches
AprsInboundRelay Class Reference

Handles inbound APRS-IS messages and enqueues JS8 relays. More...

#include <AprsInboundRelay.h>

Inheritance diagram for AprsInboundRelay:
Collaboration diagram for AprsInboundRelay:

Classes

struct  CallActivityInfo
 Lightweight lookup info for the heard list. More...

Public Types

using CallActivityLookup
using NoticeFn
using EnqueueFn = std::function<void(QString const &message)>
using AckFn
 Callback for APRS message ACKs.

Public Slots

void onMessageReceived (QString from, QString to, QString message, QString messageId)
 Process an APRS-IS message for relay.

Public Member Functions

 AprsInboundRelay (Configuration const *config, CallActivityLookup callLookup, NoticeFn noticeFn, EnqueueFn enqueueFn, AckFn ackFn, QObject *parent=nullptr)
 Construct a new AprsInboundRelay handler.

Detailed Description

Handles inbound APRS-IS messages and enqueues JS8 relays.

Member Typedef Documentation

◆ AckFn

Initial value:
std::function<void(QString const &fromCall, QString const &toCall,
QString const &messageId)>

Callback for APRS message ACKs.

Parameters
fromCallSource callsign for the ACK.
toCallDestination callsign being acknowledged.
messageIdAPRS message identifier to acknowledge.

◆ CallActivityLookup

using AprsInboundRelay::CallActivityLookup
Initial value:
std::function<CallActivityInfo(QString const &call)>
Lightweight lookup info for the heard list.
Definition AprsInboundRelay.h:27

◆ NoticeFn

using AprsInboundRelay::NoticeFn
Initial value:
std::function<void(QDateTime const &utc, QString const &text)>

Constructor & Destructor Documentation

◆ AprsInboundRelay()

AprsInboundRelay::AprsInboundRelay ( Configuration const * config,
CallActivityLookup callLookup,
NoticeFn noticeFn,
EnqueueFn enqueueFn,
AckFn ackFn,
QObject * parent = nullptr )

Construct a new AprsInboundRelay handler.

Parameters
configConfiguration instance for enable/aging checks.
callLookupCallback to check heard list activity.
noticeFnCallback to post UI notices.
enqueueFnCallback to enqueue relay messages for transmit.
ackFnCallback to emit APRS message ACKs.
parentQObject parent.
configConfiguration instance for enable/aging checks.
callLookupCallback to check heard list activity.
noticeFnCallback to post UI notices.
enqueueFnCallback to enqueue relay messages for transmit.
parentQObject parent.

Member Function Documentation

◆ onMessageReceived

void AprsInboundRelay::onMessageReceived ( QString from,
QString to,
QString message,
QString messageId )
slot

Process an APRS-IS message for relay.

Parameters
fromAPRS sender callsign.
toAPRS destination callsign.
messageAPRS message payload (may include checksum).
messageIdAPRS message identifier (if present).
fromAPRS sender callsign.
toAPRS destination callsign.
messageAPRS message payload (may include checksum).
Here is the caller graph for this function:

The documentation for this class was generated from the following files: