MediaX v1.0.0rc7 [7e6cb74]
Video streaming for military vehicles
Loading...
Searching...
No Matches
QtSapListener.h
Go to the documentation of this file.
1//
2// Copyright (c) 2025, Astute Systems PTY LTD
3//
4// This file is part of the VivoeX project developed by Astute Systems.
5//
6// Licensed under the Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)
7// License. See the LICENSE file in the project root for full license details.
8//
15
16#ifndef QT6_QTSAPLISTENER_H_
17#define QT6_QTSAPLISTENER_H_
18
19#include <QObject>
20#include <memory>
21#include <string>
22
23#include "sap/sap_listener.h"
24
26namespace mediax::qt6 {
27
29class QtSapListener : public QObject {
30 Q_OBJECT
31
32 public:
38 explicit QtSapListener(QObject *parent = nullptr);
39
44 Q_INVOKABLE void start();
45
50 Q_INVOKABLE void stop();
51
57 static QtSapListener &getInstance();
58
59 signals:
60
67 void sapData(const QString name, const ::mediax::sap::SdpMessage message);
68
69 private:
76 static void SapCallback(const sap::SdpMessage *sdp, void *data);
77
80};
81
82} // namespace mediax::qt6
83
84#endif // QT6_QTSAPLISTENER_H_
A SAP/SDP listener class.
Definition QtSapListener.h:29
void sapData(const QString name, const ::mediax::sap::SdpMessage message)
A callback for a SAP message received.
::mediax::sap::SapListener sap_listener_
The SAP listener.
Definition QtSapListener.h:79
static void SapCallback(const sap::SdpMessage *sdp, void *data)
Process incoming SAP announcments.
Definition QtSapListener.cc:21
Q_INVOKABLE void start()
Start the SAP server.
Definition QtSapListener.cc:36
static QtSapListener & getInstance()
Get the singleton Instance object.
Definition QtSapListener.cc:27
Q_INVOKABLE void stop()
Stop the SAP server.
Definition QtSapListener.cc:38
Class definition of the SAPListener.
Definition sap_listener.h:124
The Qt wrappers namespace.
Definition QtRtpAv1Depayloader.cc:19
Session Announcement Protocol (SDP) implementation for listening to announcements of stream data....
A simplified SDP message structure.
Definition sap_listener.h:91