MediaX v1.0.0rc7 [7e6cb74]
Video streaming for military vehicles
Loading...
Searching...
No Matches
mediax::qt6::QtSapAnnouncer Class Reference

A SAP/SDP announcer class. More...

#include <QtSapAnnouncer.h>

Inheritance diagram for mediax::qt6::QtSapAnnouncer:
Inheritance graph
Collaboration diagram for mediax::qt6::QtSapAnnouncer:
Collaboration graph

Signals

void activeStreamCountChanged (uint32_t count)
 A callback for a SAP message received.
 

Public Member Functions

 QtSapAnnouncer (QObject *parent=nullptr)
 Construct a new Qt Sap Announcer object.
 
 ~QtSapAnnouncer () final=default
 Destroy the Qt Sap Announcer object.
 
Q_INVOKABLE void addSapAnnouncement (const ::mediax::rtp::StreamInformation &stream_information)
 Add a SAP announcement.
 
Q_INVOKABLE::mediax::rtp::StreamInformation & getSapAnnouncement (QString session_name)
 Get the Sap Announcement object.
 
Q_INVOKABLE void deleteSapAnnouncement (QString stream_name, QString multicast_address="")
 Delete a SAP announcement.
 
Q_INVOKABLE void undeleteSapAnnouncement (QString stream_name)
 Undelete a SAP announcement.
 
Q_INVOKABLE void deleteAllSapAnnouncements ()
 Delete all SAP announcements.
 
Q_INVOKABLE void start ()
 Start the SAP server.
 
Q_INVOKABLE void stop ()
 Stop the SAP server.
 
Q_INVOKABLE void restart ()
 Restart all deleted SAP announcements.
 
Q_INVOKABLE void setSourceInterface (uint16_t select=0)
 Set the Source Interface object.
 
Q_INVOKABLE std::map< uint32_t, QString > getInterfaces () const
 Get the interfaces as nic names.
 
Q_INVOKABLE uint32_t getActiveStreamCount () const
 Get the Active Stream Count object.
 

Static Public Member Functions

static QtSapAnnouncergetInstance ()
 Get the SAP/SDP announcer singleton instance.
 

Private Attributes

::mediax::sap::SapAnnouncersap_announcer_ = ::mediax::sap::SapAnnouncer::GetInstance()
 The underlying SAP announcer.
 

Detailed Description

A SAP/SDP announcer class.

Constructor & Destructor Documentation

◆ QtSapAnnouncer()

mediax::qt6::QtSapAnnouncer::QtSapAnnouncer ( QObject *  parent = nullptr)
explicit

Construct a new Qt Sap Announcer object.

Parameters
parent

Member Function Documentation

◆ activeStreamCountChanged

void mediax::qt6::QtSapAnnouncer::activeStreamCountChanged ( uint32_t  count)
signal

A callback for a SAP message received.

Parameters
count

◆ addSapAnnouncement()

Q_INVOKABLE void mediax::qt6::QtSapAnnouncer::addSapAnnouncement ( const ::mediax::rtp::StreamInformation stream_information)

Add a SAP announcement.

Parameters
stream_information

◆ getInstance()

QtSapAnnouncer & mediax::qt6::QtSapAnnouncer::getInstance ( )
static

Get the SAP/SDP announcer singleton instance.

Returns
QtSapAnnouncer&

The singleton instance

◆ getSapAnnouncement()

Q_INVOKABLE::mediax::rtp::StreamInformation & mediax::qt6::QtSapAnnouncer::getSapAnnouncement ( QString  session_name)

Get the Sap Announcement object.

Parameters
session_name

◆ setSourceInterface()

Q_INVOKABLE void mediax::qt6::QtSapAnnouncer::setSourceInterface ( uint16_t  select = 0)

Set the Source Interface object.

Parameters
select

◆ undeleteSapAnnouncement()

Q_INVOKABLE void mediax::qt6::QtSapAnnouncer::undeleteSapAnnouncement ( QString  stream_name)

Undelete a SAP announcement.

Parameters
stream_name

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