refactor: Modernize Qt connections (#914)

This commit is contained in:
Murat Seker
2020-08-02 22:32:00 +02:00
committed by GitHub
parent d1a2b77ce3
commit 031b9a6b7c
22 changed files with 86 additions and 77 deletions

View File

@@ -68,7 +68,7 @@ public:
///
/// free all alocated objects, should be called only from constructor or before restarting hyperion
///
void freeObjects(bool emitCloseSignal=false);
void freeObjects();
ImageProcessor* getImageProcessor() const { return _imageProcessor; }
@@ -398,8 +398,6 @@ signals:
///
void currentImage(const Image<ColorRgb> & image);
void closing();
/// Signal which is emitted, when a new json message should be forwarded
void forwardJsonMessage(QJsonObject);

View File

@@ -1,13 +1,14 @@
#ifndef SSDPDISCOVER_H
#define SSDPDISCOVER_H
#include <utils/Logger.h>
#include <QHostAddress>
#include <QMultiMap>
#include <QUrl>
#include <QRegularExpression>
#include <chrono>
class Logger;
class QUdpSocket;
enum class searchType{
@@ -202,7 +203,7 @@ private:
int _ssdpMaxWaitResponseTime;
int _ssdpTimeout;
QMap<QString, SSDPService> _services;
QMultiMap<QString, SSDPService> _services;
QStringList _usnList;
QString _searchTarget;