17using namespace std::chrono_literals;
20#include <QHostAddress>
28static constexpr const char*
SSDP_GROUP {
"239.255.255.250" };
65 int m_nServicePort {0};
82 static inline const QString kBackendURI =
"urn:schemas-mythtv-org:device:MasterMediaServer:1";
84 static SSDP* Instance();
85 static void Shutdown();
91 void PerformSearch(
const QString &sST, std::chrono::seconds
timeout = 2s);
93 void EnableNotifications (
int nServicePort );
94 void DisableNotifications();
97 if (m_pNotifyTask !=
nullptr)
This is a wrapper around QThread that does several additional things.
void processPendingDatagrams()
void setIsRunning(bool isRunning)
const QHostAddress m_groupAddress
void performSearch(const QString &sST, std::chrono::seconds timeout=2s)
int getNotificationPort() const
static bool isRunning(const char *program)
Returns true if a program containing the specified string is running on this machine.
static constexpr uint16_t SSDP_PORT
static constexpr const char * SSDP_GROUP